Spaces:
Runtime error
Runtime error
Commit
·
f8077ad
1
Parent(s):
d0fa592
setup project and example
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +68 -0
- app.py +33 -0
- images/test_image1.jpg +3 -0
- images/test_image101.jpg +3 -0
- images/test_image103.jpg +3 -0
- images/test_image105.jpg +3 -0
- images/test_image107.jpg +3 -0
- images/test_image109.jpg +3 -0
- images/test_image11.jpg +3 -0
- images/test_image111.jpg +3 -0
- images/test_image113.jpg +3 -0
- images/test_image115.jpg +3 -0
- images/test_image117.jpg +3 -0
- images/test_image119.jpg +3 -0
- images/test_image121.jpg +3 -0
- images/test_image123.jpg +3 -0
- images/test_image125.jpg +3 -0
- images/test_image127.jpg +3 -0
- images/test_image129.jpg +3 -0
- images/test_image13.jpg +3 -0
- images/test_image131.jpg +3 -0
- images/test_image133.jpg +3 -0
- images/test_image135.jpg +3 -0
- images/test_image15.jpg +3 -0
- images/test_image17.jpg +3 -0
- images/test_image19.jpg +3 -0
- images/test_image21.jpg +3 -0
- images/test_image23.jpg +3 -0
- images/test_image25.jpg +3 -0
- images/test_image27.jpg +3 -0
- images/test_image29.jpg +3 -0
- images/test_image3.jpg +3 -0
- images/test_image31.jpg +3 -0
- images/test_image33.jpg +3 -0
- images/test_image35.jpg +3 -0
- images/test_image37.jpg +3 -0
- images/test_image39.jpg +3 -0
- images/test_image41.jpg +3 -0
- images/test_image43.jpg +3 -0
- images/test_image45.jpg +3 -0
- images/test_image47.jpg +3 -0
- images/test_image49.jpg +3 -0
- images/test_image5.jpg +3 -0
- images/test_image51.jpg +3 -0
- images/test_image53.jpg +3 -0
- images/test_image55.jpg +3 -0
- images/test_image57.jpg +3 -0
- images/test_image59.jpg +3 -0
- images/test_image61.jpg +3 -0
- images/test_image63.jpg +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,71 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 35 |
volleyball_final.weights filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 35 |
volleyball_final.weights filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
images/test_image45.jpg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
images/test_image69.jpg filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
images/test_image87.jpg filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
images/test_image89.jpg filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
images/test_image1.jpg filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
images/test_image9.jpg filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
images/test_image37.jpg filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
images/test_image31.jpg filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
images/test_image113.jpg filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
images/test_image127.jpg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
images/test_image15.jpg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
images/test_image81.jpg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
images/test_image129.jpg filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
images/test_image79.jpg filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
images/test_image135.jpg filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
images/test_image61.jpg filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
images/test_image131.jpg filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
images/test_image21.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
images/test_image77.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
images/test_image115.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
images/test_image55.jpg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
images/test_image67.jpg filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
images/test_image73.jpg filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
images/test_image99.jpg filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
images/test_image3.jpg filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
images/test_image33.jpg filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
images/test_image35.jpg filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
images/test_image133.jpg filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
images/test_image29.jpg filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
images/test_image51.jpg filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
images/test_image85.jpg filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
images/test_image111.jpg filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
images/test_image101.jpg filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
images/test_image123.jpg filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
images/test_image125.jpg filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
images/test_image11.jpg filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
images/test_image83.jpg filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
images/test_image97.jpg filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
images/test_image119.jpg filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
images/test_image71.jpg filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
images/test_image75.jpg filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
images/test_image93.jpg filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
images/test_image65.jpg filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
images/test_image91.jpg filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
images/test_image23.jpg filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
images/test_image39.jpg filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
images/test_image47.jpg filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
images/test_image109.jpg filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
images/test_image17.jpg filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
images/test_image53.jpg filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
images/test_image105.jpg filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
images/test_image43.jpg filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
images/test_image57.jpg filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
images/test_image63.jpg filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
images/test_image107.jpg filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
images/test_image117.jpg filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
images/test_image5.jpg filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
images/test_image13.jpg filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
images/test_image27.jpg filter=lfs diff=lfs merge=lfs -text
|
| 95 |
+
images/test_image25.jpg filter=lfs diff=lfs merge=lfs -text
|
| 96 |
+
images/test_image41.jpg filter=lfs diff=lfs merge=lfs -text
|
| 97 |
+
images/test_image49.jpg filter=lfs diff=lfs merge=lfs -text
|
| 98 |
+
images/test_image95.jpg filter=lfs diff=lfs merge=lfs -text
|
| 99 |
+
images/test_image103.jpg filter=lfs diff=lfs merge=lfs -text
|
| 100 |
+
images/test_image121.jpg filter=lfs diff=lfs merge=lfs -text
|
| 101 |
+
images/test_image7.jpg filter=lfs diff=lfs merge=lfs -text
|
| 102 |
+
images/test_image19.jpg filter=lfs diff=lfs merge=lfs -text
|
| 103 |
+
images/test_image59.jpg filter=lfs diff=lfs merge=lfs -text
|
app.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from PIL import Image
|
| 3 |
+
|
| 4 |
+
# model load
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
def predict(inp):
|
| 8 |
+
inp = Image.fromarray(inp.astype('uint8'), 'RGB')
|
| 9 |
+
|
| 10 |
+
# preprocess input
|
| 11 |
+
|
| 12 |
+
# model predict
|
| 13 |
+
|
| 14 |
+
# convert to pil image or np array
|
| 15 |
+
|
| 16 |
+
# return the images
|
| 17 |
+
return inp # if you use many outputs `return a, b, ...`
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
gr.Interface(
|
| 21 |
+
fn=predict,
|
| 22 |
+
inputs=[
|
| 23 |
+
gr.inputs.Image() # you can have many inputs
|
| 24 |
+
],
|
| 25 |
+
outputs=[
|
| 26 |
+
gr.inputs.Image() # you can have many outputs
|
| 27 |
+
],
|
| 28 |
+
title="Titolo",
|
| 29 |
+
description="Description of the app",
|
| 30 |
+
examples=[
|
| 31 |
+
"images/test_image1.jpg" # if you have many input use a list ["gabbiano.jpg", "other input", ...]
|
| 32 |
+
]
|
| 33 |
+
).launch()
|
images/test_image1.jpg
ADDED
|
Git LFS Details
|
images/test_image101.jpg
ADDED
|
Git LFS Details
|
images/test_image103.jpg
ADDED
|
Git LFS Details
|
images/test_image105.jpg
ADDED
|
Git LFS Details
|
images/test_image107.jpg
ADDED
|
Git LFS Details
|
images/test_image109.jpg
ADDED
|
Git LFS Details
|
images/test_image11.jpg
ADDED
|
Git LFS Details
|
images/test_image111.jpg
ADDED
|
Git LFS Details
|
images/test_image113.jpg
ADDED
|
Git LFS Details
|
images/test_image115.jpg
ADDED
|
Git LFS Details
|
images/test_image117.jpg
ADDED
|
Git LFS Details
|
images/test_image119.jpg
ADDED
|
Git LFS Details
|
images/test_image121.jpg
ADDED
|
Git LFS Details
|
images/test_image123.jpg
ADDED
|
Git LFS Details
|
images/test_image125.jpg
ADDED
|
Git LFS Details
|
images/test_image127.jpg
ADDED
|
Git LFS Details
|
images/test_image129.jpg
ADDED
|
Git LFS Details
|
images/test_image13.jpg
ADDED
|
Git LFS Details
|
images/test_image131.jpg
ADDED
|
Git LFS Details
|
images/test_image133.jpg
ADDED
|
Git LFS Details
|
images/test_image135.jpg
ADDED
|
Git LFS Details
|
images/test_image15.jpg
ADDED
|
Git LFS Details
|
images/test_image17.jpg
ADDED
|
Git LFS Details
|
images/test_image19.jpg
ADDED
|
Git LFS Details
|
images/test_image21.jpg
ADDED
|
Git LFS Details
|
images/test_image23.jpg
ADDED
|
Git LFS Details
|
images/test_image25.jpg
ADDED
|
Git LFS Details
|
images/test_image27.jpg
ADDED
|
Git LFS Details
|
images/test_image29.jpg
ADDED
|
Git LFS Details
|
images/test_image3.jpg
ADDED
|
Git LFS Details
|
images/test_image31.jpg
ADDED
|
Git LFS Details
|
images/test_image33.jpg
ADDED
|
Git LFS Details
|
images/test_image35.jpg
ADDED
|
Git LFS Details
|
images/test_image37.jpg
ADDED
|
Git LFS Details
|
images/test_image39.jpg
ADDED
|
Git LFS Details
|
images/test_image41.jpg
ADDED
|
Git LFS Details
|
images/test_image43.jpg
ADDED
|
Git LFS Details
|
images/test_image45.jpg
ADDED
|
Git LFS Details
|
images/test_image47.jpg
ADDED
|
Git LFS Details
|
images/test_image49.jpg
ADDED
|
Git LFS Details
|
images/test_image5.jpg
ADDED
|
Git LFS Details
|
images/test_image51.jpg
ADDED
|
Git LFS Details
|
images/test_image53.jpg
ADDED
|
Git LFS Details
|
images/test_image55.jpg
ADDED
|
Git LFS Details
|
images/test_image57.jpg
ADDED
|
Git LFS Details
|
images/test_image59.jpg
ADDED
|
Git LFS Details
|
images/test_image61.jpg
ADDED
|
Git LFS Details
|
images/test_image63.jpg
ADDED
|
Git LFS Details
|