Comments (15)
It will handle the parsing itself as stated in README. Hope there's no bug.
from darkflow.
Thanks. I think I found the issue. I had a labels.txt file with all 20 classes in it, and needed to use the yolo-full.cfg file. Once I entered the line below, things moved along into training nicely (including the parsing at the beginning):
./flow --model cfg/v1/yolo-full.cfg --dataset /home/rob/Data_PascalVOC/VOCdevkit/VOC2012/JPEGImages/ --annotation /home/rob/Data_PascalVOC/VOCdevkit/VOC2012/Annotations/ --backup yolo_backup --train
Since my version of TF is built with CUDA support, I assume I don't need to call --gpu 1.0 explicitly to use the GPU for training, correct?
from darkflow.
You do have to
P/S lucky you to have GPU at hand
from darkflow.
Okay. I do only have 8GB of GPU mem (NVidia GTX 1080), and will need to find a way to trim the memory use down. When using Caffe/DIGITS, I was able to trim batch sizes, not sure if I can do that here.
from darkflow.
Decreasing batch size by a factor of 2.0
will decrease the standard deviation only by a factor of sqrt(2.0)
, so it is actually beneficial to trim batch size if you have limited resources, especially when it comes to resource-extensive tools like TF.
Good luck with the training.
from darkflow.
Good to know! Reducing batch size on yolo-full.cfg (even down to 2) did not solve my problem, but running with yolo-4c.cfg and gpu 1.0 was successful - gpu training off and running. I'll have to investigate more ways to lean this up for my current GPU. Thanks.
from darkflow.
Hi -
I tried to stop and restart the training, using a saved checkpoint. I followed the format you specified below:
./flow --train --model cfg/yolo-2c.cfg --load ckpt/yolo-3c-1500
In my case I have a collection of checkpoint files for yolo-4c, the latest of which is 1162. The following command:
./flow --model cfg/v1/yolo-4c.cfg --dataset /home/rob/Data_PascalVOC/VOCdevkit/VOC2012/JPEGImages/ --annotation /home/rob/Data_PascalVOC/VOCdevkit/VOC2012/Annotations/ --train --load ckpt/yolo-4c-1162 --gpu 1.0
gives an error:
Traceback (most recent call last):
File "./flow", line 42, in
tfnet = TFNet(FLAGS)
File "/home/rob/darkflow/net/build.py", line 34, in init
darknet = Darknet(FLAGS)
File "/home/rob/darkflow/dark/darknet.py", line 12, in init
self.get_weight_src(FLAGS)
File "/home/rob/darkflow/dark/darknet.py", line 46, in get_weight_src
'{} not found'.format(FLAGS.load)
AssertionError: ckpt/yolo-4c-1162 not found
Am I calling this correctly?
from darkflow.
Looking at the assertion error, clearly ckpt/yolo-4c-1162
does not exist. Make sure it is there
from darkflow.
There is no file with that prefix only, but checkpoint files seem to have four different types: '00000-of-00001', index, meta and profile. This is the same for every checkpoint, not just 1162. 1162 has this as you see below. I tried --load with each of the files below, no go. Should I be expecting a prefix only file in addition to the four files I see?
rob@skynet1:/darkflow$ cd ckpt/darkflow/ckpt$ ls yolo-4c-1162*
rob@skynet1:
yolo-4c-1162.data-00000-of-00001 yolo-4c-1162.index yolo-4c-1162.meta yolo-4c-1162.profile
from darkflow.
I figured it out! I was using the filename, not the iteration number! All is well now, training resumed after specifying "--load 1162". Thanks.
from darkflow.
Great, the files you listed are new to me, that must be TF 0.12; nevertheless, good luck with getting back on track.
from darkflow.
Reviewing the yolo code, I noticed that there are thresholds defined for four classes in test.py:
_thresh = dict({
'person': .2,
'pottedplant': .1,
'chair': .12,
'tvmonitor': .13
})
Do I need to adjust this for the number of classes I have in labels.txt and the .cfg file? Just curious.
from darkflow.
from darkflow.
Will do - thanks!
from darkflow.
@rtrahms How did you test after you trained the model. Can you please help me with the command. I have a saved checkpoint in the ckpt
folder. Should I use this?
from darkflow.
Related Issues (20)
- [Documentation] Link to the Android demo is broken
- tiny yolo predict a lot of bounding boxes for one class problem HOT 1
- Result is empty HOT 2
- PermissionError: [Errno 13] Permission denied: './ckpt/checkpoint' HOT 1
- How to put a darkflow model into Android Studio
- Importing to external project
- Accuracy HOT 1
- error in getting started
- Version of yolo from the yolo.cfg file
- Shrikant@ can you help in in regard of this.
- What's wrong with Darkflow?
- can't import darkflow
- Build Error darkflow on 20.04 Ubuntu
- Training own model
- How to convert tensorflow to darknet?
- Convert annotation video mat files to COCO
- Tensorflow update to TF 2.x
- python setup.py build_ext --inplace HOT 3
- pip install -e .
- NMS.pxd not found
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 darkflow.