JelenaBickovska
commited on
Commit
•
e66bcb3
1
Parent(s):
8edb67e
color palletes
Browse files- 20230322_color_palettes_34_1ep_19er.pkl +3 -0
- app.py +2 -2
20230322_color_palettes_34_1ep_19er.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fe273e8178b13d1379acbde490bdc41e04f1f4a78545aa18db11987c98cd2454
|
3 |
+
size 87529003
|
app.py
CHANGED
@@ -7,11 +7,11 @@ import numpy as np
|
|
7 |
|
8 |
def is_cat(x): return x[0].isupper()
|
9 |
|
10 |
-
learn = load_learner('
|
11 |
|
12 |
#categories = ('cool-colors', 'earth-tones', 'jewel', 'neutral-colors', 'pastel', 'warm-colors')
|
13 |
|
14 |
-
categories = ('
|
15 |
def classify_image(img):
|
16 |
pred, idx, probs = learn.predict(img)
|
17 |
return dict(zip(categories, map(float, probs)))
|
|
|
7 |
|
8 |
def is_cat(x): return x[0].isupper()
|
9 |
|
10 |
+
learn = load_learner('20230322_color_palettes_34_1ep_19er.pkl')
|
11 |
|
12 |
#categories = ('cool-colors', 'earth-tones', 'jewel', 'neutral-colors', 'pastel', 'warm-colors')
|
13 |
|
14 |
+
categories = ('cool', 'earth', 'jewel', 'neutral', 'pastel', 'warm')
|
15 |
def classify_image(img):
|
16 |
pred, idx, probs = learn.predict(img)
|
17 |
return dict(zip(categories, map(float, probs)))
|