Closed AlexRMU closed 3 years ago
test_nogt.py
test.py
Traceback (most recent call last):
File "test_nogt.py", line 20, in <module>
dataloader = data.create_dataloader(opt)
File "/content/Face-Renovation/data/__init__.py", line 44, in create_dataloader
instance.initialize(opt)
File "/content/Face-Renovation/data/test_dataset.py", line 25, in initialize
files = [l for l in glob.glob(os.path.join(opt.dataroot, '*')) if l.lower().endswith(('jpg','png','jpeg'))][-opt.max_dataset_size:]
AttributeError: 'TestOptions' object has no attribute 'dataroot'
Hey man, I don't know where you store the data on your computer, so you need to switch the dataroot in configuration file first.
!python ./metrics_package/main.py --help
(colab)