vt-vl-lab / 3d-photo-inpainting

[CVPR 2020] 3D Photography using Context-aware Layered Depth Inpainting
https://shihmengli.github.io/3D-Photo-Inpainting/
Other
6.88k stars 1.11k forks source link

-215:Assertion failed #190

Open swiftDoer opened 1 year ago

swiftDoer commented 1 year ago

Wanted to try out inpainting on Google colab. Get the following error at the last step:

processing patch 54 | [960 0 197 197] processing patch 55 | [1034 0 197 197] finished 0% 0/1 [00:53<?, ?it/s] Traceback (most recent call last): File "main.py", line 72, in image = cv2.resize(image, (config['output_w'], config['output_h']), interpolation=cv2.INTER_AREA) cv2.error: OpenCV(4.2.0) /io/opencv/modules/imgproc/src/resize.cpp:3688: error: (-215:Assertion failed) !dsize.empty() in function 'resize'

SlimeVRX commented 1 year ago

I found a Colab solution here, it works with Python 3.8