kamangir
commited on
Commit
•
bb165c2
1
Parent(s):
37db9a5
validating fashion_mnist predict - kamangir/bolt#692
Browse files
image_classifier/__init__.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
name = "image_classifier"
|
2 |
|
3 |
-
version = "1.1.
|
4 |
|
5 |
description = "fashion-mnist + hugging-face + awesome-bash-cli"
|
|
|
1 |
name = "image_classifier"
|
2 |
|
3 |
+
version = "1.1.122"
|
4 |
|
5 |
description = "fashion-mnist + hugging-face + awesome-bash-cli"
|
image_classifier/classes.py
CHANGED
@@ -74,7 +74,13 @@ class Image_Classifier(object):
|
|
74 |
|
75 |
return True
|
76 |
|
77 |
-
def predict(
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
logger.info(
|
79 |
"image_classifier.predict({},{}){}".format(
|
80 |
string.pretty_shape_of_matrix(test_images),
|
@@ -428,7 +434,6 @@ class Image_Classifier(object):
|
|
428 |
test_images,
|
429 |
np.argmax(test_labels, axis=1),
|
430 |
model_path,
|
431 |
-
page_count=10,
|
432 |
)
|
433 |
|
434 |
@property
|
|
|
74 |
|
75 |
return True
|
76 |
|
77 |
+
def predict(
|
78 |
+
self,
|
79 |
+
test_images,
|
80 |
+
test_labels,
|
81 |
+
output_path="",
|
82 |
+
page_count=10,
|
83 |
+
):
|
84 |
logger.info(
|
85 |
"image_classifier.predict({},{}){}".format(
|
86 |
string.pretty_shape_of_matrix(test_images),
|
|
|
434 |
test_images,
|
435 |
np.argmax(test_labels, axis=1),
|
436 |
model_path,
|
|
|
437 |
)
|
438 |
|
439 |
@property
|