kamangir
commited on
Commit
•
7e85b83
1
Parent(s):
56a7129
validating single image predict for fashion_mnist - kamangir/bolt#692
Browse files- abcli/fashion_mnist.sh +5 -5
- abcli/image_classifier.sh +0 -5
- image_classifier/__init__.py +1 -1
abcli/fashion_mnist.sh
CHANGED
@@ -37,10 +37,12 @@ function abcli_fashion_mnist() {
|
|
37 |
if [ "$task" == "predict" ] ; then
|
38 |
local data_object=$(abcli_clarify_object "$2" $abcli_object_name)
|
39 |
|
40 |
-
local
|
|
|
|
|
41 |
local data_source=$(abcli_option "$options" "data" object)
|
42 |
|
43 |
-
if [ "$(abcli_keyword_is $data_object validate)" == true ] && [ "$data_source" == "object" ]; then
|
44 |
local output_object=$abcli_object_name
|
45 |
|
46 |
abcli_select - ~trail
|
@@ -50,15 +52,13 @@ function abcli_fashion_mnist() {
|
|
50 |
abcli_select $output_object ~trail
|
51 |
fi
|
52 |
|
53 |
-
local model_name=$(abcli_clarify_arg "$3" fashion-mnist)
|
54 |
-
|
55 |
abcli_log "fashion_mnist($model_name).predict($data_object)"
|
56 |
|
57 |
abcli_image_classifier predict \
|
58 |
$data_object \
|
59 |
$model_name \
|
60 |
$options \
|
61 |
-
${@:
|
62 |
|
63 |
abcli_tag set . fashion_mnist
|
64 |
|
|
|
37 |
if [ "$task" == "predict" ] ; then
|
38 |
local data_object=$(abcli_clarify_object "$2" $abcli_object_name)
|
39 |
|
40 |
+
local model_name=$(abcli_clarify_arg "$3" fashion-mnist)
|
41 |
+
|
42 |
+
local options=$4
|
43 |
local data_source=$(abcli_option "$options" "data" object)
|
44 |
|
45 |
+
if [ "$(abcli_keyword_is $data_object validate)" == true ] && [ "$data_source" == "object" ] ; then
|
46 |
local output_object=$abcli_object_name
|
47 |
|
48 |
abcli_select - ~trail
|
|
|
52 |
abcli_select $output_object ~trail
|
53 |
fi
|
54 |
|
|
|
|
|
55 |
abcli_log "fashion_mnist($model_name).predict($data_object)"
|
56 |
|
57 |
abcli_image_classifier predict \
|
58 |
$data_object \
|
59 |
$model_name \
|
60 |
$options \
|
61 |
+
${@:5}
|
62 |
|
63 |
abcli_tag set . fashion_mnist
|
64 |
|
abcli/image_classifier.sh
CHANGED
@@ -60,11 +60,6 @@ function abcli_image_classifier() {
|
|
60 |
}
|
61 |
|
62 |
function abcli_image_classifier_predict() {
|
63 |
-
# Args
|
64 |
-
# $1: data_1: data for prediction
|
65 |
-
# $2: name_1: model name
|
66 |
-
# $3: options: data=filename/*object/url,model=object/*saved
|
67 |
-
|
68 |
local data_object=$(abcli_clarify_object "$1")
|
69 |
|
70 |
local model_name=$2
|
|
|
60 |
}
|
61 |
|
62 |
function abcli_image_classifier_predict() {
|
|
|
|
|
|
|
|
|
|
|
63 |
local data_object=$(abcli_clarify_object "$1")
|
64 |
|
65 |
local model_name=$2
|
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.142"
|
4 |
|
5 |
description = "fashion-mnist + hugging-face + awesome-bash-cli"
|