ZhanzhouFeng / Pytorch-Implement-Faster-High-Res-Neural-Inpainting

This is a Pytorch implementation for paper "High-Resolution Image Inpainting using Multi-Scale Neural Patch Synthesis"
11 stars 4 forks source link

cv2.error !_src.empty() #5

Open varungupta31 opened 2 years ago

varungupta31 commented 2 years ago

I'm getting the following error after performing

python run_your_pic.py --content_path "For_test/001101_2.jpg"

cv2.error: OpenCV(4.2.0) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

I tried on existing images in the 'For_test' directory and also on personal images (both .JPG and .PNG format). @ZhanzhouFeng Kindly help.

zk1581164404 commented 2 years ago

maybe modify line93-107 in run_your_pic.py , then it works. 'Pairs_streetVeiw\part1/000001_1.jpg' --> 'Pairs_streetVeiw/part1/000001_1.jpg' ...