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
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