Open ranka47 opened 4 years ago
Yes. I think you should use yield in the while loop if it finds the csv data.
Great. Thanks for that.
Another question is the use of columns cut
and transition
in the sample_video_csv_gen.py
. What I observed from the datagen.py
code and the paper is that generated CSV should contain only those frames that are first frame of the new shot in case of an abrupt transition or the frames of a gradual transition.
The value of the prediction being put here is a tuple (1,0)
or (0,0)
and then in the model.py
that gets reduced to a single vector using argmin
which essentially is the first column in the cut
matrix obtained from cut.npy
.
Is the use of those extra columns in CSV and prediction variable part of some future research that you are planning to do or did I miss something while going through the code?
https://github.com/abramjos/Scene-boundary-detection/blob/f781c95fb3f23026dd0f99d0bb7a87a533f01c25/model.py#L61
Here, the
data_gen
only returns "Done" https://github.com/abramjos/Scene-boundary-detection/blob/f781c95fb3f23026dd0f99d0bb7a87a533f01c25/datagen.py#L126 as a result of which it fails with the errorIs there any modification required here? Or should I
yield
an image and its prediction?