Holmes-Alan / dSRVAE

Unsupervised Real Image Super-Resolution via Variational AutoEncoder in CVPR2020
119 stars 15 forks source link

NameError: name 'LR_filename' is not defined #1

Open thoppe opened 4 years ago

thoppe commented 4 years ago

Running test.py gives the following error:

Namespace(chop_forward=True, gpu_mode=True, gpus=1, input='Test', model_SR='models/VAE_SR.pth', model_denoiser='models/VAE_denoiser.pth', model_type='VAE', output='Result', patch_size=128, seed=123, stride=8, testBatchSize=64, threads=6, upscale_factor=4)
===> Building model  VAE
===> Loading datasets
Pre-trained Denoiser model is loaded.
Pre-trained SR model is loaded.
Traceback (most recent call last):
  File "test.py", line 151, in <module>
    eval()
  File "test.py", line 86, in eval
    SR_image = [join(opt.Result, x) for x in listdir(LR_filename) if is_image_file(x)]
NameError: name 'LR_filename' is not defined

Not sure what LR_filename is since it's not defined anywhere else in the code. How can I get your test to run?

Holmes-Alan commented 4 years ago

Thanks for letting me know. Problem has been fixed.