Annbless/DUTCode

Error on some videos

Closed this issue · 1 comments

Stabiling using the DUT model

Namespace(InputBasePath='images/', MaxLength=1200, MotionProPath='ckpt/MotionPro.pth', OutNamePrefix='', OutputBasePath='results/', PWCNetPath='ckpt/network-default.pytorch', RFDetPath='ckpt/RFDet_640.pth.tar', Repeat=50, SingleHomo=False, SmootherPath='ckpt/smoother.pth')
-------------model configuration------------------------
using RFNet ...
using PWCNet for motion estimation...
using Motion Propagation model with multi homo...
using Deep Smoother Model...
------------------reload parameters-------------------------
reload Smoother params
successfully load 12 params for smoother
reload RFDet Model
successfully load 100 params for RFDet
reload PWCNet Model
reload MotionPropagation Model
successfully load 21 params for MotionPropagation
Traceback (most recent call last):
File "./scripts/DUTStabilizer.py", line 111, in
generateStable(model, inPath, outPath, outPrefix, maxlength, args)
File "./scripts/DUTStabilizer.py", line 42, in generateStable
image = image * (1. / 255.)
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
Stabiling using the DIFRINT model

Namespace(InputBasePath='images/', OutputBasePath='results/', cuda=True, desiredHeight=480, desiredWidth=640, modelPath='ckpt/DIFNet2.pth', n_iter=3, skip=2, temp_file='./DIFRINT_TEMP/')

Iter: 1
C:\Users\Milan\miniconda3\envs\dutcode\lib\site-packages\torch\nn\functional.py:2705: UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details.
warnings.warn("Default grid_sample and affine_grid behavior has changed "
Frame: 10/4673

Dut stabilizer not working, difrint works fine...
on windows 10, miniconda envionment...these videos are not in classic res....they are smaller than 640x480pix
please tell me where I am wrong?

Emmmm. this is a strange error. I checked the code on line 42 in the "generateStable" function, which reads the image. Could you please print out the path to the image and check if there is a problem with the path or the image file?