1inkusFace commited on
Commit
2ca60df
·
verified ·
1 Parent(s): 6b49eb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -106,7 +106,7 @@ def generate_images_30(prompt, neg_prompt_1, neg_prompt_2, neg_prompt_3, width,
106
  negative_prompt=neg_prompt_1, negative_prompt_2=neg_prompt_2, negative_prompt_3=neg_prompt_3,
107
  guidance_scale=guidance, num_inference_steps=steps,
108
  width=width, height=height, generator=generator,
109
- max_sequence_length=512
110
  ).images[0]
111
  print('-- got image --')
112
  with torch.no_grad():
@@ -126,7 +126,7 @@ def generate_images_60(prompt, neg_prompt_1, neg_prompt_2, neg_prompt_3, width,
126
  negative_prompt=neg_prompt_1, negative_prompt_2=neg_prompt_2, negative_prompt_3=neg_prompt_3,
127
  guidance_scale=guidance, num_inference_steps=steps,
128
  width=width, height=height, generator=generator,
129
- max_sequence_length=512
130
  ).images[0]
131
  print('-- got image --')
132
  with torch.no_grad():
@@ -146,7 +146,7 @@ def generate_images_100(prompt, neg_prompt_1, neg_prompt_2, neg_prompt_3, width,
146
  negative_prompt=neg_prompt_1, negative_prompt_2=neg_prompt_2, negative_prompt_3=neg_prompt_3,
147
  guidance_scale=guidance, num_inference_steps=steps,
148
  width=width, height=height, generator=generator,
149
- max_sequence_length=512
150
  ).images[0]
151
  print('-- got image --')
152
  with torch.no_grad():
 
106
  negative_prompt=neg_prompt_1, negative_prompt_2=neg_prompt_2, negative_prompt_3=neg_prompt_3,
107
  guidance_scale=guidance, num_inference_steps=steps,
108
  width=width, height=height, generator=generator,
109
+ max_sequence_length=384
110
  ).images[0]
111
  print('-- got image --')
112
  with torch.no_grad():
 
126
  negative_prompt=neg_prompt_1, negative_prompt_2=neg_prompt_2, negative_prompt_3=neg_prompt_3,
127
  guidance_scale=guidance, num_inference_steps=steps,
128
  width=width, height=height, generator=generator,
129
+ max_sequence_length=384
130
  ).images[0]
131
  print('-- got image --')
132
  with torch.no_grad():
 
146
  negative_prompt=neg_prompt_1, negative_prompt_2=neg_prompt_2, negative_prompt_3=neg_prompt_3,
147
  guidance_scale=guidance, num_inference_steps=steps,
148
  width=width, height=height, generator=generator,
149
+ max_sequence_length=384
150
  ).images[0]
151
  print('-- got image --')
152
  with torch.no_grad():