Spaces:
Running on Zero
Running on Zero
Commit ·
607259b
1
Parent(s): 31cebd2
test run gen
Browse files
app.py
CHANGED
|
@@ -306,7 +306,7 @@ def get_duration(rgb_image, seg_image, seed, randomize_seed,
|
|
| 306 |
cfg_interval_end, t_rescale):
|
| 307 |
instance_labels = np.unique(np.array(seg_image).reshape(-1, 3), axis=0)
|
| 308 |
step_duration = 15.0
|
| 309 |
-
return instance_labels.shape[0] * step_duration
|
| 310 |
|
| 311 |
@spaces.GPU(duration=get_duration)
|
| 312 |
def run_generation(
|
|
@@ -873,7 +873,7 @@ if __name__ == '__main__':
|
|
| 873 |
|
| 874 |
mogev2_id = 'Ruicheng/moge-2-vitl'
|
| 875 |
moge_v2_dpt_model = MoGeModel.from_pretrained(mogev2_id).to(
|
| 876 |
-
"cpu"
|
| 877 |
)
|
| 878 |
|
| 879 |
rot = np.array([
|
|
|
|
| 306 |
cfg_interval_end, t_rescale):
|
| 307 |
instance_labels = np.unique(np.array(seg_image).reshape(-1, 3), axis=0)
|
| 308 |
step_duration = 15.0
|
| 309 |
+
return instance_labels.shape[0] * step_duration + 60
|
| 310 |
|
| 311 |
@spaces.GPU(duration=get_duration)
|
| 312 |
def run_generation(
|
|
|
|
| 873 |
|
| 874 |
mogev2_id = 'Ruicheng/moge-2-vitl'
|
| 875 |
moge_v2_dpt_model = MoGeModel.from_pretrained(mogev2_id).to(
|
| 876 |
+
"cpu"
|
| 877 |
)
|
| 878 |
|
| 879 |
rot = np.array([
|