Spaces:
Runtime error
Runtime error
modify default image
Browse files- app.py +4 -2
- data/COCO_image.jpg +0 -0
- data/Marvelous_Maisel.jpg +0 -0
app.py
CHANGED
@@ -166,10 +166,12 @@ with demo:
|
|
166 |
gr.Markdown('''
|
167 |
<h2>Demo</h2>
|
168 |
|
169 |
-
This section uses an image stylization example to demostrate the speedup of the above code when using quantization in BigDL-Nano (about 2~3x inference time speedup).
|
|
|
|
|
170 |
''')
|
171 |
with gr.Row().style(equal_height=False):
|
172 |
-
input_img = gr.Image(label="input image", value="data/
|
173 |
with gr.Column():
|
174 |
ori_but = gr.Button("Standard PyTorch Lightning")
|
175 |
nano_but = gr.Button("BigDL-Nano")
|
|
|
166 |
gr.Markdown('''
|
167 |
<h2>Demo</h2>
|
168 |
|
169 |
+
This section uses an image stylization example to demostrate the speedup of the above code when using quantization in BigDL-Nano (about 2~3x inference time speedup).
|
170 |
+
The demo is adapted from the original [FSPBT-Image-Translation code](https://github.com/rnwzd/FSPBT-Image-Translation),
|
171 |
+
and the default image is downloading from [COCO Dataset](https://cocodataset.org/#home)
|
172 |
''')
|
173 |
with gr.Row().style(equal_height=False):
|
174 |
+
input_img = gr.Image(label="input image", value="data/COCO_image.jpg", source="upload")
|
175 |
with gr.Column():
|
176 |
ori_but = gr.Button("Standard PyTorch Lightning")
|
177 |
nano_but = gr.Button("BigDL-Nano")
|
data/COCO_image.jpg
ADDED
data/Marvelous_Maisel.jpg
DELETED
Binary file (79.4 kB)
|
|