BasicSR icon indicating copy to clipboard operation
BasicSR copied to clipboard

Outdated import in ESRGAN colab

Open Godofnothing opened this issue 3 years ago • 0 comments

The colab notebook with ESRGAN demo has wrong import in the cell Inference method 2: A minimum snippet of testing codes.

Instead of from basicsr.models.archs.rrdbnet_arch import RRDBNet one should use from basicsr.archs.rrdbnet_arch import RRDBNet.

And in the next cell !python inference/inference_esrgan.py --model_path experiments/pretrained_models/ESRGAN/ESRGAN_SRx4_DF2KOST_official-ff704c30.pth --folder datasets/Set14/LRbicx4

The inference/inference_esrgan.py expects --input and --output arguments, i.e --input datasets/Set14/LRbicx4 and --output results/*.

Godofnothing avatar Jan 05 '23 17:01 Godofnothing