bash download_weights.sh
Build docker image:
docker build . -t <image_name>:<image_tag>
Run docker container:
docker run -d -p 5055:5055 --name <container_name> <image_name>:<image_tag>
-
URL
/api/detectron_vlp
-
Method:
POST
-
URL Params
Required:
image=[file]
-
Success Response:
- Code: 200
Content:{ "message" : "Successfully", "result" : result dictionary of proposal, feature region and probability class list }
- Code: 200
-
Error Response:
- Code: 419 MISSING ARGUMENTS
Content:{'message': 'No file selected'}
OR
- Code: 420 INVALID ARGUMENTS
Content:{'message': 'Not in allowed file'}
- Code: 419 MISSING ARGUMENTS
-
Sample Call:
curl -F image=@<image_path> http://<service_ip>:5055/api/detectron_vlp