Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,9 @@ def infer(prompt, init_image):
|
|
27 |
init_image,
|
28 |
guidance_scale=7.5,
|
29 |
num_inference_steps=50,
|
30 |
-
generator=generator
|
|
|
|
|
31 |
|
32 |
with torch.no_grad():
|
33 |
torch.cuda.empty_cache()
|
|
|
27 |
init_image,
|
28 |
guidance_scale=7.5,
|
29 |
num_inference_steps=50,
|
30 |
+
generator=generator,
|
31 |
+
text_embedding_optimization_steps: 100,
|
32 |
+
model_fine_tuning_optimization_steps: 500)
|
33 |
|
34 |
with torch.no_grad():
|
35 |
torch.cuda.empty_cache()
|