Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError #8

Open
shangyueweiliang opened this issue Dec 3, 2019 · 0 comments
Open

AssertionError #8

shangyueweiliang opened this issue Dec 3, 2019 · 0 comments

Comments

@shangyueweiliang
Copy link

When i run your code,i get the error like this 👍

(pytorch) D:\CY\Super-resolution\RankSRGAN-master\codes>python test.py -opt options/test/test_RankSRGAN.yml
export CUDA_VISIBLE_DEVICES=3
19-12-03 10:15:28.664 - INFO: name: RankSRGANx4
suffix: None
model: sr
distortion: sr
scale: 4
crop_border: None
gpu_ids: [3]
datasets:[
test_1:[
name: set14
mode: LQGT
dataroot_GT: /home/wlzhang/BasicSR12/data/val/Set14_mod
dataroot_LQ: None
phase: test
scale: 4
data_type: img
]
test_2:[
name: PIRMtest
mode: LQGT
dataroot_GT: /home/wlzhang/RankSRGAN/data/val/PIRMtestHR
dataroot_LQ: /home/wlzhang/RankSRGAN/data/val/PIRMtest
phase: test
scale: 4
data_type: img
]
]
network_G:[
which_model_G: SRResNet
in_nc: 3
out_nc: 3
nf: 64
nb: 16
upscale: 4
scale: 4
]
path:[
pretrain_model_G: ../experiments/pretrained_models/mmsr_RankSRGAN_NIQE.pth
root: D:\CY\Super-resolution\RankSRGAN-master
results_root: D:\CY\Super-resolution\RankSRGAN-master\results\RankSRGANx4
log: D:\CY\Super-resolution\RankSRGAN-master\results\RankSRGANx4
]
is_train: False

Traceback (most recent call last):
File "test.py", line 30, in
test_set = create_dataset(dataset_opt)
File "D:\CY\Super-resolution\RankSRGAN-master\codes\data_init_.py", line 41, in create_dataset
dataset = D(dataset_opt)
File "D:\CY\Super-resolution\RankSRGAN-master\codes\data\LQGT_dataset.py", line 23, in init
self.paths_GT, self.sizes_GT = util.get_image_paths(self.data_type, opt['dataroot_GT'])
File "D:\CY\Super-resolution\RankSRGAN-master\codes\data\util.py", line 53, in get_image_paths
paths = sorted(_get_paths_from_images(dataroot))
File "D:\CY\Super-resolution\RankSRGAN-master\codes\data\util.py", line 24, in _get_paths_from_images
assert os.path.isdir(path), '{:s} is not a valid directory'.format(path)
AssertionError: /home/wlzhang/BasicSR12/data/val/Set14_mod is not a valid directory

So how can i do to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant