kamangir
commited on
Commit
•
4f5d096
1
Parent(s):
821ff03
releasing fashion_mnist - kamangir/bolt#692
Browse files- abcli/fashion_mnist.sh +2 -2
- abcli/image_classifier.sh +4 -5
- image_classifier/__init__.py +1 -1
abcli/fashion_mnist.sh
CHANGED
@@ -12,8 +12,8 @@ function abcli_fashion_mnist() {
|
|
12 |
"ingest fashion_mnist data."
|
13 |
abcli_help_line "$abcli_cli_name fashion_mnist predict object_1" \
|
14 |
"run fashion_mnist model object_1 predict."
|
15 |
-
abcli_help_line "$abcli_cli_name fashion_mnist save name_1 object_1 [force]" \
|
16 |
-
"[force]
|
17 |
abcli_help_line "$abcli_cli_name fashion_mnist train [validate]" \
|
18 |
"train fashion_mnist [for validation]."
|
19 |
|
|
|
12 |
"ingest fashion_mnist data."
|
13 |
abcli_help_line "$abcli_cli_name fashion_mnist predict object_1" \
|
14 |
"run fashion_mnist model object_1 predict."
|
15 |
+
abcli_help_line "$abcli_cli_name fashion_mnist save [name_1] [object_1] [force]" \
|
16 |
+
"[force] save fashion_mnist [in object_1] as name_1."
|
17 |
abcli_help_line "$abcli_cli_name fashion_mnist train [validate]" \
|
18 |
"train fashion_mnist [for validation]."
|
19 |
|
abcli/image_classifier.sh
CHANGED
@@ -14,8 +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 save name_1 object_1 [force]" \
|
18 |
-
"[force] save image_classifier in object_1 as name_1."
|
19 |
abcli_help_line "$abcli_cli_name image_classifier train object_1" \
|
20 |
"train image_classifier on data object_1."
|
21 |
|
@@ -48,10 +48,9 @@ function abcli_image_classifier() {
|
|
48 |
return
|
49 |
fi
|
50 |
|
51 |
-
if [ "$task" == "
|
52 |
local model_name=$(abcli_clarify_arg "$2" image-classifier)
|
53 |
-
|
54 |
-
abcli_huggingface release image-classifier $model_name ${@:3}
|
55 |
return
|
56 |
fi
|
57 |
|
|
|
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 save [name_1] [object_1] [force]" \
|
18 |
+
"[force] save image_classifier [in object_1] [as name_1]."
|
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" == "save" ] ; then
|
52 |
local model_name=$(abcli_clarify_arg "$2" image-classifier)
|
53 |
+
abcli_huggingface save image-classifier $model_name ${@:3}
|
|
|
54 |
return
|
55 |
fi
|
56 |
|
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.93"
|
4 |
|
5 |
description = "fashion-mnist + hugging-face + awesome-bash-cli"
|