thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

Video is not displaying. #484

Open MuhammadFaizanKhan opened 6 years ago

MuhammadFaizanKhan commented 6 years ago

I am trying to run camera video demo when using this command it executing correctly but no video output

./flow --model cfg/tiny-yolo-voc.cfg --load bin/tiny-yolo-voc.weights --demo demo.mp4

but as i use --saveVideo, its output video working fine

./flow --model cfg/tiny-yolo-voc.cfg --load bin/tiny-yolo-voc.weights --demo demo.mp4 --saveVideo

fabiocapsouza commented 6 years ago

For a temporary fix, inserting file = 0 after https://github.com/thtrieu/darkflow/blob/master/darkflow/net/help.py#L78 solves this problem. However, it breaks the FPS of the saved video.