Spaces:
Running
Running
Improve values
Browse files
app.py
CHANGED
@@ -270,7 +270,7 @@ with gr.Blocks() as interface:
|
|
270 |
<li>To modify <b>anything else</b> on your image, I recommend to use <i>Instruct Pix2Pix</i>.</li>
|
271 |
</ul>
|
272 |
<br/>
|
273 |
-
🐌 Slow process... ~
|
274 |
<a href='https://huggingface.co/spaces/Fabrice-TIERCELIN/Uncrop?duplicate=true'><img src='https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14'></a>
|
275 |
<br/>
|
276 |
⚖️ You can use, modify and share the generated images but not for commercial uses.
|
@@ -305,7 +305,7 @@ with gr.Blocks() as interface:
|
|
305 |
negative_prompt = gr.Textbox(label = 'Negative prompt', placeholder = 'Describe what you do NOT want to see in the entire image', value = 'Border, frame, painting, scribbling, smear, noise, blur, watermark')
|
306 |
smooth_border = gr.Slider(minimum = 0, maximum = 1024, value = 20, step = 2, label = "Smooth border", info = "lower=preserve original, higher=seamless")
|
307 |
denoising_steps = gr.Slider(minimum = 0, maximum = 1000, value = 1000, step = 1, label = "Denoising", info = "lower=irrelevant result, higher=relevant result")
|
308 |
-
num_inference_steps = gr.Slider(minimum = 10, maximum =
|
309 |
guidance_scale = gr.Slider(minimum = 1, maximum = 13, value = 7, step = 0.1, label = "Classifier-Free Guidance Scale", info = "lower=image quality, higher=follow the prompt")
|
310 |
randomize_seed = gr.Checkbox(label = "\U0001F3B2 Randomize seed (not working, always checked)", value = True, info = "If checked, result is always different")
|
311 |
seed = gr.Slider(minimum = 0, maximum = max_64_bit_int, step = 1, randomize = True, label = "Seed (if not randomized)")
|
@@ -401,7 +401,7 @@ with gr.Blocks() as interface:
|
|
401 |
"Border, frame, painting, drawing, cartoon, scribbling, smear, noise, blur, watermark",
|
402 |
20,
|
403 |
1000,
|
404 |
-
|
405 |
7,
|
406 |
True,
|
407 |
42,
|
@@ -417,7 +417,7 @@ with gr.Blocks() as interface:
|
|
417 |
"Border, frame, painting, drawing, cartoon, scribbling, smear, noise, blur, watermark",
|
418 |
20,
|
419 |
1000,
|
420 |
-
|
421 |
7,
|
422 |
True,
|
423 |
42,
|
@@ -433,7 +433,7 @@ with gr.Blocks() as interface:
|
|
433 |
"Border, frame, painting, drawing, cartoon, scribbling, smear, noise, blur, watermark",
|
434 |
20,
|
435 |
1000,
|
436 |
-
|
437 |
7,
|
438 |
True,
|
439 |
42,
|
|
|
270 |
<li>To modify <b>anything else</b> on your image, I recommend to use <i>Instruct Pix2Pix</i>.</li>
|
271 |
</ul>
|
272 |
<br/>
|
273 |
+
🐌 Slow process... ~1 hour.<br>You can duplicate this space on a free account, it works on CPU.<br/>
|
274 |
<a href='https://huggingface.co/spaces/Fabrice-TIERCELIN/Uncrop?duplicate=true'><img src='https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14'></a>
|
275 |
<br/>
|
276 |
⚖️ You can use, modify and share the generated images but not for commercial uses.
|
|
|
305 |
negative_prompt = gr.Textbox(label = 'Negative prompt', placeholder = 'Describe what you do NOT want to see in the entire image', value = 'Border, frame, painting, scribbling, smear, noise, blur, watermark')
|
306 |
smooth_border = gr.Slider(minimum = 0, maximum = 1024, value = 20, step = 2, label = "Smooth border", info = "lower=preserve original, higher=seamless")
|
307 |
denoising_steps = gr.Slider(minimum = 0, maximum = 1000, value = 1000, step = 1, label = "Denoising", info = "lower=irrelevant result, higher=relevant result")
|
308 |
+
num_inference_steps = gr.Slider(minimum = 10, maximum = 100, value = 50, step = 1, label = "Number of inference steps", info = "lower=faster, higher=image quality")
|
309 |
guidance_scale = gr.Slider(minimum = 1, maximum = 13, value = 7, step = 0.1, label = "Classifier-Free Guidance Scale", info = "lower=image quality, higher=follow the prompt")
|
310 |
randomize_seed = gr.Checkbox(label = "\U0001F3B2 Randomize seed (not working, always checked)", value = True, info = "If checked, result is always different")
|
311 |
seed = gr.Slider(minimum = 0, maximum = max_64_bit_int, step = 1, randomize = True, label = "Seed (if not randomized)")
|
|
|
401 |
"Border, frame, painting, drawing, cartoon, scribbling, smear, noise, blur, watermark",
|
402 |
20,
|
403 |
1000,
|
404 |
+
50,
|
405 |
7,
|
406 |
True,
|
407 |
42,
|
|
|
417 |
"Border, frame, painting, drawing, cartoon, scribbling, smear, noise, blur, watermark",
|
418 |
20,
|
419 |
1000,
|
420 |
+
50,
|
421 |
7,
|
422 |
True,
|
423 |
42,
|
|
|
433 |
"Border, frame, painting, drawing, cartoon, scribbling, smear, noise, blur, watermark",
|
434 |
20,
|
435 |
1000,
|
436 |
+
50,
|
437 |
7,
|
438 |
True,
|
439 |
42,
|