xinntao / ESRGAN

ECCV18 Workshops - Enhanced SRGAN. Champion PIRM Challenge on Perceptual Super-Resolution. The training codes are in BasicSR.
https://github.com/xinntao/BasicSR
Apache License 2.0
6.04k stars 1.07k forks source link

When I trained Real-ESRNet, I encountered this problem. #131

Closed TangYuangao closed 2 years ago

TangYuangao commented 2 years ago

File "realesrgan/train.py", line 13, in train_pipeline(root_path) File "D:\anaconda\envs\Pytorch\lib\site-packages\basicsr\train.py", line 120, in train_pipeline result = create_train_val_dataloader(opt, logger) File "D:\anaconda\envs\Pytorch\lib\site-packages\basicsr\train.py", line 35, in create_train_val_dataloader train_set = build_dataset(dataset_opt) File "D:\anaconda\envs\Pytorch\lib\site-packages\basicsr\data__init__.py", line 34, in build_dataset dataset = DATASET_REGISTRY.get(dataset_opt['type'])(dataset_opt) File "D:\anaconda\envs\Pytorch\lib\site-packages\basicsr\utils\registry.py", line 65, in get raise KeyError(f"No object named '{name}' found in '{self._name}' registry!") KeyError: "No object named 'RealESRGANDataset' found in 'dataset' registry!"

I don't know how to solve this problem. anyone could do me a favor?

datasets: train: name: DF2K+OST type: RealESRGANDataset dataroot_gt: datasets meta_info: realesrgan/meta_info/meta_info_DF2Kmultiscale.txt io_backend: type: disk

TangYuangao commented 2 years ago

I didn't run setup.py, before I trained ESRNet. So I get this problem.