-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving Video File #308
Comments
The savevideo flag should do the trick. Are you sure no video is being saved? I believe it is saved as an avi file if I remember correctly. |
Thanks for your reply, @jubjamie. I checked for any video files but it doesn't get saved. Any idea why based on the log? |
@ilopezfr is that the complete log output? Because after:
or some error that is preventing from processing the video |
@NicolasUgri Thanks for your reply. I missed to include this line: |
Yes as you say it is normal, the thing is that if you are running it on a remote server (e.g. AWS) you don't have a display where to show the video while processing. What I did was comment those lines which need the display in
Line 125: |
Hey @NicolasUgri, thanks for the tip! As reference, here's my input: And output:
|
Ok @ilopezfr got it. Just check the folder where you executed the script you should see a video file named |
@NicolasUgri yes, I see the video. But it looks raw, without any detections. Not sure why. |
Sure you're getting detections? Run with --json to get the output of the detector to check that the threshold isn't too high. |
@jubjamie Since I commented out some lines in |
do the sample images work? |
Are you using a pre-train network or are you traning a new one from scratch with your own data? In my experience, if your loss is too high you will not get detections. As @jubjamie suggests usually it should work by lowering the threshold and if you have it to cero you should see a lot of boxes filling the whole image. |
@jubjamie @NicolasUgri Even with threshold 0, I don't get any detections in the images since I made the changes in |
What images are you using? The sample ones included? Something sounds very wrong here. Have you tried reinstalling? Perhaps you have a bad installation. Are you seeing no error messages? Changing help.py as you did above should have no bearing on the sample images test. Can you please post what command you run and the full console output. |
Same issue, any solution? |
@ilopezfr maybe you should try this : |
Hello @ilopezfr, I was encountering a similar error using darkflow. I was not able to save the video file even that the --saveVideo flag was there and the whole process was working and ending with no error
However, the video.avi output was 404 bytes... I found out that in my conda environment the openCV version was not working as it should. I installed it with I have attached my conda environment that works with the darkflow video example, using (change the file extension to .yml) |
Look up how to save it with " ffmpeg ". Especially look for a guy on YouTube called Jeaff Heaton. He's got an awesome applicable solution. |
So I'm trying to run the model in a video file with this line of code:
flow --model cfg/tiny-yolo.cfg --load bin/tiny-yolo-voc.weights --demo ~/camera-project/videos/test_cars.mp4 --gpu 0.5 --saveVideo
Below is the output I get, however no video file is generated.
Can anyone help me interpret the output code and tell how to save the output video with the bounding boxes?
Thanks in advance!
The text was updated successfully, but these errors were encountered: