clementchadebec commited on
Commit
4f37994
1 Parent(s): 1abaadd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -108,6 +108,8 @@ with gr.Blocks(css=css) as demo:
108
  # ⚡ Flux.1-dev Upscaler ControlNet ⚡
109
  This is an interactive demo of [Flux.1-dev Upscaler ControlNet](https://huggingface.co/jasperai/Flux.1-dev-Controlnet-Upscaler taking as input a low resolution image to generate a high resolution image.
110
  Currently running on {power_device}.
 
 
111
  """
112
  )
113
 
@@ -159,6 +161,8 @@ with gr.Blocks(css=css) as demo:
159
  "examples/image_3.jpg",
160
  "examples/image_4.jpg",
161
  "examples/image_5.jpg",
 
 
162
  ],
163
  inputs=input_im,
164
  )
 
108
  # ⚡ Flux.1-dev Upscaler ControlNet ⚡
109
  This is an interactive demo of [Flux.1-dev Upscaler ControlNet](https://huggingface.co/jasperai/Flux.1-dev-Controlnet-Upscaler taking as input a low resolution image to generate a high resolution image.
110
  Currently running on {power_device}.
111
+
112
+ *Note*: Even though the model can hamdle higher resolution images, due to GPU memory constraints, this demo was limited to a generated output not exceeding a pixel budget of 1024x1024. If the the requested size exceeds that limited, the input will be first resized keeping the aspect ratio such that the output of the controlNet model does not exceed the allocated pixel budget. The output is then resized to the targeted shape using a simple resizing. This may explain some artifacts for high resolution input. To adress this, run the demo locally or consider implementing a tiling strategy. Happy upscaling!
113
  """
114
  )
115
 
 
161
  "examples/image_3.jpg",
162
  "examples/image_4.jpg",
163
  "examples/image_5.jpg",
164
+ "examples/image_6.jpg",
165
+ "examples/image_7.jpg"
166
  ],
167
  inputs=input_im,
168
  )