vt-vl-lab / FGVC

[ECCV 2020] Flow-edge Guided Video Completion
Other
1.55k stars 263 forks source link

' --Nonlocal ' in video_completion.py results in error #52

Closed 21pl closed 2 years ago

21pl commented 3 years ago

Traceback (most recent call last): File "video_completion.py", line 613, in main(args) File "video_completion.py", line 576, in main video_completion_seamless(args) File "video_completion.py", line 510, in video_completion_seamless None) File "/content/FGVC/tool/get_flowNN_gradient.py", line 440, in get_flowNN_gradient videoNonLocalFlowB[:, :, :, 0, indFrame], TypeError: 'NoneType' object is not subscriptable

habijung commented 2 years ago

I got a same problem.

In my case,

python video_completion.py --seamless --edge_guide --mode object_removal --path '{% path %}' --path_mask '{% path_mask %}' --outroot '{% outroot %}' --Nonlocal true --mixed_precision

and the result is also File "~\FGVC\tool\get_flowNN_gradient.py", line 440, in get_flowNN_gradient videoNonLocalFlowB[:, :, :, 0, indFrame], TypeError: 'NoneType' object is not subscriptable

In video_completion.py and get_flowNN_gradient.py, there is not defined videoNonLocalFlowB, videoNonLocalFlowF. How can I get this value?

gaochen315 commented 2 years ago

Hi @21pl,

Sorry for the late reply. Now the code supports non-local flow. You can enable the --Nonlocal flag.

Please note that I haven't thoroughly tested the correctness of the non-local flow (this codebase is different from the one I used for ECCV).

Hope this helps. Please let me know if there is anything I can help with.