I'm totally not familiar with pull request or relevant GitHub functions, so I decided to post my minor modification here.
Several days ago I was trying to run the code with a video as the input, but got some errors about writing the output video. After some tracking, I found the reason was the file name coded in darkflow/darkflow/net/help.py could not handle filenames from relative path.
The original output filename was 'output_{}'.format(file) and it could produce something like output_../..//RELATIVE/PATH/INPUT/VIDEO.avi and therefore caused problems.
I'm totally not familiar with
pull request
or relevant GitHub functions, so I decided to post my minor modification here.Several days ago I was trying to run the code with a video as the input, but got some errors about writing the output video. After some tracking, I found the reason was the file name coded in
darkflow/darkflow/net/help.py
could not handle filenames from relative path.The original output filename was
'output_{}'.format(file)
and it could produce something likeoutput_../..//RELATIVE/PATH/INPUT/VIDEO.avi
and therefore caused problems.So I changed the code as the following:
Also, to be consistent and make all the output files be in the same folder of
run.py
, I also modified the csv part as follows:Hope this will help.