Spaces:
Runtime error
Runtime error
Chris
commited on
Commit
·
2875be3
1
Parent(s):
0b3004e
Change order of imports.
Browse files- app.py +5 -5
- keypoints_extraction.py +0 -3
app.py
CHANGED
|
@@ -1,8 +1,3 @@
|
|
| 1 |
-
from keypoints_extraction import predict_pose
|
| 2 |
-
from calculate_measures import calculate_all_measures
|
| 3 |
-
from calculate_masks import calculate_seg_mask
|
| 4 |
-
from select_body_shape import select_body_shape
|
| 5 |
-
|
| 6 |
import os
|
| 7 |
os.system("pip install xtcocotools>=1.12")
|
| 8 |
os.system("pip install 'mmengine>=0.6.0'")
|
|
@@ -10,6 +5,11 @@ os.system("pip install 'mmcv>=2.0.0rc4,<2.1.0'")
|
|
| 10 |
os.system("pip install 'mmdet>=3.0.0,<4.0.0'")
|
| 11 |
os.system("pip install 'mmpose'")
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
import gradio as gr
|
| 14 |
|
| 15 |
def generate_output(front_img_path, side_img_path):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
os.system("pip install xtcocotools>=1.12")
|
| 3 |
os.system("pip install 'mmengine>=0.6.0'")
|
|
|
|
| 5 |
os.system("pip install 'mmdet>=3.0.0,<4.0.0'")
|
| 6 |
os.system("pip install 'mmpose'")
|
| 7 |
|
| 8 |
+
from keypoints_extraction import predict_pose
|
| 9 |
+
from calculate_measures import calculate_all_measures
|
| 10 |
+
from calculate_masks import calculate_seg_mask
|
| 11 |
+
from select_body_shape import select_body_shape
|
| 12 |
+
|
| 13 |
import gradio as gr
|
| 14 |
|
| 15 |
def generate_output(front_img_path, side_img_path):
|
keypoints_extraction.py
CHANGED
|
@@ -1,10 +1,7 @@
|
|
| 1 |
-
import PIL
|
| 2 |
import cv2
|
| 3 |
-
import mmpose
|
| 4 |
import numpy as np
|
| 5 |
|
| 6 |
import torch
|
| 7 |
-
from mmpose.apis import MMPoseInferencer
|
| 8 |
from mmpose.apis import inference_topdown, init_model
|
| 9 |
from mmpose.utils import register_all_modules
|
| 10 |
register_all_modules()
|
|
|
|
|
|
|
| 1 |
import cv2
|
|
|
|
| 2 |
import numpy as np
|
| 3 |
|
| 4 |
import torch
|
|
|
|
| 5 |
from mmpose.apis import inference_topdown, init_model
|
| 6 |
from mmpose.utils import register_all_modules
|
| 7 |
register_all_modules()
|