xmrt commited on
Commit
b75d5b3
1 Parent(s): 6cf53aa
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. main.py +2 -2
Dockerfile CHANGED
@@ -8,7 +8,7 @@ COPY ./requirements.txt /code/requirements.txt
8
  #https://download.pytorch.org/whl/torch_stable.ht
9
 
10
  #https://stackoverflow.com/questions/55313610/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directo
11
- RUN apt-get update && apt-get install python3.9 python3-pip ffmpeg libsm6 libxext6 -y
12
 
13
  RUN pip install torch --extra-index-url https://download.pytorch.org/whl/cu113
14
  # --index-url https://download.pytorch.org/whl/cu117
 
8
  #https://download.pytorch.org/whl/torch_stable.ht
9
 
10
  #https://stackoverflow.com/questions/55313610/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directo
11
+ RUN apt-get update && apt-get install python3.9 python3-pip git ffmpeg libsm6 libxext6 -y
12
 
13
  RUN pip install torch --extra-index-url https://download.pytorch.org/whl/cu113
14
  # --index-url https://download.pytorch.org/whl/cu117
main.py CHANGED
@@ -1,5 +1,3 @@
1
-
2
-
3
  # Pose inferencing
4
  import mmpose
5
  from mmpose.apis import MMPoseInferencer
@@ -29,6 +27,8 @@ if torch.cuda.is_available():
29
  else:
30
  device = torch.device("cpu")
31
 
 
 
32
  print("[INFO]: Imported modules!")
33
  human = MMPoseInferencer("human")
34
  hand = MMPoseInferencer("hand")
 
 
 
1
  # Pose inferencing
2
  import mmpose
3
  from mmpose.apis import MMPoseInferencer
 
27
  else:
28
  device = torch.device("cpu")
29
 
30
+ os.system("nvidia-smi")
31
+
32
  print("[INFO]: Imported modules!")
33
  human = MMPoseInferencer("human")
34
  hand = MMPoseInferencer("hand")