You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: