update
Browse files- infer_api.py +6 -7
infer_api.py
CHANGED
|
@@ -100,6 +100,12 @@ weight_dtype = torch.float16
|
|
| 100 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 101 |
VIEWS = ['front', 'front_right', 'right', 'back', 'left', 'front_left']
|
| 102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
@spaces.GPU
|
| 105 |
def set_seed(seed):
|
|
@@ -802,13 +808,6 @@ def infer_multiview_gen(img, seed, num_levels):
|
|
| 802 |
all_results[k] = results[k]
|
| 803 |
return results, all_results
|
| 804 |
|
| 805 |
-
repo_id = "hyz317/StdGEN"
|
| 806 |
-
all_files = list_repo_files(repo_id, revision="main")
|
| 807 |
-
for file in all_files:
|
| 808 |
-
if os.path.exists(file):
|
| 809 |
-
continue
|
| 810 |
-
hf_hub_download(repo_id, file, local_dir="./ckpt")
|
| 811 |
-
|
| 812 |
infer_canonicalize_config = {
|
| 813 |
'config_path': './configs/canonicalization-infer.yaml',
|
| 814 |
}
|
|
|
|
| 100 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 101 |
VIEWS = ['front', 'front_right', 'right', 'back', 'left', 'front_left']
|
| 102 |
|
| 103 |
+
repo_id = "hyz317/StdGEN"
|
| 104 |
+
all_files = list_repo_files(repo_id, revision="main")
|
| 105 |
+
for file in all_files:
|
| 106 |
+
if os.path.exists(file):
|
| 107 |
+
continue
|
| 108 |
+
hf_hub_download(repo_id, file, local_dir="./ckpt")
|
| 109 |
|
| 110 |
@spaces.GPU
|
| 111 |
def set_seed(seed):
|
|
|
|
| 808 |
all_results[k] = results[k]
|
| 809 |
return results, all_results
|
| 810 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 811 |
infer_canonicalize_config = {
|
| 812 |
'config_path': './configs/canonicalization-infer.yaml',
|
| 813 |
}
|