Ariamehr commited on
Commit
fcf6c9d
·
verified ·
1 Parent(s): ff1d311

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/normal/checkpoints/sapiens_0.3b/sapiens_0.3b_normal_render_people_epoch_66_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_0.3b_normal_render_people_epoch_66_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/normal/checkpoints/sapiens_1b/sapiens_1b_normal_render_people_epoch_115_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_normal_render_people_epoch_115_torchscript.pt2")
132
 
133
  if not os.path.exists(model_path) or os.path.getsize(model_path) == 0:
134
  print("Downloading model...")