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

运行错误,数据集有问题。 #54

Open
gdsdfn75 opened this issue Jul 22, 2024 · 2 comments
Open

运行错误,数据集有问题。 #54

gdsdfn75 opened this issue Jul 22, 2024 · 2 comments

Comments

@gdsdfn75
Copy link

大佬的这个工作非常好。我在复现的时候用了一个30图片的数据集,运行后出现以下错误
Traceback (most recent call last):
File "basicsr/train.py", line 215, in
train_pipeline(root_path)
File "basicsr/train.py", line 120, in train_pipeline
result = create_train_val_dataloader(opt, logger)
File "basicsr/train.py", line 35, in create_train_val_dataloader
train_set = build_dataset(dataset_opt)
File "E:\env\anaconda\envs\test001\lib\site-packages\basicsr-1.3.5-py3.8.egg\basicsr\data_init_.py", line 34, in build_dataset
dataset = DATASET_REGISTRY.get(dataset_opt['type'])(dataset_opt)
File "E:\env\anaconda\envs\test001\lib\site-packages\basicsr-1.3.5-py3.8.egg\basicsr\data\paired_image_dataset.py", line 65, in init
self.paths = paired_paths_from_folder([self.lq_folder, self.gt_folder], ['lq', 'gt'], self.filename_tmpl)
File "E:\env\anaconda\envs\test001\lib\site-packages\basicsr-1.3.5-py3.8.egg\basicsr\data\data_util.py", line 195, in paired_paths_from_folder
assert input_name in input_paths, f'{input_name} is not in {input_key}_paths.'
AssertionError: baseballfield091x4.png is not in lq_paths.
大佬能帮看一下,是哪里出错了吗?

@zhengchen1999
Copy link
Owner

你的数据包括LQ(低分辨率)和HQ(高分辨率)图片吗?
同时,命名格式需要注意LQ包含后缀'x4'。后缀可以通过修改 filename_tmpl 进行调整。

@gdsdfn75
Copy link
Author

你的数据包括LQ(低分辨率)和HQ(高分辨率)图片吗? 同时,命名格式需要注意LQ包含后缀'x4'。后缀可以通过修改filename_tmpl进行调整。

感谢大佬回复,是数据集命名的问题,已经解决了。

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

2 participants