aiknowyou-nic commited on
Commit
f8077ad
·
1 Parent(s): d0fa592

setup project and example

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +68 -0
  2. app.py +33 -0
  3. images/test_image1.jpg +3 -0
  4. images/test_image101.jpg +3 -0
  5. images/test_image103.jpg +3 -0
  6. images/test_image105.jpg +3 -0
  7. images/test_image107.jpg +3 -0
  8. images/test_image109.jpg +3 -0
  9. images/test_image11.jpg +3 -0
  10. images/test_image111.jpg +3 -0
  11. images/test_image113.jpg +3 -0
  12. images/test_image115.jpg +3 -0
  13. images/test_image117.jpg +3 -0
  14. images/test_image119.jpg +3 -0
  15. images/test_image121.jpg +3 -0
  16. images/test_image123.jpg +3 -0
  17. images/test_image125.jpg +3 -0
  18. images/test_image127.jpg +3 -0
  19. images/test_image129.jpg +3 -0
  20. images/test_image13.jpg +3 -0
  21. images/test_image131.jpg +3 -0
  22. images/test_image133.jpg +3 -0
  23. images/test_image135.jpg +3 -0
  24. images/test_image15.jpg +3 -0
  25. images/test_image17.jpg +3 -0
  26. images/test_image19.jpg +3 -0
  27. images/test_image21.jpg +3 -0
  28. images/test_image23.jpg +3 -0
  29. images/test_image25.jpg +3 -0
  30. images/test_image27.jpg +3 -0
  31. images/test_image29.jpg +3 -0
  32. images/test_image3.jpg +3 -0
  33. images/test_image31.jpg +3 -0
  34. images/test_image33.jpg +3 -0
  35. images/test_image35.jpg +3 -0
  36. images/test_image37.jpg +3 -0
  37. images/test_image39.jpg +3 -0
  38. images/test_image41.jpg +3 -0
  39. images/test_image43.jpg +3 -0
  40. images/test_image45.jpg +3 -0
  41. images/test_image47.jpg +3 -0
  42. images/test_image49.jpg +3 -0
  43. images/test_image5.jpg +3 -0
  44. images/test_image51.jpg +3 -0
  45. images/test_image53.jpg +3 -0
  46. images/test_image55.jpg +3 -0
  47. images/test_image57.jpg +3 -0
  48. images/test_image59.jpg +3 -0
  49. images/test_image61.jpg +3 -0
  50. 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

  • SHA256: d19113c616837ca038c3dd5dc404ea52e09cd48d7a63b70e5c89402e594bb660
  • Pointer size: 130 Bytes
  • Size of remote file: 36.5 kB
images/test_image101.jpg ADDED

Git LFS Details

  • SHA256: 65ca04748f7585898bc4134361f7b207d298da75fd2a3875a992b20ef7f8053e
  • Pointer size: 130 Bytes
  • Size of remote file: 36 kB
images/test_image103.jpg ADDED

Git LFS Details

  • SHA256: 437af15e9f5cd0bbf9b5e971e6747528877762aaf4b83bb89c8aa9095b48903c
  • Pointer size: 130 Bytes
  • Size of remote file: 36.8 kB
images/test_image105.jpg ADDED

Git LFS Details

  • SHA256: cdda9362f21f4653092ef6ed1b12baf8409c380796e97e4610cf1d4eadf17ef5
  • Pointer size: 130 Bytes
  • Size of remote file: 36.9 kB
images/test_image107.jpg ADDED

Git LFS Details

  • SHA256: 2f25115434949e00a9d397102ba08dc6dab23a34cf67dd5a1886c7b75f213819
  • Pointer size: 130 Bytes
  • Size of remote file: 37 kB
images/test_image109.jpg ADDED

Git LFS Details

  • SHA256: 7d18fb9bb306217ae77d62be1c9287f7a6cafb07bd4c3580f090e45196d4d3d2
  • Pointer size: 130 Bytes
  • Size of remote file: 37.1 kB
images/test_image11.jpg ADDED

Git LFS Details

  • SHA256: 6e98931bd0dd8f109cba9415c603c179ed28aeaf037f2136572d19c43f6e69cb
  • Pointer size: 130 Bytes
  • Size of remote file: 32.8 kB
images/test_image111.jpg ADDED

Git LFS Details

  • SHA256: 0f3c3b616007737ee1501e6d6e56a0d9a00ba07944b6fbeff86378094111926f
  • Pointer size: 130 Bytes
  • Size of remote file: 37 kB
images/test_image113.jpg ADDED

Git LFS Details

  • SHA256: b72bd62e3b4d8d7d61e0aa45e1695cc2cb34e94a111e966455384887e9576eb4
  • Pointer size: 130 Bytes
  • Size of remote file: 36.8 kB
images/test_image115.jpg ADDED

Git LFS Details

  • SHA256: b7ab26da862a79f97dc501e4b7277351af1fc28f6566ac0899faa5b7e1916865
  • Pointer size: 130 Bytes
  • Size of remote file: 34.9 kB
images/test_image117.jpg ADDED

