Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
change image format from numpy array to Pillow
Browse files
app.py
CHANGED
|
@@ -154,20 +154,20 @@ with gr.Blocks() as demo:
|
|
| 154 |
iou_threshold_component.render()
|
| 155 |
with gr.Row():
|
| 156 |
input_image_component = gr.Image(
|
| 157 |
-
type='
|
| 158 |
label='Input'
|
| 159 |
)
|
| 160 |
yolo_v8_output_image_component = gr.Image(
|
| 161 |
-
type='
|
| 162 |
label='YOLOv8'
|
| 163 |
)
|
| 164 |
with gr.Row():
|
| 165 |
yolo_v9_output_image_component = gr.Image(
|
| 166 |
-
type='
|
| 167 |
label='YOLOv9'
|
| 168 |
)
|
| 169 |
yolo_v10_output_image_component = gr.Image(
|
| 170 |
-
type='
|
| 171 |
label='YOLOv10'
|
| 172 |
)
|
| 173 |
submit_button_component = gr.Button(
|
|
|
|
| 154 |
iou_threshold_component.render()
|
| 155 |
with gr.Row():
|
| 156 |
input_image_component = gr.Image(
|
| 157 |
+
type='pil',
|
| 158 |
label='Input'
|
| 159 |
)
|
| 160 |
yolo_v8_output_image_component = gr.Image(
|
| 161 |
+
type='pil',
|
| 162 |
label='YOLOv8'
|
| 163 |
)
|
| 164 |
with gr.Row():
|
| 165 |
yolo_v9_output_image_component = gr.Image(
|
| 166 |
+
type='pil',
|
| 167 |
label='YOLOv9'
|
| 168 |
)
|
| 169 |
yolo_v10_output_image_component = gr.Image(
|
| 170 |
+
type='pil',
|
| 171 |
label='YOLOv10'
|
| 172 |
)
|
| 173 |
submit_button_component = gr.Button(
|