Deep-Flow-Guided-Video-Inpainting icon indicating copy to clipboard operation
Deep-Flow-Guided-Video-Inpainting copied to clipboard

Error about Flownet2 installation

Open cherryhanya opened this issue 5 years ago • 7 comments

When I tried to execute example command, I encountered with this issues. Could you please help to solve this problem? I guess there is a problem regarding the 'resample2d_cuda.cpython-36m-x86_64-linux-gnu.so' file

Screenshot from 2020-01-18 11-40-42

cherryhanya avatar Jan 18 '20 02:01 cherryhanya

I can't help you with the flownet2 modules. I've also had problems with them. So I removed them and implemented a similar network in its place: The LiteFlowNet (pytorch, original). This implementation doesn't need the flownet2 modules at all but you need to install CuPy

You can check it out here: https://github.com/lukas-blecher/Deep-Flow-Guided-Video-Inpainting

lukas-blecher avatar Jan 18 '20 14:01 lukas-blecher

I can't help you with the flownet2 modules. I've also had problems with them. So I removed them and implemented a similar network in its place: The LiteFlowNet (pytorch, original). This implementation doesn't need the flownet2 modules at all but you need to install CuPy

You can check it out here: https://github.com/lukas-blecher/Deep-Flow-Guided-Video-Inpainting

Thank you so much for your comment! It was really helpful for me. I succeed to extract flow from LiteFlowNet. However, when i tried to get the inpainting result again, I got this error from 'FlowInitial.py' part. I tried to change the type of 'tmp_mask_resized' to cv::UMat, but it didn't work. Do you have any idea why it happens?

Screenshot from 2020-01-20 17-46-07

cherryhanya avatar Jan 20 '20 08:01 cherryhanya

seems like there was missing a keyword argument. Try again with interpolation=cv2.INTER_NEAREST or pull the changes.

lukas-blecher avatar Jan 20 '20 12:01 lukas-blecher

seems like there was missing a keyword argument. Try again with interpolation=cv2.INTER_NEAREST or pull the changes.

Problem solved! Thank you so much for the quick and kind answers!

hanuilee avatar Jan 21 '20 11:01 hanuilee

Where did you get pretrained_model_liteflownet?

yuyang16101066 avatar Sep 24 '20 08:09 yuyang16101066

@yuyang16101066 I've linked them in the README of the fork or in this issue

lukas-blecher avatar Sep 24 '20 09:09 lukas-blecher

@yuyang16101066 I've linked them in the README of the fork or in this issue

Thanks for your reply. I have generated flow with LiteFlowNet.

yuyang16101066 avatar Sep 25 '20 06:09 yuyang16101066