SensorsINI/v2e

AttributeError: 'NoneType' object has no attribute 'interpolate'

Closed this issue · 2 comments

Hi,

I was trying to generate simulated events with the slowmo step disabled (i.e. by using the --disable_slomo argument. However, I run into an error when I do that. The same video works fine when I don't use the --disable_slomo argument.

I want to disable slomo, because I want to do some custom experiments with the slowmo parts, and hence, I had already upsampled the video before sending it to the simulator.

The error message and some lines preceeding it are given below:

INFO:__main__:*** Stage 2/3: SloMo upsampling from /tmp/tmp9h82o98d
Traceback (most recent call last):
  File "/home/amoghtiwari/v2e/v2e.py", line 805, in <module>
    main()
  File "/home/amoghtiwari/v2e/v2e.py", line 657, in main
    interpTimes, avgUpsamplingFactor = slomo.interpolate(
AttributeError: 'NoneType' object has no attribute 'interpolate'
INFO:v2ecore.output.aedat2_output:Closing /home/amoghtiwari/v2e/output/airboard_1_30_my_slomo/tennis.aedat after writing 0 events (0 on, 0 off) ``` 

Update: I converted the video to mp4 online, and it worked then. But it still doesn't work with mkv files

I guess it is a problem with cv2 video reader....closing this issue.