You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've run into an issue while testing the simulator if the 'disable_slowmo' parameter is used. I tried to run with the following set of parameters for one of the example videos:
...
Traceback (most recent call last):
File "C:/Users/Usuario/Desktop/Sistemas Inteligentes UJI/Asignaturas/ReAViPeRo/v2e/v2e/v2e.py", line 706, in <module>
main()
File "C:/Users/Usuario/Desktop/Sistemas Inteligentes UJI/Asignaturas/ReAViPeRo/v2e/v2e/v2e.py", line 559, in main
interpTimes, avgUpsamplingFactor = slomo.interpolate(
AttributeError: 'NoneType' object has no attribute 'interpolate'
Searching for a possible solution, I found out that the problem could reside on v2e.py (line 545):
# v2e.py - line 545:
if auto_timestamp_resolution or slowdown_factor != NO_SLOWDOWN:
# interpolated frames are stored to tmpfolder as
# 1.png, 2.png, etc
logger.info(
f'*** Stage 2/3: SloMo upsampling from '
f'{source_frames_dir}')
interpTimes, avgUpsamplingFactor = slomo.interpolate(
source_frames_dir, interpFramesFolder,
(output_width, output_height))
If 'disable_slomo' is used (setting slowdown_factor to NO_SLOWDOWN value, equals 1.0), the 'slomo' object is never built, so this statement should not occur.
I solved it by changing the 'or' operator in the if statement for an 'and' operator:
if auto_timestamp_resolution and slowdown_factor != NO_SLOWDOWN:
This way, if the user won't use the SlowMotion algorithm, maintaining the input video timestamp resolution, the else statement will occur:
Thank you Fran, you are great to track down all these bugs!
I'm sure it is some combo of the zillion options not tested by us. We
will check and push your fix.
BTW, you are running from fork/clone with latest code, correct? On
master branch?
Hi.
I've run into an issue while testing the simulator if the 'disable_slowmo' parameter is used. I tried to run with the following set of parameters for one of the example videos:
Getting the following output error:
Searching for a possible solution, I found out that the problem could reside on v2e.py (line 545):
If 'disable_slomo' is used (setting slowdown_factor to NO_SLOWDOWN value, equals 1.0), the 'slomo' object is never built, so this statement should not occur.
I solved it by changing the 'or' operator in the if statement for an 'and' operator:
This way, if the user won't use the SlowMotion algorithm, maintaining the input video timestamp resolution, the else statement will occur:
Is that a possible issue? Or maybe I missunderstood the use of the 'disable_slomo' parameter?
The text was updated successfully, but these errors were encountered: