Comments (1)
Hi Kleyson. Thanks for your comment. Here's my (very) late response to your questions.
-
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.
-
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)
- Souce code and model request HOT 2
- No labels in the images.zip HOT 1
- Location data for images
- Can u Help Me Type Error HOT 9
- Enhancement / scale / rotation invariance built into network
- not an issue - related FasterRCNN
- Request: Original or higher resolution dataset HOT 3
- long time for the first inference
- Inference on single images HOT 5
- Issues with global variables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepweeds.