JingyunLiang / SwinIR

SwinIR: Image Restoration Using Swin Transformer (official repository)

Home Page:https://arxiv.org/abs/2108.10257

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in module 4

tavisc opened this issue · comments

I'm trying to upscale a single image before I run a batch, but I'm getting the following error in module 4:

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

I have no idea what this means or how to fix it.

Check your path if you are reading image. This usually occurs, when image you are trying to pass is empty.

@Haris-Ali007 Thank you for your answer.