Tracking-with-darkflow icon indicating copy to clipboard operation
Tracking-with-darkflow copied to clipboard

new trained tiny-yolo-voc model, track problem

Open zhangyujia0223 opened this issue 8 years ago • 6 comments

I trained the new Yolo model. I just modified the following 2 aspects(filters and classes) in tiny-yolo-voc.cfg file as picture show. I want to track one of the classes we have labeled. image But there are some problems image Could you help me to solve this problem? Thank you very much.

zhangyujia0223 avatar Nov 29 '17 10:11 zhangyujia0223

When I test the video( just add the video file path), there are problems. I did not find your solution about it in issues. image Thanks again

zhangyujia0223 avatar Nov 29 '17 12:11 zhangyujia0223

the last error is because your camera or video file is not working , or there is a typo the video path you provided , for the first you need to give more information , how did you generate the tiny-yolo-voc-p.weights ? after training it usually generates a .pb and .meta file ...

obendidi avatar Nov 29 '17 13:11 obendidi

@bendidi

  1. For video, I have checked the video path, there is not a typo. I remember there are issues about solving this problem( you offered that: in run.py add print("Running for the first time") tfnet.camera("/home/ai2/yujia/data/videos/KT01.mp4"); in help.py uncomment the "file=self.FLAGS.demo" ), but now I can not find it, maybe it has been closed.
  2. we get the tiny-yolo-voc-p.weights from darknet, it does not generate .pb and .meta file.

zhangyujia0223 avatar Nov 30 '17 01:11 zhangyujia0223

@bendidi now I have solved the first one problem. But for the video, it still cannot be used. Could you give me guidance?

zhangyujia0223 avatar Dec 01 '17 10:12 zhangyujia0223

as I've said, it's probably that your camera is not detected , try it alone to see if it is working or not , here is a little script to do that : http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_gui/py_video_display/py_video_display.html

obendidi avatar Dec 01 '17 10:12 obendidi

@zhangyujia0223 Hi. It looks I need your help with my newly trained model. Let me give some info about it. I have trained a model for only one class using darknet yolo3 given here. Now I have a cfg file and .weights file. There are helmet_15000.cfg and helmet_15000.weights files. When I run I have similar error like your first image: `'Over-read {}'.format(self.path)

AssertionError: Over-read darkflow\bin\helmet_15000.weights` I know it's been long time since this post, but if you can help please do. Thanks.

bit-scientist avatar Oct 15 '18 02:10 bit-scientist