Giter VIP home page Giter VIP logo

Comments (1)

AlexOlsen avatar AlexOlsen commented on June 6, 2024

Hi Kleyson. Thanks for your comment. Here's my (very) late response to your questions.

  1. Transfer learning is not limited to fine-tuning just the "top" of the pre-trained network. You have the option of freezing or not freezing any combination of layers during the transfer learning process. As nicely described in Stanford's CS231n course notes on Transfer Learning (http://cs231n.github.io/transfer-learning/), your choice for either fine tuning the top of the network, or using the pre-trained weights as a starting point to fine tune the entire network depends on the size of the new dataset and how different the new learning problem is. Because of the sufficient size of our dataset and the difference in learning nature between specific weeds and varied ImageNet classes, I decided to fine-tune through the entire network.

  2. You are correct, there is major class imbalance in this dataset. However, this class imbalance is true for the nature of the learning problem for weed classification in the field. With no method of balancing the classes, strong classification accuracy was achieved. And to maximise performance in the field, I chose to keep the class distribution consistent.

As an aside, I experimented with addressing the class imbalance by weighting the loss function proportionately by using the "class_weight" argument for the "fit_generator" Keras function. (*This is one such method for balancing other classes with the negative class). This resulted in slightly less accurate recall of the Negative class and slightly better classification of the weed classes, with a negligible net accuracy. However when deployed in the field, the original imbalanced model performed much better. This confirmed my heuristic that for best in-field performance, your dataset should exhibit the same class distribution as seen in the field.

from deepweeds.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.