packnet-sfm icon indicating copy to clipboard operation
packnet-sfm copied to clipboard

set image_shape in infer.py

Open luda1013 opened this issue 3 years ago • 1 comments

in the argument: python3 scripts/infer.py --checkpoint <checkpoint.ckpt> --input --output [--image_shape <input shape (h,w)>]

i followed it and type: $ python infer.py --checkpoint PackNet01_MR_semisup_CStoK.ckpt --input Testbilder/test_01.jpg --output Output/test_01_out_shaped.jpg --image_shape (640,640)

and got this error: bash: syntax error near unexpected token `('

can someone give me an example how to write the command correctly? thanks!

luda1013 avatar Jan 17 '22 15:01 luda1013

Use spaces instead:

$ python infer.py --checkpoint PackNet01_MR_semisup_CStoK.ckpt --input Testbilder/test_01.jpg --output Output/test_01_out_shaped.jpg --image_shape 640 640

However, I tried it and it's not working with every shape ...

yhabib29 avatar Jul 08 '22 16:07 yhabib29