blue-sandbox 5.133.1__tar.gz → 5.143.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. {blue_sandbox-5.133.1/blue_sandbox.egg-info → blue_sandbox-5.143.1}/PKG-INFO +6 -5
  2. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/README.md +4 -4
  3. blue_sandbox-5.143.1/blue_sandbox/.abcli/cemetery/inference/cloudwatch.sh +40 -0
  4. blue_sandbox-5.143.1/blue_sandbox/.abcli/cemetery/inference/inference.sh +155 -0
  5. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/README.py +7 -0
  6. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/__init__.py +1 -1
  7. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/list.py +7 -0
  8. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1/blue_sandbox.egg-info}/PKG-INFO +6 -5
  9. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox.egg-info/SOURCES.txt +2 -0
  10. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox.egg-info/requires.txt +1 -0
  11. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/requirements.txt +1 -0
  12. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/LICENSE +0 -0
  13. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/MANIFEST.in +0 -0
  14. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/abcli.sh +0 -0
  15. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/actions.sh +0 -0
  16. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/aka.sh +0 -0
  17. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/alias.sh +0 -0
  18. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/blue_sandbox.sh +0 -0
  19. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/browse.sh +0 -0
  20. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/install.sh +0 -0
  21. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest/list.sh +0 -0
  22. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest.sh +0 -0
  23. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/install.sh +0 -0
  24. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/label.sh +0 -0
  25. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/tensorboard.sh +0 -0
  26. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/train.sh +0 -0
  27. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment.sh +0 -0
  28. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/sagesemseg/cache_dataset.sh +0 -0
  29. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/sagesemseg/consts.sh +0 -0
  30. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/sagesemseg/train.sh +0 -0
  31. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/sagesemseg/upload_dataset.sh +0 -0
  32. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/tests/README.sh +0 -0
  33. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/tests/help.sh +0 -0
  34. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_ingest.sh +0 -0
  35. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_ingest_list.sh +0 -0
  36. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_label.sh +0 -0
  37. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_train.sh +0 -0
  38. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/tests/sagesemseg_train.sh +0 -0
  39. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/.abcli/tests/version.sh +0 -0
  40. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/__main__.py +0 -0
  41. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/config.env +0 -0
  42. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/env.py +0 -0
  43. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/functions.py +0 -0
  44. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/help/__init__.py +0 -0
  45. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/help/__main__.py +0 -0
  46. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/help/functions.py +0 -0
  47. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/host.py +0 -0
  48. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/logger.py +0 -0
  49. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/microsoft_building_damage_assessment/README.py +0 -0
  50. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/microsoft_building_damage_assessment/__init__.py +0 -0
  51. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/microsoft_building_damage_assessment/__main__.py +0 -0
  52. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/microsoft_building_damage_assessment/ingest.py +0 -0
  53. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/microsoft_building_damage_assessment/label.py +0 -0
  54. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/microsoft_building_damage_assessment/sas_token.py +0 -0
  55. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/microsoft_building_damage_assessment/train.py +0 -0
  56. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/sample.env +0 -0
  57. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox/urls.py +0 -0
  58. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox.egg-info/dependency_links.txt +0 -0
  59. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/blue_sandbox.egg-info/top_level.txt +0 -0
  60. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/pyproject.toml +0 -0
  61. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/setup.cfg +0 -0
  62. {blue_sandbox-5.133.1 → blue_sandbox-5.143.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: blue_sandbox
3
- Version: 5.133.1
3
+ Version: 5.143.1
4
4
  Summary: 🌀 A sandbox for ideas and experiments.
5
5
  Home-page: https://github.com/kamangir/blue-sandbox
6
6
  Author: Arash Abadpour (Kamangir)
@@ -19,6 +19,7 @@ Requires-Dist: blue_objects
19
19
  Requires-Dist: blue_geo
20
20
  Requires-Dist: blueflow
21
21
  Requires-Dist: blue_plugin
22
+ Requires-Dist: roofAI
22
23
  Requires-Dist: boto3
23
24
  Requires-Dist: geojson
24
25
  Requires-Dist: geopandas
@@ -53,13 +54,13 @@ Dynamic: summary
53
54
  pip install blue-sandbox
54
55
  ```
55
56
 
56
- | | |
57
- | --- | --- |
58
- | 🌀[`sagesemseg`](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/sagesemseg/README.md) ⏸️ [![image](https://github.com/kamangir/assets/blob/main/blue-sandbox/sagesemseg-predict.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/sagesemseg/README.md) A SemSeg (Semantic Segmenter) trained and deployed on AWS Sagemaker. | 🌐[``@damages``](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/microsoft_building_damage_assessment/README.md) ⏸️ [![image](https://github.com/kamangir/assets/raw/main/blue-sandbox/Maui-Hawaii-fires-Aug-23-ingest-2025-01-10-qqJqhm.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/microsoft_building_damage_assessment/README.md) Satellite imagery damage assessment workflow |
57
+ | | | |
58
+ | --- | --- | --- |
59
+ | 🌀[`sagesemseg`](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/sagesemseg/README.md) ⏸️ [![image](https://github.com/kamangir/assets/blob/main/blue-sandbox/sagesemseg-predict.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/sagesemseg/README.md) A SemSeg (Semantic Segmenter) trained and deployed on AWS Sagemaker. | 🌐[``@damages``](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/microsoft_building_damage_assessment/README.md) ⏸️ [![image](https://github.com/kamangir/assets/raw/main/blue-sandbox/Maui-Hawaii-fires-Aug-23-ingest-2025-01-10-qqJqhm.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/microsoft_building_damage_assessment/README.md) Satellite imagery damage assessment workflow | 🪦[`cemetery`](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/cemetery/README.md) 🪦 [![image](https://github.com/kamangir/assets/raw/main/blue-plugin/marquee.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/cemetery/README.md) An AI cemetery. |
59
60
 
60
61
  ---
61
62
 
62
63
 
63
64
  [![pylint](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/blue-sandbox.svg)](https://pypi.org/project/blue-sandbox/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/blue-sandbox)](https://pypistats.org/packages/blue-sandbox)
64
65
 
65
- built by 🌀 [`blue_options-4.185.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.133.1`](https://github.com/kamangir/blue-sandbox).
66
+ built by 🌀 [`blue_options-4.185.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.143.1`](https://github.com/kamangir/blue-sandbox).
@@ -6,13 +6,13 @@
6
6
  pip install blue-sandbox
7
7
  ```
8
8
 
9
- | | |
10
- | --- | --- |
11
- | 🌀[`sagesemseg`](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/sagesemseg/README.md) ⏸️ [![image](https://github.com/kamangir/assets/blob/main/blue-sandbox/sagesemseg-predict.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/sagesemseg/README.md) A SemSeg (Semantic Segmenter) trained and deployed on AWS Sagemaker. | 🌐[``@damages``](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/microsoft_building_damage_assessment/README.md) ⏸️ [![image](https://github.com/kamangir/assets/raw/main/blue-sandbox/Maui-Hawaii-fires-Aug-23-ingest-2025-01-10-qqJqhm.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/microsoft_building_damage_assessment/README.md) Satellite imagery damage assessment workflow |
9
+ | | | |
10
+ | --- | --- | --- |
11
+ | 🌀[`sagesemseg`](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/sagesemseg/README.md) ⏸️ [![image](https://github.com/kamangir/assets/blob/main/blue-sandbox/sagesemseg-predict.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/sagesemseg/README.md) A SemSeg (Semantic Segmenter) trained and deployed on AWS Sagemaker. | 🌐[``@damages``](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/microsoft_building_damage_assessment/README.md) ⏸️ [![image](https://github.com/kamangir/assets/raw/main/blue-sandbox/Maui-Hawaii-fires-Aug-23-ingest-2025-01-10-qqJqhm.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/microsoft_building_damage_assessment/README.md) Satellite imagery damage assessment workflow | 🪦[`cemetery`](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/cemetery/README.md) 🪦 [![image](https://github.com/kamangir/assets/raw/main/blue-plugin/marquee.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/cemetery/README.md) An AI cemetery. |
12
12
 
13
13
  ---
14
14
 
15
15
 
16
16
  [![pylint](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/blue-sandbox.svg)](https://pypi.org/project/blue-sandbox/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/blue-sandbox)](https://pypistats.org/packages/blue-sandbox)
17
17
 
18
- built by 🌀 [`blue_options-4.185.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.133.1`](https://github.com/kamangir/blue-sandbox).
18
+ built by 🌀 [`blue_options-4.185.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.143.1`](https://github.com/kamangir/blue-sandbox).
@@ -0,0 +1,40 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function cloudwatch() {
4
+ roofAI_cloudwatch "$@"
5
+ }
6
+
7
+ function roofAI_cloudwatch() {
8
+ local task=${1:=help}
9
+
10
+ if [ "$task" == "help" ]; then
11
+ local options="endpoint"
12
+ abcli_show_usage "cloudwatch browse$EOP$ABCUL[$options]$ABCUL[<endpoint-name>]$EOPE" \
13
+ "browse endpoint on cloudwatch." \
14
+ "default endpoint: $(roofAI_inference_default_endpoint)"
15
+ return
16
+ fi
17
+
18
+ local options=$2
19
+
20
+ # https://docs.aws.amazon.com/sagemaker/latest/dg/logging-cloudwatch.html
21
+ if [ "$task" == "browse" ]; then
22
+ local object_type=$(abcli_option_choice "$options" endpoint endpoint)
23
+
24
+ local url=""
25
+ if [[ "$object_type" == endpoint ]]; then
26
+ local endpoint_name=$(abcli_clarify_input $3 $(roofAI_inference_default_endpoint))
27
+ abcli_log "🔗 endpoint: $endpoint_name"
28
+ url="https://$ABCLI_AWS_REGION.console.aws.amazon.com/cloudwatch/home?region=$ABCLI_AWS_REGION#logEventViewer:group=/aws/sagemaker/Endpoints/$endpoint_name"
29
+ else
30
+ abcli_log_error "-cloudwatch: $task: $object_type: object type not found."
31
+ return 1
32
+ fi
33
+
34
+ abcli_browse $url
35
+ return
36
+ fi
37
+
38
+ abcli_log_error "-roofAI: cloudwatch: $task: command not found."
39
+ return 1
40
+ }
@@ -0,0 +1,155 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function roofAI_inference() {
4
+ local task=$(abcli_unpack_keyword $1 help)
5
+
6
+ if [ "$task" == "help" ]; then
7
+ for task in create delete describe invoke list pull; do
8
+ roofAI_inference "$task" "$@"
9
+ done
10
+ return
11
+ fi
12
+ local options=$2
13
+
14
+ if [ $(abcli_option_int "$options" help 0) == 1 ]; then
15
+ case $task in
16
+ "create")
17
+ local args="[--verbose 1]$ABCUL[--verify 0]"
18
+ local options="dryrun,model"
19
+ abcli_show_usage "roofAI inference create$ABCUL[$options]$ABCUL[.|<object-name>]$ABCUL$args" \
20
+ "create inference model."
21
+
22
+ local options="dryrun,endpoint_config,suffix=<suffix>"
23
+ abcli_show_usage "roofAI inference create$ABCUL[$options]$ABCUL[.|<object-name>]$ABCUL$args" \
24
+ "create inference endpoint config."
25
+
26
+ local options="dryrun,endpoint,config_suffix=<suffix>,suffix=<suffix>"
27
+ abcli_show_usage "roofAI inference create$ABCUL[$options]$ABCUL[.|<object-name>]$ABCUL$args" \
28
+ "create inference endpoint."
29
+ ;;
30
+ "delete")
31
+ local args="[--verbose 1]"
32
+ local options="dryrun,model|endpoint_config|endpoint"
33
+ abcli_show_usage "roofAI inference delete$ABCUL[$options]$ABCUL<name>$ABCUL$args" \
34
+ "delete inference object."
35
+ ;;
36
+ "describe")
37
+ local args="[--verbose 1]"
38
+ local options="dryrun,endpoint"
39
+ abcli_show_usage "roofAI inference describe$ABCUL[$options]$ABCUL<name>$ABCUL$args" \
40
+ "describe inference endpoint."
41
+ ;;
42
+ "invoke")
43
+ local args="[--verbose 1]"
44
+ local options="~download,dryrun,profile=$semseg_profiles,upload"
45
+ abcli_show_usage "roofAI inference invoke$EOP$ABCUL[$options]$ABCUL[-|<endpoint-name>]$ABCUL[..|<dataset-object-name>]$ABCUL[-|<prediction-object-name>]$ABCUL$args$EOPE" \
46
+ "<dataset-object-name> -> inference endpoint -> <prediction-object-name>." \
47
+ "default endpoint: $(roofAI_inference_default_endpoint)"
48
+ ;;
49
+ "list")
50
+ local args="[--verbose 1]"
51
+ local options="dryrun,model|endpoint_config|endpoint,contains=<string>"
52
+ abcli_show_usage "roofAI inference list$ABCUL[$options]$ABCUL$args" \
53
+ "list inference objects."
54
+ ;;
55
+ "pull")
56
+ local options="dryrun"
57
+ abcli_show_usage "roofAI inference pull$ABCUL[$options]" \
58
+ "pull the inference image."
59
+ ;;
60
+ esac
61
+ return
62
+ fi
63
+
64
+ if [[ ",create,delete,describe,list," == *",$task,"* ]]; then
65
+ local object_type=$(abcli_option_choice "$options" model,endpoint_config,endpoint model)
66
+ local do_dryrun=$(abcli_option_int "$options" dryrun 0)
67
+ fi
68
+
69
+ if [[ "$task" == "create" ]]; then
70
+ local object_name=$(abcli_clarify_object $3 .)
71
+
72
+ [[ "$object_type" == "model" ]] &&
73
+ abcli_upload solid,~warn_if_exists $object_name
74
+
75
+ abcli_eval dryrun=$do_dryrun \
76
+ python3 -m roofAI.inference create \
77
+ --suffix $(abcli_option "$options" suffix -) \
78
+ --config_suffix $(abcli_option "$options" config_suffix -) \
79
+ --object_type "$object_type" \
80
+ --object_name "$object_name" \
81
+ "${@:4}"
82
+ return
83
+ fi
84
+
85
+ if [[ ",delete,describe," == *",$task,"* ]]; then
86
+ abcli_eval dryrun=$do_dryrun \
87
+ python3 -m roofAI.inference $task \
88
+ --object_type "$object_type" \
89
+ --object_name "$3" \
90
+ "${@:4}"
91
+ return
92
+ fi
93
+
94
+ if [[ "$task" == "invoke" ]]; then
95
+ local do_dryrun=$(abcli_option_int "$options" dryrun 0)
96
+ local do_download=$(abcli_option_int "$options" download $(abcli_not $do_dryrun))
97
+ local do_upload=$(abcli_option_int "$options" upload $(abcli_not $do_dryrun))
98
+
99
+ local endpoint_name=$(abcli_clarify_input $3 $(roofAI_inference_default_endpoint))
100
+
101
+ local dataset_object_name=$(abcli_clarify_object $4 ..)
102
+ [[ "$do_download" == 1 ]] &&
103
+ abcli_download - $dataset_object_name
104
+
105
+ local prediction_object_name=$(abcli_clarify_object $5 $(abcli_string_timestamp))
106
+
107
+ abcli_log "endpoint[$endpoint_name].invoke($dataset_object_name) -> $prediction_object_name."
108
+
109
+ abcli_eval dryrun=$do_dryrun \
110
+ python3 -m roofAI.inference $task \
111
+ --endpoint_name $endpoint_name \
112
+ --dataset_path $ABCLI_OBJECT_ROOT/$dataset_object_name \
113
+ --prediction_path $ABCLI_OBJECT_ROOT/$prediction_object_name \
114
+ --profile $(abcli_option "$options" profile VALIDATION) \
115
+ "${@:6}"
116
+
117
+ [[ "$do_upload" == 1 ]] &&
118
+ abcli_upload - $prediction_object_name
119
+
120
+ return
121
+ fi
122
+
123
+ if [[ "$task" == "list" ]]; then
124
+ abcli_eval dryrun=$do_dryrun \
125
+ python3 -m roofAI.inference $task \
126
+ --object_type "$object_type" \
127
+ --object_name $(abcli_option "$options" contains -) \
128
+ "${@:3}"
129
+ return
130
+ fi
131
+
132
+ if [ "$task" == "pull" ]; then
133
+ aws ecr get-login-password \
134
+ --region $ABCLI_AWS_REGION |
135
+ docker login \
136
+ --username AWS \
137
+ --password-stdin \
138
+ 763104351884.dkr.ecr.$ABCLI_AWS_REGION.amazonaws.com
139
+ [[ $? -ne 0 ]] && return 1
140
+
141
+ local image_name=$(python3 -m roofAI.inference.image get --what name)
142
+ abcli_log "🔗 image name: $image_name"
143
+ abcli_eval dryrun=$do_dryrun \
144
+ docker pull $image_name
145
+
146
+ return
147
+ fi
148
+
149
+ abcli_log_error "-roofAI: inference: $task: command not found."
150
+ return 1
151
+ }
152
+
153
+ function roofAI_inference_default_endpoint() {
154
+ echo endpoint-$(abcli_cache read roofAI_semseg_model_AIRS_o2)-pytorch
155
+ }
@@ -34,6 +34,13 @@ def build():
34
34
  VERSION=VERSION,
35
35
  REPO_NAME=REPO_NAME,
36
36
  ),
37
+ README.build(
38
+ path=os.path.join(file.path(__file__), "cemetery"),
39
+ ICON=ICON,
40
+ NAME=NAME,
41
+ VERSION=VERSION,
42
+ REPO_NAME=REPO_NAME,
43
+ ),
37
44
  README.build(
38
45
  items=microsoft_building_damage_assessment_README.items,
39
46
  cols=len(microsoft_building_damage_assessment_README.list_of_steps),
@@ -4,7 +4,7 @@ ICON = "🌀"
4
4
 
5
5
  DESCRIPTION = f"{ICON} A sandbox for ideas and experiments."
6
6
 
7
- VERSION = "5.133.1"
7
+ VERSION = "5.143.1"
8
8
 
9
9
  REPO_NAME = "blue-sandbox"
10
10
 
@@ -13,6 +13,13 @@ list_of_experiments = {
13
13
  "marquee": "https://github.com/kamangir/assets/raw/main/blue-sandbox/Maui-Hawaii-fires-Aug-23-ingest-2025-01-10-qqJqhm.png?raw=true",
14
14
  "status": "⏸️",
15
15
  },
16
+ "cemetery": {
17
+ "ICON": "🪦",
18
+ "title": "An AI cemetery.",
19
+ "url": "https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/cemetery/README.md",
20
+ "marquee": "https://github.com/kamangir/assets/raw/main/blue-plugin/marquee.png?raw=true",
21
+ "status": "🪦",
22
+ },
16
23
  "template": {
17
24
  "ICON": "",
18
25
  "title": "",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: blue_sandbox
3
- Version: 5.133.1
3
+ Version: 5.143.1
4
4
  Summary: 🌀 A sandbox for ideas and experiments.
5
5
  Home-page: https://github.com/kamangir/blue-sandbox
6
6
  Author: Arash Abadpour (Kamangir)
@@ -19,6 +19,7 @@ Requires-Dist: blue_objects
19
19
  Requires-Dist: blue_geo
20
20
  Requires-Dist: blueflow
21
21
  Requires-Dist: blue_plugin
22
+ Requires-Dist: roofAI
22
23
  Requires-Dist: boto3
23
24
  Requires-Dist: geojson
24
25
  Requires-Dist: geopandas
@@ -53,13 +54,13 @@ Dynamic: summary
53
54
  pip install blue-sandbox
54
55
  ```
55
56
 
56
- | | |
57
- | --- | --- |
58
- | 🌀[`sagesemseg`](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/sagesemseg/README.md) ⏸️ [![image](https://github.com/kamangir/assets/blob/main/blue-sandbox/sagesemseg-predict.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/sagesemseg/README.md) A SemSeg (Semantic Segmenter) trained and deployed on AWS Sagemaker. | 🌐[``@damages``](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/microsoft_building_damage_assessment/README.md) ⏸️ [![image](https://github.com/kamangir/assets/raw/main/blue-sandbox/Maui-Hawaii-fires-Aug-23-ingest-2025-01-10-qqJqhm.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/microsoft_building_damage_assessment/README.md) Satellite imagery damage assessment workflow |
57
+ | | | |
58
+ | --- | --- | --- |
59
+ | 🌀[`sagesemseg`](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/sagesemseg/README.md) ⏸️ [![image](https://github.com/kamangir/assets/blob/main/blue-sandbox/sagesemseg-predict.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/sagesemseg/README.md) A SemSeg (Semantic Segmenter) trained and deployed on AWS Sagemaker. | 🌐[``@damages``](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/microsoft_building_damage_assessment/README.md) ⏸️ [![image](https://github.com/kamangir/assets/raw/main/blue-sandbox/Maui-Hawaii-fires-Aug-23-ingest-2025-01-10-qqJqhm.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/microsoft_building_damage_assessment/README.md) Satellite imagery damage assessment workflow | 🪦[`cemetery`](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/cemetery/README.md) 🪦 [![image](https://github.com/kamangir/assets/raw/main/blue-plugin/marquee.png?raw=true)](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/cemetery/README.md) An AI cemetery. |
59
60
 
60
61
  ---
61
62
 
62
63
 
63
64
  [![pylint](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/blue-sandbox.svg)](https://pypi.org/project/blue-sandbox/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/blue-sandbox)](https://pypistats.org/packages/blue-sandbox)
64
65
 
65
- built by 🌀 [`blue_options-4.185.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.133.1`](https://github.com/kamangir/blue-sandbox).
66
+ built by 🌀 [`blue_options-4.185.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.143.1`](https://github.com/kamangir/blue-sandbox).
@@ -28,6 +28,8 @@ blue_sandbox/.abcli/blue_sandbox.sh
28
28
  blue_sandbox/.abcli/browse.sh
29
29
  blue_sandbox/.abcli/install.sh
30
30
  blue_sandbox/.abcli/microsoft_building_damage_assessment.sh
31
+ blue_sandbox/.abcli/cemetery/inference/cloudwatch.sh
32
+ blue_sandbox/.abcli/cemetery/inference/inference.sh
31
33
  blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest.sh
32
34
  blue_sandbox/.abcli/microsoft_building_damage_assessment/install.sh
33
35
  blue_sandbox/.abcli/microsoft_building_damage_assessment/label.sh
@@ -5,6 +5,7 @@ blue_objects
5
5
  blue_geo
6
6
  blueflow
7
7
  blue_plugin
8
+ roofAI
8
9
  boto3
9
10
  geojson
10
11
  geopandas
@@ -5,6 +5,7 @@ blue_objects
5
5
  blue_geo
6
6
  blueflow
7
7
  blue_plugin
8
+ roofAI
8
9
 
9
10
  boto3
10
11
  geojson
File without changes
File without changes
File without changes