Update app.py
Browse files
app.py
CHANGED
@@ -180,8 +180,8 @@ class ControlNetDepthDesignModelMulti:
|
|
180 |
|
181 |
self.seed = 323*111
|
182 |
self.neg_prompt = "window, door, low resolution, banner, logo, watermark, text, deformed, blurry, out of focus, surreal, ugly, beginner"
|
183 |
-
self.control_items = ["
|
184 |
-
self.additional_quality_suffix = "
|
185 |
|
186 |
@spaces.GPU
|
187 |
def generate_design(self, empty_room_image: Image, prompt: str, guidance_scale: int = 10, num_steps: int = 50, strength: float =0.9, img_size: int = 640) -> Image:
|
@@ -259,7 +259,7 @@ def create_demo(model):
|
|
259 |
with gr.Row():
|
260 |
with gr.Column():
|
261 |
input_image = gr.Image(label="Input Image", type='pil', elem_id='img-display-input')
|
262 |
-
input_text = gr.Textbox(label='Prompt',
|
263 |
with gr.Accordion('Advanced options', open=False):
|
264 |
num_steps = gr.Slider(label='Steps',
|
265 |
minimum=1,
|
@@ -289,7 +289,7 @@ def create_demo(model):
|
|
289 |
step=0.1)
|
290 |
a_prompt = gr.Textbox(
|
291 |
label='Added Prompt',
|
292 |
-
value="
|
293 |
n_prompt = gr.Textbox(
|
294 |
label='Negative Prompt',
|
295 |
value=" low resolution, banner, logo, watermark, deformed, blurry, out of focus, surreal, ugly, beginner")
|
@@ -310,7 +310,7 @@ def create_demo(model):
|
|
310 |
return out_img
|
311 |
|
312 |
submit.click(on_submit, inputs=[input_image, input_text, num_steps, guidance_scale, seed, strength, a_prompt, n_prompt, img_size], outputs=design_image)
|
313 |
-
examples = gr.Examples(examples=[["imgs/bedroom_1.jpg"
|
314 |
inputs=[input_image, input_text], cache_examples=False)
|
315 |
|
316 |
|
|
|
180 |
|
181 |
self.seed = 323*111
|
182 |
self.neg_prompt = "window, door, low resolution, banner, logo, watermark, text, deformed, blurry, out of focus, surreal, ugly, beginner"
|
183 |
+
self.control_items = ["ugly", "ugly"]
|
184 |
+
self.additional_quality_suffix = "4K, high resolution, photorealistic"
|
185 |
|
186 |
@spaces.GPU
|
187 |
def generate_design(self, empty_room_image: Image, prompt: str, guidance_scale: int = 10, num_steps: int = 50, strength: float =0.9, img_size: int = 640) -> Image:
|
|
|
259 |
with gr.Row():
|
260 |
with gr.Column():
|
261 |
input_image = gr.Image(label="Input Image", type='pil', elem_id='img-display-input')
|
262 |
+
input_text = gr.Textbox(label='Prompt', value="high resolution, clay render style , grayscale", lines=2)
|
263 |
with gr.Accordion('Advanced options', open=False):
|
264 |
num_steps = gr.Slider(label='Steps',
|
265 |
minimum=1,
|
|
|
289 |
step=0.1)
|
290 |
a_prompt = gr.Textbox(
|
291 |
label='Added Prompt',
|
292 |
+
value="8K, high resolution, photorealistic")
|
293 |
n_prompt = gr.Textbox(
|
294 |
label='Negative Prompt',
|
295 |
value=" low resolution, banner, logo, watermark, deformed, blurry, out of focus, surreal, ugly, beginner")
|
|
|
310 |
return out_img
|
311 |
|
312 |
submit.click(on_submit, inputs=[input_image, input_text, num_steps, guidance_scale, seed, strength, a_prompt, n_prompt, img_size], outputs=design_image)
|
313 |
+
examples = gr.Examples(examples=[["imgs/bedroom_1.jpg"]],
|
314 |
inputs=[input_image, input_text], cache_examples=False)
|
315 |
|
316 |
|