-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
69 lines (67 loc) · 1.86 KB
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
frontend:
image: sam2/frontend
build:
context: ./frontend
ports:
- 7262:80
environment:
- DEMO_SHORT_NAME=Sigen SAM
- RESEARCH_BY_META_AI=by Sigen AI
backend_vid:
image: sam2/backend_vid
build:
context: ./backend-vid
ports:
- 7264:5000
volumes:
- ./data/:/data/:rw
environment:
- SERVER_ENVIRONMENT=DEV
- GUNICORN_WORKERS=1
# Inference API needs to have at least 2 threads to handle an incoming
# parallel cancel propagation request
- GUNICORN_THREADS=2
- GUNICORN_PORT=5000
- API_URL=http://localhost:7264
- DEFAULT_VIDEO_PATH=gallery/05_default_juggle.mp4
# # ffmpeg/video encode settings
- FFMPEG_NUM_THREADS=1
- VIDEO_ENCODE_CODEC=libx264
- VIDEO_ENCODE_CRF=23
- VIDEO_ENCODE_FPS=24
- VIDEO_ENCODE_MAX_WIDTH=1280
- VIDEO_ENCODE_MAX_HEIGHT=720
- VIDEO_ENCODE_VERBOSE=False
backend_inf:
image: sam2/backend_inf
build:
context: ./backend-inf
ports:
- 7265:5000
volumes:
- ./data/:/data/:rw
environment:
- SERVER_ENVIRONMENT=DEV
- GUNICORN_WORKERS=1
# Inference API needs to have at least 2 threads to handle an incoming
# parallel cancel propagation request
- GUNICORN_THREADS=2
- GUNICORN_PORT=5000
- API_URL=http://localhost:7265
- DEFAULT_VIDEO_PATH=gallery/05_default_juggle.mp4
# # ffmpeg/video encode settings
- FFMPEG_NUM_THREADS=1
- VIDEO_ENCODE_CODEC=libx264
- VIDEO_ENCODE_CRF=23
- VIDEO_ENCODE_FPS=24
- VIDEO_ENCODE_MAX_WIDTH=1280
- VIDEO_ENCODE_MAX_HEIGHT=720
- VIDEO_ENCODE_VERBOSE=False
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]