TRI-ML / packnet-sfm

TRI-ML Monocular Depth Estimation Repository
https://tri-ml.github.io/packnet-sfm/
MIT License
1.21k stars 241 forks source link

set image_shape in infer.py #205

Open luda1013 opened 2 years ago

luda1013 commented 2 years ago

in the argument: python3 scripts/infer.py --checkpoint --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!

yhabib29 commented 2 years ago

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