mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 18:06:36 +02:00
update deepstack
This commit is contained in:
parent
ced056f4d0
commit
865b52beec
@ -9,8 +9,34 @@ custom models on multiple edge devices locally or on your private cloud.
|
||||
## up and running
|
||||
|
||||
```bash
|
||||
$ mkdir -p data/{datastore,modelstore}
|
||||
$ wget -P data/modelstore \
|
||||
https://github.com/odd86/deepstack_licenceplate_model/raw/main/models/licence-plate.pt \
|
||||
https://github.com/OlafenwaMoses/DeepStack_OpenLogo/releases/download/v1/openlogo.pt \
|
||||
https://github.com/OlafenwaMoses/DeepStack_ExDark/releases/download/v1/dark.pt \
|
||||
https://github.com/OlafenwaMoses/DeepStack_ActionNET/releases/download/v2/actionnetv2.pt \
|
||||
https://github.com/MikeLud/DeepStack-Security-Camera-Models/raw/main/Models/animal.pt \
|
||||
https://github.com/avatar42/RMRR.fire/raw/main/fire.pt \
|
||||
https://github.com/avatar42/RMRR.birds/raw/main/birds.pt
|
||||
$ docker-compose up -d
|
||||
$ http --form http://127.0.0.1:5000/v1/vision/face/ image@photo.jpg
|
||||
|
||||
# Face Detection
|
||||
$ http --form http://127.0.0.1:5000/v1/vision/face image@photo.jpg
|
||||
{"success": true, "predictions": [...]}
|
||||
|
||||
# Face Recognition
|
||||
$ http --form http://127.0.0.1:5000/v1/vision/face/register userid=kevin image1@photo1.jpg image2@photo2.jpg
|
||||
{"success": true, "message": "face added"}
|
||||
$ http --form http://127.0.0.1:5000/v1/vision/face/recognize image@photo.jpg
|
||||
{"success": true, "predictions": [...]}
|
||||
|
||||
# Object Detection
|
||||
$ http --form http://127.0.0.1:5000/v1/vision/detection image@photo.jpg
|
||||
{"success": true, "predictions": [...]}
|
||||
|
||||
# Custom Models
|
||||
$ http --form http://127.0.0.1:5000/v1/vision/custom/animal image@photo.jpg
|
||||
{"success": true, "predictions": [...]}
|
||||
```
|
||||
|
||||
[1]: https://deepstack.cc/
|
||||
|
@ -10,6 +10,8 @@ services:
|
||||
- DEEPSTACK_IP=deepstack
|
||||
- DEEPSTACK_PORT=5000
|
||||
- DEEPSTACK_TIMEOUT=20
|
||||
# API-KEY=******
|
||||
# DEEPSTACK_CUSTOM_MODEL=xxx
|
||||
depends_on:
|
||||
- deepstack
|
||||
restart: unless-stopped
|
||||
@ -19,10 +21,12 @@ services:
|
||||
ports:
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- ./data:/datastore
|
||||
- ./data/datastore:/datastore
|
||||
- ./data/modelstore:/modelstore/detection
|
||||
environment:
|
||||
- MODE=Medium
|
||||
- VISION-DETECTION=True
|
||||
- VISION-FACE=True
|
||||
- VISION-SCENE=True
|
||||
# DEEPSTACK_API_KEY=******
|
||||
restart: unless-stopped
|
||||
|
Loading…
Reference in New Issue
Block a user