Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,7 +88,7 @@ def infer(
|
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
-
|
| 92 |
if w>h:
|
| 93 |
r=w/h
|
| 94 |
h=minedge
|
|
@@ -131,6 +131,7 @@ _HEADER_ = '''
|
|
| 131 |
|
| 132 |
|
| 133 |
<p style="font-size: 1rem; margin-bottom: 1.5rem;">Paper: <a href='https://arxiv.org/abs/2601.20175' target='_blank'>TeleStyle: Content-Preserving Style Transfer in Images and Videos</a> | Codes: <a href='https://github.com/Tele-AI/TeleStyle/' target='_blank'>GitHub</a></p>
|
|
|
|
| 134 |
'''
|
| 135 |
|
| 136 |
with gr.Blocks() as demo:
|
|
|
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
+
minedge=minedge-minedge%16
|
| 92 |
if w>h:
|
| 93 |
r=w/h
|
| 94 |
h=minedge
|
|
|
|
| 131 |
|
| 132 |
|
| 133 |
<p style="font-size: 1rem; margin-bottom: 1.5rem;">Paper: <a href='https://arxiv.org/abs/2601.20175' target='_blank'>TeleStyle: Content-Preserving Style Transfer in Images and Videos</a> | Codes: <a href='https://github.com/Tele-AI/TeleStyle/' target='_blank'>GitHub</a></p>
|
| 134 |
+
<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. This is because ZeroGPU has a memory limit of 70GB, while all the examples are tested with 80GB H100 GPUs. </p>
|
| 135 |
'''
|
| 136 |
|
| 137 |
with gr.Blocks() as demo:
|