NVIDIA / semantic-segmentation

Nvidia Semantic Segmentation monorepo
BSD 3-Clause "New" or "Revised" License
1.76k stars 388 forks source link

How to use this for drawing inference on the Custom road images I have #148

Closed purnasai closed 1 year ago

purnasai commented 3 years ago

Hi. Can we use the models available here to draw inferences on the images we have.

I have downloaded the weights from the gdrive link in the readme and updated the path in the config file. also downloaded the auto labeled data and updated the path in the config file.

When i run the command in terminal(ubuntu os) python3 -m runx.runx scripts/dump_folder.yml -i. It throws me an error like below

Running job dump_folder_singing-lorikeet_2021.07.02_12.31 cd logs/dump_folder/singing-lorikeet_2021.07.02_12.31/code; PYTHONPATH=logs/dump_folder/singing-lorikeet_2021.07.02_12.31/code exec python -m torch.distributed.launch --nproc_per_node=1 train.py --dataset cityscapes --cv 0 --syncbn --apex --fp16 --bs_val 1 --eval folder --eval_folder ./imgs/test_imgs --dump_assets --dump_all_images --n_scales 0.5,1.0,2.0 --snapshot ASSETS_PATH/seg_weights/cityscapes_ocrnet.HRNet_Mscale_outstanding-turtle.pth --arch ocrnet.HRNet_Mscale --result_dir logs/dump_folder/singing-lorikeet_2021.07.02_12.31 /bin/sh: 1: cd: can't cd to logs/dump_folder/singing-lorikeet_2021.07.02_12.31/code /bin/sh: 1: exec: python: not found

Is this the right way to draw the inference, then what is the issue here? if this is not the right way, then what are the steps to inference

the image samplethat i want inference is here: image