Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -31,7 +31,7 @@ pipeline.load_lora_weights(lora_weights_path)
31
  pipeline = pipeline.to(device)
32
 
33
  MAX_SEED = np.iinfo(np.int32).max
34
- MAX_IMAGE_SIZE = 2048 # Reduce max image size to fit within memory constraints
35
 
36
  @spaces.GPU
37
  def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps):
@@ -165,7 +165,7 @@ with gr.Blocks(css=css) as demo:
165
  width = gr.Slider(
166
  label="Width",
167
  minimum=256,
168
- maximum=MAX_IMAGE_SIZE,
169
  step=32,
170
  value=512,
171
  )
@@ -173,7 +173,7 @@ with gr.Blocks(css=css) as demo:
173
  height = gr.Slider(
174
  label="Height",
175
  minimum=256,
176
- maximum=MAX_IMAGE_SIZE,
177
  step=32,
178
  value=512,
179
  )
 
31
  pipeline = pipeline.to(device)
32
 
33
  MAX_SEED = np.iinfo(np.int32).max
34
+ MAX_IMAGE_SIZE = 1024 # Reduce max image size to fit within memory constraints
35
 
36
  @spaces.GPU
37
  def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps):
 
165
  width = gr.Slider(
166
  label="Width",
167
  minimum=256,
168
+ maximum=512,
169
  step=32,
170
  value=512,
171
  )
 
173
  height = gr.Slider(
174
  label="Height",
175
  minimum=256,
176
+ maximum=2048,
177
  step=32,
178
  value=512,
179
  )