facebookresearch / unnas

Code for "Are labels necessary for neural architecture search"
MIT License
92 stars 15 forks source link

label_name not found #4

Closed xdeng7 closed 4 years ago

xdeng7 commented 4 years ago

I think for cityscapes, there is a typo for loading the dataset.

File "tools/train_net.py", line 20, in main dist.multi_proc_run(num_proc=cfg.NUM_GPUS, fun=trainer.train_model) File "/home/ubuntu/unnas/pycls/core/distributed.py", line 141, in multi_proc_run fun(*fun_args, **fun_kwargs) File "/home/ubuntu/unnas/pycls/core/trainer.py", line 331, in train_model side="l" File "/home/ubuntu/unnas/pycls/datasets/loader.py", line 45, in _construct_loader dataset = _DATASETS[dataset_name](data_path, split, portion, side) File "/home/ubuntu/unnas/pycls/datasets/cityscapes.py", line 70, in init self._construct_imdb() File "/home/ubuntu/unnas/pycls/datasets/cityscapes.py", line 83, in _construct_imdb assert os.path.exists(label_fname), "{} not found".format(label_name) NameError: name 'label_name' is not defined

s9xie commented 4 years ago

Hi @xdeng7 - It was indeed a typo: "label_name" should be "label_fname". A fix was pushed and thanks for reporting!