Git LFS Details

  • SHA256: 3c9a1cc9cfec71aa981cd15ff7bf234e690c05a972a9383cef6a17ccc352af39
  • Pointer size: 130 Bytes
  • Size of remote file: 35.9 kB
images/test_image119.jpg ADDED

Git LFS Details

  • SHA256: 2c284bb4363907e85e7ff0834ba038356a976d093eed906f33b57d99b4aadfe3
  • Pointer size: 130 Bytes
  • Size of remote file: 37.8 kB
images/test_image121.jpg ADDED

Git LFS Details

  • SHA256: 87629b1b672ad88f222e22c9a9c0e4b06eef5c11cc6d91ecd46e2ad9d2c39f55
  • Pointer size: 130 Bytes
  • Size of remote file: 35.8 kB
images/test_image123.jpg ADDED

Git LFS Details

  • SHA256: da5bf36cd99873cb62ab80a557d7912fc6c2c290bbf93cdd4c7522f7a94106ec
  • Pointer size: 130 Bytes
  • Size of remote file: 35.4 kB
images/test_image125.jpg ADDED

Git LFS Details

  • SHA256: 7e6f6ce7f191f0426d2e3d369663c027e734b96a9b7f28678fb8b3f8fa479c10
  • Pointer size: 130 Bytes
  • Size of remote file: 37.4 kB
images/test_image127.jpg ADDED

Git LFS Details

  • SHA256: 6543b9729360d3eac5d9091a1a54f52c17c285f632ec71d9d3ba32deb53fb521
  • Pointer size: 130 Bytes
  • Size of remote file: 37.7 kB
images/test_image129.jpg ADDED

Git LFS Details

  • SHA256: 09f4aafd4b496ed607f9fded432d258deef5a3f36ddafc19d05a7cc8a1606f36
  • Pointer size: 130 Bytes
  • Size of remote file: 34.6 kB
images/test_image13.jpg ADDED

Git LFS Details

  • SHA256: 3a41da0d86198ec883772acf212d9fe4beb96d77242f75323db5d57889601866
  • Pointer size: 130 Bytes
  • Size of remote file: 35.4 kB
images/test_image131.jpg ADDED

Git LFS Details

  • SHA256: 9589cc019c88fa4e31a5b40981ee63953d8f37e23deb52c915c9d3ed277c37b4
  • Pointer size: 130 Bytes
  • Size of remote file: 35.8 kB
images/test_image133.jpg ADDED

Git LFS Details

  • SHA256: 56ebc8a1f70f33a599bbad8ef27f470b0a6d63e14e0d54fd95644b61e254b2b4
  • Pointer size: 130 Bytes
  • Size of remote file: 37.1 kB
images/test_image135.jpg ADDED

Git LFS Details

  • SHA256: 9586a784d281cc6493eb32c02a5b433271b5feb98ef81328420edd889c746882
  • Pointer size: 130 Bytes
  • Size of remote file: 38 kB
images/test_image15.jpg ADDED

Git LFS Details

  • SHA256: 14c6b8ba6194022e72d24f24575fec1577b6f12e6181a6aa73773a5d7c9bc1cd
  • Pointer size: 130 Bytes
  • Size of remote file: 36.3 kB
images/test_image17.jpg ADDED

Git LFS Details

  • SHA256: e9a19769162b572f015d2bad1aef0a706bce2b7040dfdc491fcdd7b8b39a889d
  • Pointer size: 130 Bytes
  • Size of remote file: 35.9 kB
images/test_image19.jpg ADDED

Git LFS Details

  • SHA256: 7649d203fe5512cacc7231a99bacb0cbba9edc32b7a4cea27d86d0f20b12ad81
  • Pointer size: 130 Bytes
  • Size of remote file: 32.1 kB
images/test_image21.jpg ADDED

Git LFS Details

  • SHA256: 99b6a3a188da9e6730c047bb23fa371808677da3a1f5badf943ea7e99fc280dc
  • Pointer size: 130 Bytes
  • Size of remote file: 34.6 kB
images/test_image23.jpg ADDED

Git LFS Details

  • SHA256: 346a2ec698e7efe9d552a5dfce0a075e320d5b7b7efece1af88cc6c74286f95d
  • Pointer size: 130 Bytes
  • Size of remote file: 34.9 kB
images/test_image25.jpg ADDED

Git LFS Details

  • SHA256: f31161f15d5969654f4e09c00c12f328d46c58a99411686844dcba618d9ebc22
  • Pointer size: 130 Bytes
  • Size of remote file: 35.4 kB
images/test_image27.jpg ADDED

Git LFS Details

  • SHA256: 7f6c569b0af50ff5003ac922065cdb5004b0b323ba1cab8e300d5a87fa29c227
  • Pointer size: 130 Bytes
  • Size of remote file: 35.7 kB
images/test_image29.jpg ADDED

Git LFS Details

  • SHA256: a6756efbf9572b705c6b4a59ee14fbc216faa319121f99526f8abe70a3858563
  • Pointer size: 130 Bytes
  • Size of remote file: 35.6 kB
images/test_image3.jpg ADDED

