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

ImportError: No module named 'models.FlowNet2_Models.resample2d_package._ext.resample2d._resample2d'

Open skye95git opened this issue 4 years ago • 2 comments

When I tested the image inpainting code by running as README suggests: python3 tools/video_inpaint.py --frame_dir ./demo/frames --MASK_ROOT ./demo/masks --img_size 512 832 --FlowNet2 --DFC --ResNet101 --Propagation I met this error: ImportError: No module named 'models.FlowNet2_Models.resample2d_package._ext.resample2d._resample2d QQ图片20201201102243 How to solve this problem?

skye95git avatar Dec 01 '20 02:12 skye95git

do you solve the problem ?

ouyang11111 avatar Sep 07 '21 08:09 ouyang11111

This issue is still relevant for me root@220933f32d51:/inpainting# python3 tools/video_inpaint.py --frame_dir ./demo/frames --MASK_ROOT ./demo/masks --img_size 512 832 --FlowNet2 --DFC --ResNet101 --Propagation Traceback (most recent call last): File "tools/video_inpaint.py", line 7, in <module> from tools.frame_inpaint import DeepFillv1 File "/inpainting/tools/frame_inpaint.py", line 7, in <module> from models import DeepFill File "/inpainting/models/__init__.py", line 1, in <module> from .FlowNet2_Models.FlowNet2 import * File "/inpainting/models/FlowNet2_Models/FlowNet2.py", line 8, in <module> from .resample2d_package.modules.resample2d import Resample2d File "/inpainting/models/FlowNet2_Models/resample2d_package/modules/resample2d.py", line 3, in <module> from ..functions.resample2d import Resample2dFunction File "/inpainting/models/FlowNet2_Models/resample2d_package/functions/resample2d.py", line 3, in <module> from .._ext import resample2d File "/inpainting/models/FlowNet2_Models/resample2d_package/_ext/resample2d/__init__.py", line 3, in <module> from ._resample2d import lib as _lib, ffi as _ffi ImportError: No module named 'models.FlowNet2_Models.resample2d_package._ext.resample2d._resample2d'

Ligul avatar Jan 16 '23 05:01 Ligul