kamangir commited on
Commit
56a7129
1 Parent(s): 38321a8

validating single image predict for fashion_mnist - kamangir/bolt#692

Browse files
abcli/fashion_mnist.sh CHANGED
@@ -37,7 +37,10 @@ function abcli_fashion_mnist() {
37
  if [ "$task" == "predict" ] ; then
38
  local data_object=$(abcli_clarify_object "$2" $abcli_object_name)
39
 
40
- if [ "$(abcli_keyword_is $data_object validate)" == true ] ; then
 
 
 
41
  local output_object=$abcli_object_name
42
 
43
  abcli_select - ~trail
@@ -54,6 +57,7 @@ function abcli_fashion_mnist() {
54
  abcli_image_classifier predict \
55
  $data_object \
56
  $model_name \
 
57
  ${@:4}
58
 
59
  abcli_tag set . fashion_mnist
 
37
  if [ "$task" == "predict" ] ; then
38
  local data_object=$(abcli_clarify_object "$2" $abcli_object_name)
39
 
40
+ local options=$3
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
 
57
  abcli_image_classifier predict \
58
  $data_object \
59
  $model_name \
60
+ $options \
61
  ${@:4}
62
 
63
  abcli_tag set . fashion_mnist
image_classifier/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
  name = "image_classifier"
2
 
3
- version = "1.1.138"
4
 
5
  description = "fashion-mnist + hugging-face + awesome-bash-cli"
 
1
  name = "image_classifier"
2
 
3
+ version = "1.1.139"
4
 
5
  description = "fashion-mnist + hugging-face + awesome-bash-cli"