Closed HenrySomeCode closed 3 months ago
Thanks for pointing this out. In the __init__
function in the data loader, all flow paths are initialized with a placeholder directory "FlowImages_gap1/xxxxx.png", no matter the file's existence.
This will be then tackled in train_loading
/ val_loading
. For example,
During which
- The "FlowImages_gap1" will be replaced by different flow gaps, e.g., "FlowImages_gap-1", "FlowImages_gap2", etc.
- The file's existence will be checked. For example, as "FlowImages_gap-1/00000.png" does not exist, the file "FlowImages_gap1/00000.png" (-1 * -1 = 1) will then be automatically loaded to compensate for the missing file.
I can't run the inference code using this:
I suggest that the
flow_path
is always going to be 1 image less than thergb_path
oranno_path
. This is because 2 rgb images will be converted into 1 flow image. For example, if there are 50 images inDAVIS2016/JPEGImages/480p/blackswan
, there are going to be 49 images inDAVIS2016/FlowImages_gap1
I changed the code below of dvs_loader.py:
to this:
And the inference code run completely but some images inside outputs/hung/blackswan are all black. Am I right?