Change to off/on side shot detector
Browse files- .ipynb_checkpoints/Untitled-checkpoint.ipynb +6 -0
- app.py +2 -2
- bench_press.jpg +0 -0
- deadlift.jpg +0 -0
- lateral_raise.jpg +0 -0
- model.pkl +2 -2
- off side_1.jpg +0 -0
- off side_2.jpg +0 -0
- on side_28.jpg +0 -0
- on side_59.jpg +0 -0
.ipynb_checkpoints/Untitled-checkpoint.ipynb
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [],
|
3 |
+
"metadata": {},
|
4 |
+
"nbformat": 4,
|
5 |
+
"nbformat_minor": 5
|
6 |
+
}
|
app.py
CHANGED
@@ -3,7 +3,7 @@ from fastai.vision.all import *
|
|
3 |
import gradio as gr
|
4 |
learn = load_learner('model.pkl')
|
5 |
#|export
|
6 |
-
categories = ('
|
7 |
|
8 |
def classify_image(img):
|
9 |
pred,idx,probs = learn.predict(img)
|
@@ -11,7 +11,7 @@ def classify_image(img):
|
|
11 |
|
12 |
image = gr.inputs.Image(shape=(192,192))
|
13 |
label = gr.outputs.Label()
|
14 |
-
examples = ['
|
15 |
|
16 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
17 |
intf.launch(inline=False)
|
3 |
import gradio as gr
|
4 |
learn = load_learner('model.pkl')
|
5 |
#|export
|
6 |
+
categories = ('on side', 'off side')
|
7 |
|
8 |
def classify_image(img):
|
9 |
pred,idx,probs = learn.predict(img)
|
11 |
|
12 |
image = gr.inputs.Image(shape=(192,192))
|
13 |
label = gr.outputs.Label()
|
14 |
+
examples = ['off side1.jpg', 'on side_59.jpg', 'off side_2.jpg']
|
15 |
|
16 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
17 |
intf.launch(inline=False)
|
bench_press.jpg
DELETED
Binary file (7.17 kB)
|
deadlift.jpg
DELETED
Binary file (11.3 kB)
|
lateral_raise.jpg
DELETED
Binary file (3.91 kB)
|
model.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b53ea523fa1d4f0aac386f3c8b37354f3a066f48cb3d885da8b0e1d83f15e675
|
3 |
+
size 102885589
|
off side_1.jpg
ADDED
off side_2.jpg
ADDED
on side_28.jpg
ADDED
on side_59.jpg
ADDED