Spaces:
Runtime error
Runtime error
venkat-natchi
commited on
Commit
•
751f9c2
1
Parent(s):
46c977a
Update image_generator.py
Browse files- image_generator.py +2 -2
image_generator.py
CHANGED
@@ -164,7 +164,7 @@ def generate_image_from_embeddings(
|
|
164 |
loss_selection, additional_prompt):
|
165 |
height = 512
|
166 |
width = 512
|
167 |
-
num_inference_steps =
|
168 |
guidance_scale = 8
|
169 |
generator = torch.manual_seed(seed)
|
170 |
batch_size = 1
|
@@ -221,7 +221,7 @@ def generate_image_from_embeddings(
|
|
221 |
)
|
222 |
|
223 |
#### ADDITIONAL GUIDANCE ###
|
224 |
-
if i %
|
225 |
# Requires grad on the latents
|
226 |
latents = latents.detach().requires_grad_()
|
227 |
|
|
|
164 |
loss_selection, additional_prompt):
|
165 |
height = 512
|
166 |
width = 512
|
167 |
+
num_inference_steps = 20
|
168 |
guidance_scale = 8
|
169 |
generator = torch.manual_seed(seed)
|
170 |
batch_size = 1
|
|
|
221 |
)
|
222 |
|
223 |
#### ADDITIONAL GUIDANCE ###
|
224 |
+
if i % 3 == 0:
|
225 |
# Requires grad on the latents
|
226 |
latents = latents.detach().requires_grad_()
|
227 |
|