Closed johannwyh closed 2 years ago
Currently I modified the way to compute raw_shape
as
raw_shape = [len(self._video_idx2frames)] + list(self._load_raw_frames(0, [0])[0][0].shape)
giving the frame_idx
a list [0]
. Does it make sense?
Hi, I am sorry that you had to dig into all those details due to my mistake and sorry for replying that late. The above change which you made seems reasonable to me, it shouldn't break anywhere.
I've just incorporated your changes into the repo. If you like, you can alternatively create a PR with them and i will merge it. Thank you a lot of point out to this error, it's a very crucial part of the code. I am trying to understand now how it was working for me before...
Thanks for your kind reply. Just modify your repo directly as I have fixed this bug and move on with my project. I did no version management locally.
Anyway, your framework for metric calculation is awesome, very easy to use.
I encountered an issue of
calc_metrics_for_dataset.py
that, thedummy_dataset_cfg
is set as,while constructing the
VideoFramesFolderDataset
, it computesraw_shape
by callingself._load_raw_frames(0)
hasframe_idx
as None, therefore requires to sample framesThis
sampling_dict
is an empty dict, as is set indummy_dataset_cfg
, and causes an error thattype
key is not found in the dict whensample_frames
function executesSeemingly I should not arbitrarily set a
type
for the sampling_dict as both sampling methods require more arguments in sampling_dict, in which there is nothing available.May I know how to modify the video dataset construction logic for metric evaluation?