Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Any possible way to pass URL with .jpg instead of local file? #31

Open
SuperMaximus1984 opened this issue Oct 30, 2022 · 1 comment
Open

Comments

@SuperMaximus1984
Copy link

SuperMaximus1984 commented Oct 30, 2022

Please advise how to pass URL to restapi.py instead of local image?

I need this
$ curl -X POST -F image=@tests/zidane.jpg 'http://localhost:5000/v1/object-detection/yolov5s'
to be like
$ curl -X POST -F url=http://login:password@192.168.0.3/zidane.jpg 'http://localhost:5000/v1/object-detection/yolov5s'

What part of restpai.py and how may be modified for achieving this?
Thank you!

P.S. Can docker container access host machine GPU with --gpus all ?

@robmarkcole
Copy link
Owner

That is not implemented.
To do so the api would need to check what is passed and then download the image if a url is passed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants