Robledo Gularte Gonçalves commited on
Commit
48b16bd
·
1 Parent(s): 6788817

update max image size

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,7 +18,7 @@ pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
18
  pipe = pipe.to(device)
19
 
20
  MAX_SEED = np.iinfo(np.int32).max
21
- MAX_IMAGE_SIZE = 1024
22
 
23
 
24
  # @spaces.GPU #[uncomment to use ZeroGPU]
@@ -105,7 +105,7 @@ with gr.Blocks(css=css) as demo:
105
  minimum=256,
106
  maximum=MAX_IMAGE_SIZE,
107
  step=32,
108
- value=1024, # Replace with defaults that work for your model
109
  )
110
 
111
  height = gr.Slider(
@@ -113,7 +113,7 @@ with gr.Blocks(css=css) as demo:
113
  minimum=256,
114
  maximum=MAX_IMAGE_SIZE,
115
  step=32,
116
- value=1024, # Replace with defaults that work for your model
117
  )
118
 
119
  with gr.Row():
 
18
  pipe = pipe.to(device)
19
 
20
  MAX_SEED = np.iinfo(np.int32).max
21
+ MAX_IMAGE_SIZE = 512
22
 
23
 
24
  # @spaces.GPU #[uncomment to use ZeroGPU]
 
105
  minimum=256,
106
  maximum=MAX_IMAGE_SIZE,
107
  step=32,
108
+ value=512, # Replace with defaults that work for your model
109
  )
110
 
111
  height = gr.Slider(
 
113
  minimum=256,
114
  maximum=MAX_IMAGE_SIZE,
115
  step=32,
116
+ value=512, # Replace with defaults that work for your model
117
  )
118
 
119
  with gr.Row():