You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docker/docker-compose.yml
+9-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,12 @@ services:
6
6
dockerfile: Dockerfile
7
7
args:
8
8
USER_ID: ${USER_ID:-1000}
9
-
runtime: nvidia # TODO: Exchange with "gpu: all" in the future (see https://github.com/facebookresearch/detectron2/pull/197/commits/00545e1f376918db4a8ce264d427a07c1e896c5a).
9
+
deploy:
10
+
resources:
11
+
reservations:
12
+
devices:
13
+
- capabilities:
14
+
- gpu
10
15
shm_size: "8gb"
11
16
ulimits:
12
17
memlock: -1
@@ -16,3 +21,6 @@ services:
16
21
environment:
17
22
- DISPLAY=$DISPLAY
18
23
- NVIDIA_VISIBLE_DEVICES=all
24
+
# Uncomment with proper source to access webcam from docker
0 commit comments