Git LFS Details

  • SHA256: 1638dd021f433824a7b07844387eda0ab0705c172eb3e708a8a471e0d962c4f5
  • Pointer size: 130 Bytes
  • Size of remote file: 36.5 kB
images/test_image31.jpg ADDED

Git LFS Details

  • SHA256: 2e6ea5fd5d261b4aaa2dd5b2334b90ca4d5a1f5bf2ba5a5a51ed1cea3169a589
  • Pointer size: 130 Bytes
  • Size of remote file: 35.4 kB
images/test_image33.jpg ADDED

Git LFS Details

  • SHA256: df54aeaa6d03a09aa75bb9f8790e2a32f7aba0f3c387b8ef9ae253a00c50c654
  • Pointer size: 130 Bytes
  • Size of remote file: 35.3 kB
images/test_image35.jpg ADDED

Git LFS Details

  • SHA256: 533bf99e1ddad9e8942dd38a7a6c80593b81c31c55278ee500eeb9d6b1e8a9ad
  • Pointer size: 130 Bytes
  • Size of remote file: 35.1 kB
images/test_image37.jpg ADDED

Git LFS Details

  • SHA256: 5fa123326159d17a10176573c7647e1b20498fc47b84c5607c82663f30f1519f
  • Pointer size: 130 Bytes
  • Size of remote file: 35.5 kB
images/test_image39.jpg ADDED

Git LFS Details

  • SHA256: ef1a235f1e3e6b57c64bafe45b866e8a6f0cfec74af27e79837ecd6fae7fc9cf
  • Pointer size: 130 Bytes
  • Size of remote file: 36 kB
images/test_image41.jpg ADDED

Git LFS Details

  • SHA256: 1a66bf8c3ff10d7bebb899ca3096dc3772c2641cc26f783e734a629bf35ca379
  • Pointer size: 130 Bytes
  • Size of remote file: 36.2 kB
images/test_image43.jpg ADDED

Git LFS Details

  • SHA256: 4b1a748bd61fdd76dc0169141ee54c6db674f18a2b6c6aed7ae322b7a0746aa5
  • Pointer size: 130 Bytes
  • Size of remote file: 37.1 kB
images/test_image45.jpg ADDED

Git LFS Details

  • SHA256: a19ab36f26b44bfc664e4f1c16e73281f198a24ce58b81eeab0f641073719129
  • Pointer size: 130 Bytes
  • Size of remote file: 36.8 kB
images/test_image47.jpg ADDED

Git LFS Details

  • SHA256: 8eefa3f71bf6d29bd2456320f5718390e0d4608b1cdd00b974007dba16a5b161
  • Pointer size: 130 Bytes
  • Size of remote file: 36.8 kB
images/test_image49.jpg ADDED

Git LFS Details

  • SHA256: e2bf8ed50a5243ae676e12688dc42b006b3829dadaa9a8f811c1487c3e9a400e
  • Pointer size: 130 Bytes
  • Size of remote file: 35.2 kB
images/test_image5.jpg ADDED

Git LFS Details

  • SHA256: 39c28964fcf2d173c73168fa86b153d07aeee9e08280f6372c00abdc7b960a57
  • Pointer size: 130 Bytes
  • Size of remote file: 36.5 kB
images/test_image51.jpg ADDED

Git LFS Details

  • SHA256: 7be422d149fb9b32bc7615a96e101ece4195c3098ffc365cfa4f605b0fbcf902
  • Pointer size: 130 Bytes
  • Size of remote file: 37.4 kB
images/test_image53.jpg ADDED

Git LFS Details

  • SHA256: 208f8bd7ef6da1f6b5e02ce2c721c2a19d30db05d1a722b2d1f92ebcf8b378f5
  • Pointer size: 130 Bytes
  • Size of remote file: 36.4 kB
images/test_image55.jpg ADDED

Git LFS Details

  • SHA256: 5f6572d12ebc3649083b1d1b7f3b1e0d7959fef59efdfb74bc339b9dc553ff41
  • Pointer size: 130 Bytes
  • Size of remote file: 35.3 kB
images/test_image57.jpg ADDED

Git LFS Details

  • SHA256: 6a0b2a45beecafc6d3ecbceff49b4b6f002e832d2c80ceec957bf0727ba7af23
  • Pointer size: 130 Bytes
  • Size of remote file: 35.5 kB
images/test_image59.jpg ADDED

Git LFS Details

  • SHA256: aeedf763e0445873ca38e3da5b6b64f82c25e679bc7b4a50a7560bc7e2e678f3
  • Pointer size: 130 Bytes
  • Size of remote file: 34.9 kB
images/test_image61.jpg ADDED

Git LFS Details

  • SHA256: a4eac19b44cddee1fffdf2ca0c06f40ba1cd56301ce9637ca1e26d634270a161
  • Pointer size: 130 Bytes
  • Size of remote file: 36.2 kB
images/test_image63.jpg ADDED

Git LFS Details

  • SHA256: 4c25a19b8833f547dc15f619c8a27dfaaf43c63d6debca5fd11e22110d2b5ccd
  • Pointer size: 130 Bytes
  • Size of remote file: 35.7 kB