Spaces:
Runtime error
Runtime error
Commit
·
4533120
1
Parent(s):
24eaf98
update space
Browse files
app.py
CHANGED
@@ -74,6 +74,7 @@ def optimize_all(xm, models, initial_noise, noise_start_t, diffusion, latent_mod
|
|
74 |
@spaces.GPU()
|
75 |
@torch.no_grad()
|
76 |
def generate_3d_with_shap_e(xm, diffusion, latent_model, device, prompt, rand_seed, state):
|
|
|
77 |
set_seed(rand_seed)
|
78 |
batch_size = 4
|
79 |
guidance_scale = 15.0
|
@@ -416,6 +417,7 @@ def main():
|
|
416 |
inputs=[prompt, editing_choice[0], rand_seed],
|
417 |
outputs=[out_gen_1, out_gen_2, out_gen_3, out_gen_4, edited_1, edited_2, edited_3, edited_4],
|
418 |
fn=partial(optimize_all, xm, models, initial_noise, noise_start_t, diffusion, latent_model, device),
|
|
|
419 |
)
|
420 |
|
421 |
|
|
|
74 |
@spaces.GPU()
|
75 |
@torch.no_grad()
|
76 |
def generate_3d_with_shap_e(xm, diffusion, latent_model, device, prompt, rand_seed, state):
|
77 |
+
print("Check if I can use partial")
|
78 |
set_seed(rand_seed)
|
79 |
batch_size = 4
|
80 |
guidance_scale = 15.0
|
|
|
417 |
inputs=[prompt, editing_choice[0], rand_seed],
|
418 |
outputs=[out_gen_1, out_gen_2, out_gen_3, out_gen_4, edited_1, edited_2, edited_3, edited_4],
|
419 |
fn=partial(optimize_all, xm, models, initial_noise, noise_start_t, diffusion, latent_model, device),
|
420 |
+
cache_examples=True,
|
421 |
)
|
422 |
|
423 |
|