You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use test.py to test a single (or couple of) images.
Can you share a typical test.py command line to do this?
I am using the following but it is not working:
python test.py --model_path '/home/arl/Documents/FCHARDNET/FCHarDNet-master/ptsemseg/models/hardnet.py' --dataset 'cityscapes' --input '/home/arl/Documents/FCHARDNET/FCHarDNet-master/test_image/index.jpeg' --output '/home/arl/Documents/FCHARDNET/FCHarDNet-master/test_image/index_output.jpeg'
In particular what should the --model_path point to? hardnet.py? or the weights *.pkl?
Also why does --dataset point to cityscapes if I am trying to test my own data?
I get the following error:
File "test.py", line 122, in
test(args)
File "test.py", line 39, in test
device, model, loader = init_model(args)
File "test.py", line 24, in init_model
test_mode=True
File "/home/arl/Documents/FCHARDNET/FCHarDNet-master/ptsemseg/loader/cityscapes_loader.py", line 82, in init
self.images_base = os.path.join(self.root, "leftImg8bit", self.split)
File "/home/arl/anaconda3/envs/rgbsemseg/lib/python3.6/posixpath.py", line 80, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
Thanks for an amazing repository.
How can I test the result with Cityscapes pre-trained weights for the single image?
The text was updated successfully, but these errors were encountered: