kbrodt commited on
Commit
be3490d
1 Parent(s): 335e792

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -24,17 +24,6 @@ smpl_path = hf_hub_download(
24
  if not (ASSET_DIR / filename).is_file():
25
  shutil.copy(smpl_path, ASSET_DIR)
26
 
27
- #filename = "output.zip"
28
- #output_path = hf_hub_download(
29
- #repo_id=REPO_ID,
30
- #repo_type="dataset",
31
- #filename=filename,
32
- #use_auth_token=API_TOKEN,
33
- #cache_dir=ASSET_DIR,
34
- #)
35
- #if not (ASSET_DIR / filename).is_file():
36
- #shutil.copy(output_path, ASSET_DIR)
37
-
38
  subprocess.run("bash ./scripts/download.sh".split())
39
  subprocess.run("bash ./scripts/prepare.sh".split())
40
 
@@ -66,7 +55,7 @@ def main():
66
  cmd = cmd + " --use-natural"
67
 
68
  out_dir = (save_dir / Path(img_path).name).with_suffix("")
69
- mesh_path = out_dir / "us.obj"
70
 
71
  if not mesh_path.is_file():
72
  subprocess.call(cmd.split())
 
24
  if not (ASSET_DIR / filename).is_file():
25
  shutil.copy(smpl_path, ASSET_DIR)
26
 
 
 
 
 
 
 
 
 
 
 
 
27
  subprocess.run("bash ./scripts/download.sh".split())
28
  subprocess.run("bash ./scripts/prepare.sh".split())
29
 
 
55
  cmd = cmd + " --use-natural"
56
 
57
  out_dir = (save_dir / Path(img_path).name).with_suffix("")
58
+ mesh_path = out_dir / "us.glb"
59
 
60
  if not mesh_path.is_file():
61
  subprocess.call(cmd.split())