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

Sorry, I can't reproduce your code #16

Open
52gentleman opened this issue Aug 17, 2021 · 0 comments
Open

Sorry, I can't reproduce your code #16

52gentleman opened this issue Aug 17, 2021 · 0 comments

Comments

@52gentleman
Copy link

I have some trouble. I can't solve it. I'm sorry

Traceback (most recent call last):
File "train.py", line 249, in
main()
File "train.py", line 107, in main
train_set = create_dataset(dataset_opt)
File "/InvDN-main/codes/data/init.py", line 36, in create_dataset
dataset = D(dataset_opt)
File "/InvDN-main/codes/data/LQGTRN_dataset.py", line 25, in init
self.paths_GT, self.sizes_GT = util.get_image_paths(self.data_type, opt['dataroot_GT'])
File "/InvDN-main/codes/data/util.py", line 52, in get_image_paths
paths = sorted(_get_paths_from_images(dataroot))
File "/InvDN-main/codes/data/util.py", line 23, in _get_paths_from_images
assert os.path.isdir(path), '{:s} is not a valid directory'.format(path)
AssertionError: is not a valid directory

Traceback (most recent call last):
File "/InvDN-main/codes/train.py", line 250, in
main()
File "/InvDN-main/codes/train.py", line 37, in main
opt = option.parse(args.opt, is_train=True)
File "\InvDN-main\codes\options\options.py", line 10, in parse
with open(opt_path, mode='r') as f:
TypeError: expected str, bytes or os.PathLike object, not NoneType

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