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

SIGSEGV: Segmentation fault

Open puhan123 opened this issue 5 years ago • 3 comments

A “SIGSEGV: Segmentation fault” error occurred while running video_inpaint.py

puhan123 avatar Jul 28 '19 09:07 puhan123

Could you provide much more information?

nbei avatar Jul 29 '19 13:07 nbei

Hi! I locate the error at tools/infer_flownet2.py at 53 line 'flow = Flownet(f1, f2)', I want to know why are you passing in two parameters for the Flownet? What does the Flownet stand for?Does it not represent the optical flow produced by FlowNet2? Thank you very much.

(deep_flow) $ python tools/video_inpaint.py --frame_dir ./demo/frames --MASK_ROOT ./demo/masks --img_size 512 832 --FlowNet2 --DFC --ResNet101 --Propagation before extract_flow extract_flow... This Video has 80 Images The optical flow list has been generated: ./demo/video_flow.txt before loading pretrained_model_flownet2 ====> Loading ./pretrained_models/FlowNet2_checkpoint.pth.tar after loading pretrained_model_flownet2 type = <class 'torch.utils.data.dataloader.DataLoader'> 158 before 第一个Good! Good! <class 'torch.Tensor'> torch.Size([1, 3, 512, 832]) before Flownet /home/yf/.local/share/virtualenvs/deep_flow-NGK_eXwf/lib/python3.6/site-packages/torch/nn/functional.py:1749: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details. "See the documentation of nn.Upsample for details.".format(mode)) Segmentation fault

puhan123 avatar Jul 30 '19 01:07 puhan123

Hi! I locate the error at tools/infer_flownet2.py at 53 line 'flow = Flownet(f1, f2)', I want to know why are you passing in two parameters for the Flownet? What does the Flownet stand for?Does it not represent the optical flow produced by FlowNet2? Thank you very much.

(deep_flow) $ python tools/video_inpaint.py --frame_dir ./demo/frames --MASK_ROOT ./demo/masks --img_size 512 832 --FlowNet2 --DFC --ResNet101 --Propagation before extract_flow extract_flow... This Video has 80 Images The optical flow list has been generated: ./demo/video_flow.txt before loading pretrained_model_flownet2 ====> Loading ./pretrained_models/FlowNet2_checkpoint.pth.tar after loading pretrained_model_flownet2 type = <class 'torch.utils.data.dataloader.DataLoader'> 158 before 第一个Good! Good! <class 'torch.Tensor'> torch.Size([1, 3, 512, 832]) before Flownet /home/yf/.local/share/virtualenvs/deep_flow-NGK_eXwf/lib/python3.6/site-packages/torch/nn/functional.py:1749: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details. "See the documentation of nn.Upsample for details.".format(mode)) Segmentation fault

hi, @puhan123 i found this is caused by cv2 requires libSM.so.6, you can try 'apt-get install -y python-qt4'

hacker0000 avatar Aug 17 '20 09:08 hacker0000