Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,6 +35,7 @@ from transformers import DetrForObjectDetection, DetrImageProcessor
|
|
| 35 |
from pose_render_utils import visualize_keypoints
|
| 36 |
|
| 37 |
|
|
|
|
| 38 |
# -----------------------------------------------------------------------------
|
| 39 |
# Config
|
| 40 |
|
|
@@ -42,26 +43,26 @@ ASSETS_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "assets")
|
|
| 42 |
CONFIGS_DIR = os.path.join(ASSETS_DIR, "configs")
|
| 43 |
|
| 44 |
POSE_MODELS = {
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
"1B": {
|
| 56 |
"repo": "facebook/sapiens2-pose-1b",
|
| 57 |
"filename": "sapiens2_1b_pose.safetensors",
|
| 58 |
"config": os.path.join(CONFIGS_DIR, "sapiens2_1b_keypoints308_shutterstock_goliath_3po-1024x768.py"),
|
| 59 |
},
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
}
|
| 66 |
DEFAULT_SIZE = "1B"
|
| 67 |
|
|
|
|
| 35 |
from pose_render_utils import visualize_keypoints
|
| 36 |
|
| 37 |
|
| 38 |
+
# -----------------------------------------------------------------------------
|
| 39 |
# -----------------------------------------------------------------------------
|
| 40 |
# Config
|
| 41 |
|
|
|
|
| 43 |
CONFIGS_DIR = os.path.join(ASSETS_DIR, "configs")
|
| 44 |
|
| 45 |
POSE_MODELS = {
|
| 46 |
+
# "0.4B": {
|
| 47 |
+
# "repo": "facebook/sapiens2-pose-0.4b",
|
| 48 |
+
# "filename": "sapiens2_0.4b_pose.safetensors",
|
| 49 |
+
# "config": os.path.join(CONFIGS_DIR, "sapiens2_0.4b_keypoints308_shutterstock_goliath_3po-1024x768.py"),
|
| 50 |
+
# },
|
| 51 |
+
# "0.8B": {
|
| 52 |
+
# "repo": "facebook/sapiens2-pose-0.8b",
|
| 53 |
+
# "filename": "sapiens2_0.8b_pose.safetensors",
|
| 54 |
+
# "config": os.path.join(CONFIGS_DIR, "sapiens2_0.8b_keypoints308_shutterstock_goliath_3po-1024x768.py"),
|
| 55 |
+
# },
|
| 56 |
"1B": {
|
| 57 |
"repo": "facebook/sapiens2-pose-1b",
|
| 58 |
"filename": "sapiens2_1b_pose.safetensors",
|
| 59 |
"config": os.path.join(CONFIGS_DIR, "sapiens2_1b_keypoints308_shutterstock_goliath_3po-1024x768.py"),
|
| 60 |
},
|
| 61 |
+
# "5B": {
|
| 62 |
+
# "repo": "facebook/sapiens2-pose-5b",
|
| 63 |
+
# "filename": "sapiens2_5b_pose.safetensors",
|
| 64 |
+
# "config": os.path.join(CONFIGS_DIR, "sapiens2_5b_keypoints308_shutterstock_goliath_3po-1024x768.py"),
|
| 65 |
+
# },
|
| 66 |
}
|
| 67 |
DEFAULT_SIZE = "1B"
|
| 68 |
|