Skip to content

Assertion Error while training the model #231

@009-AkshayRajput

Description

@009-AkshayRajput

While running this command
python3 train.py --dataroot "C:\TEMP\DeblurGAN-master\blurred_sharp\combine" --learn_residual --resize_or_crop crop --fineSize 256

it gives the error:-
Opt.nThreads = 2
Traceback (most recent call last):
File "train.py", line 71, in
data_loader = CreateDataLoader(opt)
File "/mnt/c/DeblurGAN-master/data/data_loader.py", line 4, in CreateDataLoader
data_loader = CustomDatasetDataLoader(opt)
File "/mnt/c/DeblurGAN-master/data/custom_dataset_data_loader.py", line 32, in init
self.dataset = CreateDataset(opt)
File "/mnt/c/DeblurGAN-master/data/custom_dataset_data_loader.py", line 9, in CreateDataset
dataset = AlignedDataset(opt)
File "/mnt/c/DeblurGAN-master/data/aligned_dataset.py", line 17, in init
self.AB_paths = sorted(make_dataset(self.dir_AB))
File "/mnt/c/DeblurGAN-master/data/image_folder.py", line 26, in make_dataset
assert os.path.isdir(dir), '%s is not a valid directory' % dir
AssertionError: C:\DeblurGAN-mastelurred_sharp\combine/train is not a valid directory

What is the issue?
Please clarify it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions