xmrt commited on
Commit
577bb6b
1 Parent(s): 9242a8c

visualization

Browse files
Files changed (1) hide show
  1. main.py +6 -4
main.py CHANGED
@@ -1,6 +1,7 @@
1
  import mmpose
2
- print(mmpose.__version__)
3
  from mmpose.apis import MMPoseInferencer
 
4
  inferencer = MMPoseInferencer('human')
5
  print("[INFO]: Imported modules!")
6
 
@@ -11,9 +12,10 @@ def greet(photo):
11
  result_generator = inferencer(photo)
12
 
13
  print("[INFO]: Visualizing results!")
14
- vis, pred = next(result_generator)
15
- print(vis)
16
- return vis
 
17
 
18
  # # specify detection model by alias
19
  # # the available aliases include 'human', 'hand', 'face', 'animal',
 
1
  import mmpose
2
+ import os
3
  from mmpose.apis import MMPoseInferencer
4
+
5
  inferencer = MMPoseInferencer('human')
6
  print("[INFO]: Imported modules!")
7
 
 
12
  result_generator = inferencer(photo)
13
 
14
  print("[INFO]: Visualizing results!")
15
+ result = next(result_generator)
16
+ print(os.listdir())
17
+ print(result['visualization'])
18
+ return result['visualization']
19
 
20
  # # specify detection model by alias
21
  # # the available aliases include 'human', 'hand', 'face', 'animal',