xmrt commited on
Commit
612792f
·
1 Parent(s): c715082

added mmdet

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -1
  2. app.py +10 -0
Dockerfile CHANGED
@@ -17,7 +17,6 @@ RUN ls
17
 
18
  # Change directory to mmpose
19
  WORKDIR /code/mmpose
20
- RUN ls
21
  RUN pip install -r requirements.txt
22
  RUN pip install -e .
23
 
 
17
 
18
  # Change directory to mmpose
19
  WORKDIR /code/mmpose
 
20
  RUN pip install -r requirements.txt
21
  RUN pip install -e .
22
 
app.py CHANGED
@@ -11,6 +11,16 @@ def greet(photo):
11
  vis, pred = next(result_generator)
12
  return vis
13
 
 
 
 
 
 
 
 
 
 
 
14
  demo = gr.Interface(fn=greet, inputs=gr.Image(source="webcam"), outputs=gr.Image())
15
 
16
  demo.launch()
 
11
  vis, pred = next(result_generator)
12
  return vis
13
 
14
+ # # specify detection model by alias
15
+ # # the available aliases include 'human', 'hand', 'face', 'animal',
16
+ # # as well as any additional aliases defined in mmdet
17
+ # inferencer = MMPoseInferencer(
18
+ # # suppose the pose estimator is trained on custom dataset
19
+ # pose2d='custom_human_pose_estimator.py',
20
+ # pose2d_weights='custom_human_pose_estimator.pth',
21
+ # det_model='human'
22
+ # )
23
+
24
  demo = gr.Interface(fn=greet, inputs=gr.Image(source="webcam"), outputs=gr.Image())
25
 
26
  demo.launch()