kamangir
commited on
Commit
•
cd2efd1
1
Parent(s):
7e85b83
validating single image predict for fashion_mnist - kamangir/bolt#692
Browse files- abcli/fashion_mnist.sh +1 -1
- abcli/image_classifier.sh +5 -1
- image_classifier/__init__.py +1 -1
abcli/fashion_mnist.sh
CHANGED
@@ -52,7 +52,7 @@ function abcli_fashion_mnist() {
|
|
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 \
|
|
|
52 |
abcli_select $output_object ~trail
|
53 |
fi
|
54 |
|
55 |
+
abcli_log "fashion_mnist($model_name).predict($data_object): $options"
|
56 |
|
57 |
abcli_image_classifier predict \
|
58 |
$data_object \
|
abcli/image_classifier.sh
CHANGED
@@ -65,11 +65,15 @@ function abcli_image_classifier_predict() {
|
|
65 |
local model_name=$2
|
66 |
|
67 |
local options=$3
|
|
|
68 |
local model_source=$(abcli_option "$options" "model" saved)
|
69 |
|
70 |
local model_path=$(abcli_huggingface get_model_path image-classifier "$model_name" "$options")
|
71 |
|
72 |
-
|
|
|
|
|
|
|
73 |
if [ "$model_source" == "object" ] ; then
|
74 |
local model_object=TBD
|
75 |
abcli_download object $model_object
|
|
|
65 |
local model_name=$2
|
66 |
|
67 |
local options=$3
|
68 |
+
local data_source=$(abcli_option "$options" "data" object)
|
69 |
local model_source=$(abcli_option "$options" "model" saved)
|
70 |
|
71 |
local model_path=$(abcli_huggingface get_model_path image-classifier "$model_name" "$options")
|
72 |
|
73 |
+
if [ "$data_source" == "object" ] ; then
|
74 |
+
abcli_download object $data_object
|
75 |
+
fi
|
76 |
+
|
77 |
if [ "$model_source" == "object" ] ; then
|
78 |
local model_object=TBD
|
79 |
abcli_download object $model_object
|
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.144"
|
4 |
|
5 |
description = "fashion-mnist + hugging-face + awesome-bash-cli"
|