Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -296,8 +296,8 @@ _HEADER_ = '''
|
|
| 296 |
</div>
|
| 297 |
|
| 298 |
|
| 299 |
-
<p style="font-size: 1rem; margin-bottom: 1.5rem;">Paper: <a href='https://
|
| 300 |
-
<p style="font-size: 1rem; margin-bottom: 1.5rem;">Update: prompt enhancer provided, and the model supports content ref/style ref only input, which means you could use the model as an image editing model and style transfer model at the same time. So you don't have to provide a style reference now, the model also accepts prompt for style transfer, which makes the model more flexible. </p>
|
| 301 |
|
| 302 |
<p style="font-size: 1rem; margin-bottom: 1.5rem;">If you encounter an Error with this demo, the most possible reason is ZeroGPU out-of-memory and the solution is to decrease the Min Edge of the generated image from 1024 to a lower value. </p>
|
| 303 |
'''
|
|
@@ -305,9 +305,9 @@ _HEADER_ = '''
|
|
| 305 |
with gr.Blocks() as demo:
|
| 306 |
|
| 307 |
with gr.Column(elem_id="col-container"):
|
| 308 |
-
|
| 309 |
gr.Markdown(_HEADER_)
|
| 310 |
-
gr.Markdown("This is a demo of
|
| 311 |
with gr.Row():
|
| 312 |
with gr.Column():
|
| 313 |
with gr.Row():
|
|
@@ -389,7 +389,7 @@ with gr.Blocks() as demo:
|
|
| 389 |
['./qwenstyleref/content_6.jpg','./qwenstyleref/style_6.png',default_prompt,123,False,1.0,4,1024,[]],
|
| 390 |
['./qwenstyleref/style_6.png','./qwenstyleref/content_6.jpg','',123,False,1.0,4,1024,["infer with style prompt"]],
|
| 391 |
['./qwenstyleref/content_3.png','./qwenstyleref/style_3.png',default_prompt,123,False,1.0,4,1024,[]],
|
| 392 |
-
['./qwenstyleref/content_4.png','./qwenstyleref/
|
| 393 |
['./qwenstyleref/content_9.jpg','./qwenstyleref/style_9.png',default_prompt,123,False,1.0,4,1024,[]],
|
| 394 |
['./qwenstyleref/content_11.png','./qwenstyleref/style_11.jpg',default_prompt,123,False,1.0,4,832,[]],
|
| 395 |
['./qwenstyleref/content_7.png','./qwenstyleref/content_4.png',default_prompt,123,False,1.0,4,1024,[]],
|
|
|
|
| 296 |
</div>
|
| 297 |
|
| 298 |
|
| 299 |
+
<p style="font-size: 1rem; margin-bottom: 1.5rem;">Paper: <a href='https://witcherofresearch.github.io/TeleStyleV2' target='_blank'>TeleStyle V2: Beyond Content-Preserving Style Transfer with Self-Distillation and Distribution-Matching-Distillation</a> | Codes: <a href='https://github.com/Tele-AI/TeleStyleV2' target='_blank'>GitHub</a></p>
|
| 300 |
+
<p style="font-size: 1rem; margin-bottom: 1.5rem;">Update: prompt enhancer provided, and the model supports content ref/style ref only input, which means you could use the model as an image editing model and style transfer model at the same time. So you don't have to provide a style reference now, the model also accepts prompt for style transfer, which makes the model more flexible. If you choose infer with content/style prompt, do not forget to clean the prompt box when you run new inference.</p>
|
| 301 |
|
| 302 |
<p style="font-size: 1rem; margin-bottom: 1.5rem;">If you encounter an Error with this demo, the most possible reason is ZeroGPU out-of-memory and the solution is to decrease the Min Edge of the generated image from 1024 to a lower value. </p>
|
| 303 |
'''
|
|
|
|
| 305 |
with gr.Blocks() as demo:
|
| 306 |
|
| 307 |
with gr.Column(elem_id="col-container"):
|
| 308 |
+
|
| 309 |
gr.Markdown(_HEADER_)
|
| 310 |
+
gr.Markdown("This is a demo of TeleStyle V2.")
|
| 311 |
with gr.Row():
|
| 312 |
with gr.Column():
|
| 313 |
with gr.Row():
|
|
|
|
| 389 |
['./qwenstyleref/content_6.jpg','./qwenstyleref/style_6.png',default_prompt,123,False,1.0,4,1024,[]],
|
| 390 |
['./qwenstyleref/style_6.png','./qwenstyleref/content_6.jpg','',123,False,1.0,4,1024,["infer with style prompt"]],
|
| 391 |
['./qwenstyleref/content_3.png','./qwenstyleref/style_3.png',default_prompt,123,False,1.0,4,1024,[]],
|
| 392 |
+
['./qwenstyleref/content_4.png','./qwenstyleref/content_7.png',default_prompt,123,False,1.0,4,1024,[]],
|
| 393 |
['./qwenstyleref/content_9.jpg','./qwenstyleref/style_9.png',default_prompt,123,False,1.0,4,1024,[]],
|
| 394 |
['./qwenstyleref/content_11.png','./qwenstyleref/style_11.jpg',default_prompt,123,False,1.0,4,832,[]],
|
| 395 |
['./qwenstyleref/content_7.png','./qwenstyleref/content_4.png',default_prompt,123,False,1.0,4,1024,[]],
|