Comments (4)
@anas-899 Yes, should be in .cfg:
output= (5 x 2 + C) x S x S
classes= C
side= S
- In my fork in yolo.c, CLASSNUM should be not less than classes, everything else in source code is automatically set
- use only jpeg and jpg format for training
- train at least 1000 batches
- for training use pretrained conv-model: http://pjreddie.com/media/files/extraction.conv.weights
If you get NAN when you training, or when you are trying to continue training from checkpoint: https://groups.google.com/forum/#!searchin/darknet/NAN|sort:relevance/darknet/-5DRax1SS2w/aDjRl15HEAAJ
- reduce the learning rate(e.g. 1/10 of the origin), this can help (learning_rate= in .cfg file)
- try to train on Linux (where the problem occurs much less frequently) by using https://github.com/pjreddie/darknet and then use already trained .weights for this fork yolo-windows
from yolo-windows.
@AlexeyAB
Thanks a lot for your fast replay.
Actually I tried everything but the training on windows is not giving any correct .weight file
I tried to train the data and same example of : http://guanghan.info/blog/en/my-works/train-yolo/
but actually the output weight file didn't detect anything
I think the only way to success is by training over Linux
from yolo-windows.
I solved the saving weight issue.
It needs to change in two positions:
first:
src/parser.c
you should change the line
FILE *fp = fopen(filename, "w");
to
FILE *fp = fopen(filename, "wb");
second:
src/utils.c
you should change the line
if(c==' '||c=='\t'||c=='\n') ++offset;
to
if(c==' '||c=='\t'||c=='\n'||c=='\r') ++offset;
then the training on windows will save the weight correctly.
from yolo-windows.
@anas-899 Thank you! I added this fix to rep.
from yolo-windows.
Related Issues (13)
- Do you know how to run ssd on windows? HOT 1
- Compile errors with yolo2_light HOT 4
- How to test image?
- Is it possible to perform detection and test on part of each image?
- How to make yolo cpp dll thread safe
- why a lot of classes has changed in windows version like removing CUDNN ? HOT 2
- How can I use it without GPU HOT 1
- Installation help HOT 19
- problem when i compile darknet HOT 1
- Memory Leak
- OpenCV 3.3 Compile Errors HOT 2
- Unreasonable high score for the classes
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 yolo-windows.