Ariamehr commited on
Commit
09cf861
·
verified ·
1 Parent(s): 7677377

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -124,11 +124,11 @@ def create_legend_image(labels_to_ids: dict[str, int], filename="legend.png"):
124
 
125
  # ----------------- MODEL ----------------- #
126
 
127
- URL = "https://huggingface.co/facebook/sapiens/resolve/main/sapiens_lite_host/torchscript/depth/checkpoints/sapiens_1b/sapiens_1b_render_people_epoch_88_torchscript.pt2?download=true"
128
  CHECKPOINTS_DIR = os.path.join(ASSETS_DIR, "checkpoints")
129
  os.makedirs(CHECKPOINTS_DIR, exist_ok=True)
130
 
131
- model_path = os.path.join(CHECKPOINTS_DIR, "sapiens_1b_render_people_epoch_88_torchscript.pt2")
132
 
133
  if not os.path.exists(model_path) or os.path.getsize(model_path) == 0:
134
  print("Downloading model...")
 
124
 
125
  # ----------------- MODEL ----------------- #
126
 
127
+ URL = "https://huggingface.co/facebook/sapiens/resolve/main/sapiens_lite_host/torchscript/pose/checkpoints/sapiens_1b/sapiens_1b_goliath_best_goliath_AP_640_torchscript.pt2?download=true"
128
  CHECKPOINTS_DIR = os.path.join(ASSETS_DIR, "checkpoints")
129
  os.makedirs(CHECKPOINTS_DIR, exist_ok=True)
130
 
131
+ model_path = os.path.join(CHECKPOINTS_DIR, "sapiens_1b_goliath_best_goliath_AP_640_torchscript.pt2")
132
 
133
  if not os.path.exists(model_path) or os.path.getsize(model_path) == 0:
134
  print("Downloading model...")