gg80 commited on
Commit
a62e442
1 Parent(s): 44637c1

initial commit

Browse files
.gitattributes CHANGED
@@ -32,3 +32,12 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip 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
 
 
 
 
 
 
 
 
 
 
32
  *.zip 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
+ clean-02.JPG filter=lfs diff=lfs merge=lfs -text
36
+ clean-03.JPG filter=lfs diff=lfs merge=lfs -text
37
+ dirty-02.JPG filter=lfs diff=lfs merge=lfs -text
38
+ dirty-03.JPG filter=lfs diff=lfs merge=lfs -text
39
+ seiba-edisa-apple-bins.pkl filter=lfs diff=lfs merge=lfs -text
40
+ clean-01.JPG filter=lfs diff=lfs merge=lfs -text
41
+ clean-04.JPG filter=lfs diff=lfs merge=lfs -text
42
+ dirty-01.JPG filter=lfs diff=lfs merge=lfs -text
43
+ dirty-04.JPG filter=lfs diff=lfs merge=lfs -text
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from fastai.vision.all import *
3
+
4
+ learn = load_learner('seiba-edisa-apple-bins.pkl')
5
+
6
+ categories = ['Clean', 'Dirty']
7
+ def predict(img):
8
+ # img = PILImage.create(img)
9
+ _,_,probs = learn.predict(img)
10
+ return dict(zip(categories, map(float,probs)))
11
+
12
+ title = "Apple bins classifier"
13
+ examples = ['clean-01.JPG','clean-02.JPG','clean-03.JPG','clean-04.JPG','dirty-01.JPG','dirty-02.JPG','dirty-03.JPG','dirty-04.JPG']
14
+ interpretation='default'
15
+ enable_queue=True
16
+
17
+ gr.Interface(fn=predict,
18
+ inputs=gr.inputs.Image(shape=(192, 192)),
19
+ outputs=gr.outputs.Label(num_top_classes=2),
20
+ title=title,
21
+ examples=examples).launch(inline=False)
clean-01.JPG ADDED

Git LFS Details

  • SHA256: 24b809bc7765596076e08789a64feee1016b3a019857f1a94e83f94814687328
  • Pointer size: 131 Bytes
  • Size of remote file: 991 kB
clean-02.JPG ADDED

Git LFS Details

  • SHA256: 7772ce7fa5f44bcd7b28a9c2ffac37e5f66eb182cd31a53a554674d8ae4a0959
  • Pointer size: 131 Bytes
  • Size of remote file: 947 kB
clean-03.JPG ADDED

Git LFS Details

  • SHA256: a82220a566db56f43b5a652bf2ac1238a958e7636439b3ac60cb74a8a6933d91
  • Pointer size: 131 Bytes
  • Size of remote file: 948 kB
clean-04.JPG ADDED

Git LFS Details

  • SHA256: cb2febbdb3e95e5f862418dde33fbeec30ec4e42c62d711a3073e2651098b3d4
  • Pointer size: 131 Bytes
  • Size of remote file: 952 kB
dirty-01.JPG ADDED

Git LFS Details

  • SHA256: 44eb3cfa6387be3e514a4470ae56a4b90e09351be215aa47930ddf8cbd917a5c
  • Pointer size: 131 Bytes
  • Size of remote file: 999 kB
dirty-02.JPG ADDED

Git LFS Details

  • SHA256: 9097c97ac229ec1d4ee832ab052be8a4d8cb09053ceee70ad44ce85a3bd5c787
  • Pointer size: 132 Bytes
  • Size of remote file: 1.11 MB
dirty-03.JPG ADDED

Git LFS Details

  • SHA256: 3341161f937d407ba47962b5664bd6d564cf46ae4f90b00b61ae09c2be01e1ab
  • Pointer size: 132 Bytes
  • Size of remote file: 1.18 MB
dirty-04.JPG ADDED

Git LFS Details

  • SHA256: adf96f349a8730650c3770d6c9e5e122e15e6059850a22bcff9ab5f023abb83a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.21 MB
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ fastai
2
+ gradio
seiba-edisa-apple-bins.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:faec908e4adcf86afedc390bea53ae8f5c7f4505f50f20725c68a8f29b9354b7
3
+ size 46962926