Skip to content

Commit 07ae2e9

Browse files
authored
Update dataset directory for colorization
1 parent aec7ae3 commit 07ae2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/colorization_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, opt):
3636
opt (Option class) -- stores all the experiment flags; needs to be a subclass of BaseOptions
3737
"""
3838
BaseDataset.__init__(self, opt)
39-
self.dir = os.path.join(opt.dataroot)
39+
self.dir = os.path.join(opt.dataroot, opt.phase)
4040
self.AB_paths = sorted(make_dataset(self.dir, opt.max_dataset_size))
4141
assert(opt.input_nc == 1 and opt.output_nc == 2 and opt.direction == 'AtoB')
4242
self.transform = get_transform(self.opt, convert=False)

0 commit comments

Comments
 (0)