Spaces:
Runtime error
Runtime error
dependency n token update for style
Browse files- image_generator.py +2 -0
- requirements.txt +1 -0
image_generator.py
CHANGED
@@ -298,6 +298,8 @@ def generate_image_per_loss(
|
|
298 |
prompt, style_embed, style_seed, style_embedding_key,
|
299 |
loss, additional_prompt
|
300 |
):
|
|
|
|
|
301 |
gen_out_loss_image = None
|
302 |
|
303 |
# Tokenize
|
|
|
298 |
prompt, style_embed, style_seed, style_embedding_key,
|
299 |
loss, additional_prompt
|
300 |
):
|
301 |
+
|
302 |
+
prompt = f"{prompt} <{style_embedding_key}>"
|
303 |
gen_out_loss_image = None
|
304 |
|
305 |
# Tokenize
|
requirements.txt
CHANGED
@@ -8,3 +8,4 @@ transformers
|
|
8 |
diffusers
|
9 |
ftfy
|
10 |
accelerate
|
|
|
|
8 |
diffusers
|
9 |
ftfy
|
10 |
accelerate
|
11 |
+
scipy
|