pytorch-semseg icon indicating copy to clipboard operation
pytorch-semseg copied to clipboard

running the test file

Open munirfarzeen opened this issue 6 years ago • 2 comments

hi, i am trying to run the code, and getting the following error, your help is appreciated.

data = json.load(open(config_file)) FileNotFoundError: [Errno 2] No such file or directory: 'config.json'

munirfarzeen avatar Jan 07 '19 15:01 munirfarzeen

convert the .yaml file in config to .json

zaidzidane avatar Jan 09 '19 08:01 zaidzidane

After converting to config.json, I got the following error.

python test.py --model_path runs/Segnet_cityscapes/48080/segnet_cityscapes_best_model.pkl --dataset cityscapes --img_path testin.png --out_path testout.png

Read Input Image from : testin.png Traceback (most recent call last): File "test.py", line 157, in test(args) File "test.py", line 33, in test data_path = get_data_path(args.dataset) File "/scratch-local/cdtemp/christian/pytorch-semseg/ptsemseg/loader/init.py", line 37, in get_data_path return data[name]["data_path"] KeyError: 'cityscapes'

Is it legit to use online yaml to json converter ? How to convert to json?

chris3006 avatar Jan 15 '19 14:01 chris3006