kamangir
commited on
Commit
•
720d5d2
1
Parent(s):
74c31ba
releasing fashion_mnist - kamangir/bolt#692
Browse files- abcli/fashion_mnist.sh +7 -0
- abcli/image_classifier.sh +7 -0
- image_classifier/__init__.py +1 -1
abcli/fashion_mnist.sh
CHANGED
@@ -12,6 +12,8 @@ function abcli_fashion_mnist() {
|
|
12 |
"ingest fashion_mnist data."
|
13 |
abcli_help_line "fashion_mnist predict object_1" \
|
14 |
"run fashion_mnist model object_1 predict."
|
|
|
|
|
15 |
abcli_help_line "fashion_mnist train [validate]" \
|
16 |
"train fashion_mnist [for validation]."
|
17 |
|
@@ -38,6 +40,11 @@ function abcli_fashion_mnist() {
|
|
38 |
return
|
39 |
fi
|
40 |
|
|
|
|
|
|
|
|
|
|
|
41 |
if [ "$task" == "train" ] ; then
|
42 |
local model_object=$abcli_object_name
|
43 |
|
|
|
12 |
"ingest fashion_mnist data."
|
13 |
abcli_help_line "fashion_mnist predict object_1" \
|
14 |
"run fashion_mnist model object_1 predict."
|
15 |
+
abcli_help_line "fashion_mnist release name_1 object_1" \
|
16 |
+
"release fashion_mnist as image."
|
17 |
abcli_help_line "fashion_mnist train [validate]" \
|
18 |
"train fashion_mnist [for validation]."
|
19 |
|
|
|
40 |
return
|
41 |
fi
|
42 |
|
43 |
+
if [ "$task" == "release" ] ; then
|
44 |
+
abcli_huggingface release image-classifier ${@:2}
|
45 |
+
return
|
46 |
+
fi
|
47 |
+
|
48 |
if [ "$task" == "train" ] ; then
|
49 |
local model_object=$abcli_object_name
|
50 |
|
abcli/image_classifier.sh
CHANGED
@@ -14,6 +14,8 @@ function abcli_image_classifier() {
|
|
14 |
"install image_classifier."
|
15 |
abcli_help_line "$abcli_cli_name image_classifier predict object_1 object_2" \
|
16 |
"run image_classifier model object_1 predict on data object_2."
|
|
|
|
|
17 |
abcli_help_line "$abcli_cli_name image_classifier train object_1" \
|
18 |
"train image_classifier on data object_1."
|
19 |
|
@@ -46,6 +48,11 @@ function abcli_image_classifier() {
|
|
46 |
return
|
47 |
fi
|
48 |
|
|
|
|
|
|
|
|
|
|
|
49 |
abcli_log_error "-fashion_mnist: image-classifier: $task: command not found."
|
50 |
}
|
51 |
|
|
|
14 |
"install image_classifier."
|
15 |
abcli_help_line "$abcli_cli_name image_classifier predict object_1 object_2" \
|
16 |
"run image_classifier model object_1 predict on data object_2."
|
17 |
+
abcli_help_line "$abcli_cli_name image_classifier release" \
|
18 |
+
"release image_classifier."
|
19 |
abcli_help_line "$abcli_cli_name image_classifier train object_1" \
|
20 |
"train image_classifier on data object_1."
|
21 |
|
|
|
48 |
return
|
49 |
fi
|
50 |
|
51 |
+
if [ "$task" == "release" ] ; then
|
52 |
+
abcli_huggingface release image-classifier ${@:2}
|
53 |
+
return
|
54 |
+
fi
|
55 |
+
|
56 |
abcli_log_error "-fashion_mnist: image-classifier: $task: command not found."
|
57 |
}
|
58 |
|
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.82"
|
4 |
|
5 |
description = "fashion-mnist + hugging-face + awesome-bash-cli"
|