blue-sandbox 5.184.1__tar.gz → 5.214.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. {blue_sandbox-5.184.1/blue_sandbox.egg-info → blue_sandbox-5.214.1}/PKG-INFO +3 -3
  2. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/README.md +1 -1
  3. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/cemetery/inference/cloudwatch.sh +5 -5
  4. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/cemetery/inference/inference.sh +20 -20
  5. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/palisades/ingest.sh +11 -18
  6. blue_sandbox-5.214.1/blue_sandbox/.abcli/palisades/label.sh +25 -0
  7. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/sagesemseg/train.sh +1 -1
  8. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/sagesemseg/upload_dataset.sh +1 -1
  9. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/tests/help.sh +1 -0
  10. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/tests/palisades_ingest.sh +7 -10
  11. blue_sandbox-5.214.1/blue_sandbox/.abcli/tests/palisades_label.sh +25 -0
  12. blue_sandbox-5.214.1/blue_sandbox/.abcli/tests/palisades_train.sh +16 -0
  13. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/tests/sagesemseg_train.sh +3 -6
  14. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/__init__.py +1 -1
  15. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/help/palisades.py +22 -7
  16. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1/blue_sandbox.egg-info}/PKG-INFO +3 -3
  17. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox.egg-info/SOURCES.txt +3 -0
  18. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox.egg-info/requires.txt +1 -1
  19. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/requirements.txt +1 -1
  20. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/LICENSE +0 -0
  21. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/MANIFEST.in +0 -0
  22. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/abcli.sh +0 -0
  23. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/actions.sh +0 -0
  24. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/aka.sh +0 -0
  25. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/alias.sh +0 -0
  26. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/blue_sandbox.sh +0 -0
  27. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/browse.sh +0 -0
  28. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/install.sh +0 -0
  29. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest/list.sh +0 -0
  30. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest.sh +0 -0
  31. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/install.sh +0 -0
  32. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/label.sh +0 -0
  33. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/tensorboard.sh +0 -0
  34. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/train.sh +0 -0
  35. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment.sh +0 -0
  36. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/palisades.sh +0 -0
  37. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/sagesemseg/cache_dataset.sh +0 -0
  38. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/sagesemseg/consts.sh +0 -0
  39. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/tests/README.sh +0 -0
  40. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_ingest.sh +0 -0
  41. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_ingest_list.sh +0 -0
  42. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_label.sh +0 -0
  43. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_train.sh +0 -0
  44. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/.abcli/tests/version.sh +0 -0
  45. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/README.py +0 -0
  46. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/__main__.py +0 -0
  47. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/config.env +0 -0
  48. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/env.py +0 -0
  49. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/functions.py +0 -0
  50. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/help/__init__.py +0 -0
  51. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/help/__main__.py +0 -0
  52. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/help/functions.py +0 -0
  53. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/host.py +0 -0
  54. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/list.py +0 -0
  55. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/logger.py +0 -0
  56. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/microsoft_building_damage_assessment/README.py +0 -0
  57. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/microsoft_building_damage_assessment/__init__.py +0 -0
  58. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/microsoft_building_damage_assessment/__main__.py +0 -0
  59. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/microsoft_building_damage_assessment/ingest.py +0 -0
  60. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/microsoft_building_damage_assessment/label.py +0 -0
  61. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/microsoft_building_damage_assessment/sas_token.py +0 -0
  62. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/microsoft_building_damage_assessment/train.py +0 -0
  63. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/sample.env +0 -0
  64. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox/urls.py +0 -0
  65. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox.egg-info/dependency_links.txt +0 -0
  66. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/blue_sandbox.egg-info/top_level.txt +0 -0
  67. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/pyproject.toml +0 -0
  68. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/setup.cfg +0 -0
  69. {blue_sandbox-5.184.1 → blue_sandbox-5.214.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: blue_sandbox
3
- Version: 5.184.1
3
+ Version: 5.214.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,7 +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
+ Requires-Dist: roofai
23
23
  Requires-Dist: boto3
24
24
  Requires-Dist: geojson
25
25
  Requires-Dist: geopandas
@@ -64,4 +64,4 @@ pip install blue-sandbox
64
64
 
65
65
  [![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)
66
66
 
67
- built by 🌀 [`blue_options-4.190.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.184.1`](https://github.com/kamangir/blue-sandbox).
67
+ built by 🌀 [`blue_options-4.192.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.214.1`](https://github.com/kamangir/blue-sandbox).
@@ -16,4 +16,4 @@ pip install blue-sandbox
16
16
 
17
17
  [![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)
18
18
 
19
- built by 🌀 [`blue_options-4.190.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.184.1`](https://github.com/kamangir/blue-sandbox).
19
+ built by 🌀 [`blue_options-4.192.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.214.1`](https://github.com/kamangir/blue-sandbox).
@@ -1,17 +1,17 @@
1
1
  #! /usr/bin/env bash
2
2
 
3
3
  function cloudwatch() {
4
- roofAI_cloudwatch "$@"
4
+ blue_sandbox_cemetery_cloudwatch "$@"
5
5
  }
6
6
 
7
- function roofAI_cloudwatch() {
7
+ function blue_sandbox_cemetery_cloudwatch() {
8
8
  local task=${1:=help}
9
9
 
10
10
  if [ "$task" == "help" ]; then
11
11
  local options="endpoint"
12
12
  abcli_show_usage "cloudwatch browse$EOP$ABCUL[$options]$ABCUL[<endpoint-name>]$EOPE" \
13
13
  "browse endpoint on cloudwatch." \
14
- "default endpoint: $(roofAI_inference_default_endpoint)"
14
+ "default endpoint: $(blue_sandbox_cemetery_inference_default_endpoint)"
15
15
  return
16
16
  fi
17
17
 
@@ -23,7 +23,7 @@ function roofAI_cloudwatch() {
23
23
 
24
24
  local url=""
25
25
  if [[ "$object_type" == endpoint ]]; then
26
- local endpoint_name=$(abcli_clarify_input $3 $(roofAI_inference_default_endpoint))
26
+ local endpoint_name=$(abcli_clarify_input $3 $(blue_sandbox_cemetery_inference_default_endpoint))
27
27
  abcli_log "🔗 endpoint: $endpoint_name"
28
28
  url="https://$ABCLI_AWS_REGION.console.aws.amazon.com/cloudwatch/home?region=$ABCLI_AWS_REGION#logEventViewer:group=/aws/sagemaker/Endpoints/$endpoint_name"
29
29
  else
@@ -35,6 +35,6 @@ function roofAI_cloudwatch() {
35
35
  return
36
36
  fi
37
37
 
38
- abcli_log_error "-roofAI: cloudwatch: $task: command not found."
38
+ abcli_log_error "blue_sandbox: cemetery: cloudwatch: $task: command not found."
39
39
  return 1
40
40
  }
@@ -1,11 +1,11 @@
1
1
  #! /usr/bin/env bash
2
2
 
3
- function roofAI_inference() {
3
+ function blue_sandbox_cemetery_inference() {
4
4
  local task=$(abcli_unpack_keyword $1 help)
5
5
 
6
6
  if [ "$task" == "help" ]; then
7
7
  for task in create delete describe invoke list pull; do
8
- roofAI_inference "$task" "$@"
8
+ blue_sandbox_cemetery_inference "$task" "$@"
9
9
  done
10
10
  return
11
11
  fi
@@ -16,45 +16,45 @@ function roofAI_inference() {
16
16
  "create")
17
17
  local args="[--verbose 1]$ABCUL[--verify 0]"
18
18
  local options="dryrun,model"
19
- abcli_show_usage "roofAI inference create$ABCUL[$options]$ABCUL[.|<object-name>]$ABCUL$args" \
19
+ abcli_show_usage "@cemetery inference create$ABCUL[$options]$ABCUL[.|<object-name>]$ABCUL$args" \
20
20
  "create inference model."
21
21
 
22
22
  local options="dryrun,endpoint_config,suffix=<suffix>"
23
- abcli_show_usage "roofAI inference create$ABCUL[$options]$ABCUL[.|<object-name>]$ABCUL$args" \
23
+ abcli_show_usage "@cemetery inference create$ABCUL[$options]$ABCUL[.|<object-name>]$ABCUL$args" \
24
24
  "create inference endpoint config."
25
25
 
26
26
  local options="dryrun,endpoint,config_suffix=<suffix>,suffix=<suffix>"
27
- abcli_show_usage "roofAI inference create$ABCUL[$options]$ABCUL[.|<object-name>]$ABCUL$args" \
27
+ abcli_show_usage "@cemetery inference create$ABCUL[$options]$ABCUL[.|<object-name>]$ABCUL$args" \
28
28
  "create inference endpoint."
29
29
  ;;
30
30
  "delete")
31
31
  local args="[--verbose 1]"
32
32
  local options="dryrun,model|endpoint_config|endpoint"
33
- abcli_show_usage "roofAI inference delete$ABCUL[$options]$ABCUL<name>$ABCUL$args" \
33
+ abcli_show_usage "@cemetery inference delete$ABCUL[$options]$ABCUL<name>$ABCUL$args" \
34
34
  "delete inference object."
35
35
  ;;
36
36
  "describe")
37
37
  local args="[--verbose 1]"
38
38
  local options="dryrun,endpoint"
39
- abcli_show_usage "roofAI inference describe$ABCUL[$options]$ABCUL<name>$ABCUL$args" \
39
+ abcli_show_usage "@cemetery inference describe$ABCUL[$options]$ABCUL<name>$ABCUL$args" \
40
40
  "describe inference endpoint."
41
41
  ;;
42
42
  "invoke")
43
43
  local args="[--verbose 1]"
44
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" \
45
+ abcli_show_usage "@cemetery inference invoke$EOP$ABCUL[$options]$ABCUL[-|<endpoint-name>]$ABCUL[..|<dataset-object-name>]$ABCUL[-|<prediction-object-name>]$ABCUL$args$EOPE" \
46
46
  "<dataset-object-name> -> inference endpoint -> <prediction-object-name>." \
47
- "default endpoint: $(roofAI_inference_default_endpoint)"
47
+ "default endpoint: $(blue_sandbox_cemetery_inference_default_endpoint)"
48
48
  ;;
49
49
  "list")
50
50
  local args="[--verbose 1]"
51
51
  local options="dryrun,model|endpoint_config|endpoint,contains=<string>"
52
- abcli_show_usage "roofAI inference list$ABCUL[$options]$ABCUL$args" \
52
+ abcli_show_usage "@cemetery inference list$ABCUL[$options]$ABCUL$args" \
53
53
  "list inference objects."
54
54
  ;;
55
55
  "pull")
56
56
  local options="dryrun"
57
- abcli_show_usage "roofAI inference pull$ABCUL[$options]" \
57
+ abcli_show_usage "@cemetery inference pull$ABCUL[$options]" \
58
58
  "pull the inference image."
59
59
  ;;
60
60
  esac
@@ -73,7 +73,7 @@ function roofAI_inference() {
73
73
  abcli_upload solid,~warn_if_exists $object_name
74
74
 
75
75
  abcli_eval dryrun=$do_dryrun \
76
- python3 -m roofAI.inference create \
76
+ python3 -m blue_sandbox.cemetry.inference create \
77
77
  --suffix $(abcli_option "$options" suffix -) \
78
78
  --config_suffix $(abcli_option "$options" config_suffix -) \
79
79
  --object_type "$object_type" \
@@ -84,7 +84,7 @@ function roofAI_inference() {
84
84
 
85
85
  if [[ ",delete,describe," == *",$task,"* ]]; then
86
86
  abcli_eval dryrun=$do_dryrun \
87
- python3 -m roofAI.inference $task \
87
+ python3 -m blue_sandbox.cemetry.inference $task \
88
88
  --object_type "$object_type" \
89
89
  --object_name "$3" \
90
90
  "${@:4}"
@@ -96,7 +96,7 @@ function roofAI_inference() {
96
96
  local do_download=$(abcli_option_int "$options" download $(abcli_not $do_dryrun))
97
97
  local do_upload=$(abcli_option_int "$options" upload $(abcli_not $do_dryrun))
98
98
 
99
- local endpoint_name=$(abcli_clarify_input $3 $(roofAI_inference_default_endpoint))
99
+ local endpoint_name=$(abcli_clarify_input $3 $(blue_sandbox_cemetery_inference_default_endpoint))
100
100
 
101
101
  local dataset_object_name=$(abcli_clarify_object $4 ..)
102
102
  [[ "$do_download" == 1 ]] &&
@@ -107,7 +107,7 @@ function roofAI_inference() {
107
107
  abcli_log "endpoint[$endpoint_name].invoke($dataset_object_name) -> $prediction_object_name."
108
108
 
109
109
  abcli_eval dryrun=$do_dryrun \
110
- python3 -m roofAI.inference $task \
110
+ python3 -m blue_sandbox.cemetry.inference $task \
111
111
  --endpoint_name $endpoint_name \
112
112
  --dataset_path $ABCLI_OBJECT_ROOT/$dataset_object_name \
113
113
  --prediction_path $ABCLI_OBJECT_ROOT/$prediction_object_name \
@@ -122,7 +122,7 @@ function roofAI_inference() {
122
122
 
123
123
  if [[ "$task" == "list" ]]; then
124
124
  abcli_eval dryrun=$do_dryrun \
125
- python3 -m roofAI.inference $task \
125
+ python3 -m blue_sandbox.cemetry.inference $task \
126
126
  --object_type "$object_type" \
127
127
  --object_name $(abcli_option "$options" contains -) \
128
128
  "${@:3}"
@@ -138,7 +138,7 @@ function roofAI_inference() {
138
138
  763104351884.dkr.ecr.$ABCLI_AWS_REGION.amazonaws.com
139
139
  [[ $? -ne 0 ]] && return 1
140
140
 
141
- local image_name=$(python3 -m roofAI.inference.image get --what name)
141
+ local image_name=$(python3 -m blue_sandbox.cemetry.inference.image get --what name)
142
142
  abcli_log "🔗 image name: $image_name"
143
143
  abcli_eval dryrun=$do_dryrun \
144
144
  docker pull $image_name
@@ -146,10 +146,10 @@ function roofAI_inference() {
146
146
  return
147
147
  fi
148
148
 
149
- abcli_log_error "-roofAI: inference: $task: command not found."
149
+ abcli_log_error "@cemetery: inference: $task: command not found."
150
150
  return 1
151
151
  }
152
152
 
153
- function roofAI_inference_default_endpoint() {
154
- echo endpoint-$(abcli_cache read roofAI_semseg_model_AIRS_o2)-pytorch
153
+ function blue_sandbox_cemetery_inference_default_endpoint() {
154
+ echo endpoint-$(abcli_cache read blue_sandbox_cemetery_semseg_model_AIRS_o2)-pytorch
155
155
  }
@@ -9,7 +9,6 @@ function blue_sandbox_palisades_ingest() {
9
9
 
10
10
  local do_dryrun=$(abcli_option_int "$options" dryrun 0)
11
11
  local do_download=$(abcli_option_int "$options" download $(abcli_not $do_dryrun))
12
- local do_upload=$(abcli_option_int "$options" upload 0)
13
12
 
14
13
  local target=$(abcli_option "$target_options" target)
15
14
  local query_object_name
@@ -24,24 +23,18 @@ function blue_sandbox_palisades_ingest() {
24
23
  $target_options \
25
24
  $query_object_name
26
25
  [[ $? -ne 0 ]] && return 1
26
+
27
+ abcli_eval dryrun=$do_dryrun \
28
+ python3 -m blue_sandbox.palisades \
29
+ complete_ingest \
30
+ --query_object_name $query_object_name
31
+ [[ $? -ne 0 ]] && return 1
27
32
  fi
28
33
 
29
- local list_of_datacubes=$(blue_geo_catalog_query_read all \
30
- $query_object_name \
31
- --log 0 \
32
- --delim +)
33
- @log_list "$list_of_datacubes" \
34
- --before ingesting \
35
- --after "datacube(s)" \
36
- --delim +
37
-
38
- local datacube_id
39
34
  local do_ingest_datacubes=$(abcli_option_int "$datacube_ingest_options" ingest_datacubes 1)
40
- if [[ "$do_ingest_datacubes" == 1 ]]; then
41
- for datacube_id in $(echo $list_of_datacubes | tr + " "); do
42
- blue_geo_datacube_ingest \
43
- ,$datacube_ingest_options \
44
- $datacube_id
45
- done
46
- fi
35
+ [[ "$do_ingest_datacubes" == 0 ]] && return 0
36
+
37
+ blue_geo_catalog_query_ingest - \
38
+ $query_object_name \
39
+ ,$datacube_ingest_options
47
40
  }
@@ -0,0 +1,25 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function blue_sandbox_palisades_label() {
4
+ local options=$1
5
+ local do_download=$(abcli_option_int "$options" download 0)
6
+ local offset=$(abcli_option "$option" offset 0)
7
+
8
+ local datacube_label_options=$2
9
+
10
+ local query_object_name=$(abcli_clarify_object $3 .)
11
+ [[ "$do_download" == 1 ]] &&
12
+ abcli_download - $query_object_name
13
+
14
+ local datacube_id=$(blue_geo_catalog_query_read - \
15
+ $query_object_name \
16
+ --offset $offset)
17
+ if [[ -z "$datacube_id" ]]; then
18
+ abcli_log_error "datacube $query_object_name/#$offset not found."
19
+ return 1
20
+ fi
21
+
22
+ blue_geo_datacube_label \
23
+ ,$datacube_label_options \
24
+ $datacube_id
25
+ }
@@ -36,7 +36,7 @@ function runme() {
36
36
  trained_on.$dataset_object_name
37
37
 
38
38
  abcli_eval dryrun=$do_dryrun \
39
- python3 -m roofAI.semseg.sagemaker train_model \
39
+ python3 -m blue_sandbox.cemetry.sagesemseg train_model \
40
40
  --dataset_object_name $dataset_object_name \
41
41
  --model_object_name $model_object_name \
42
42
  "${@:4}"
@@ -38,7 +38,7 @@ function runme() {
38
38
  abcli_log "$script_name: $dataset_object_name -> ☁️ / $object_name"
39
39
 
40
40
  abcli_eval dryrun=$do_dryrun \
41
- python3 -m roofAI.semseg.sagemaker upload_dataset \
41
+ python3 -m blue_sandbox.cemetry.sagesemseg upload_dataset \
42
42
  --dataset_object_name $dataset_object_name \
43
43
  --object_name $object_name \
44
44
  "${@:3}"
@@ -17,6 +17,7 @@ function test_blue_sandbox_help() {
17
17
  \
18
18
  "palisades" \
19
19
  "palisades ingest" \
20
+ "palisades label" \
20
21
  \
21
22
  "blue_sandbox"; do
22
23
  abcli_eval ,$options \
@@ -1,30 +1,27 @@
1
1
  #! /usr/bin/env bash
2
2
 
3
- function test_blue_sandbox_palisades_ingest_target() {
3
+ function test_blue_sandbox_palisades_ingest() {
4
4
  local options=$1
5
5
 
6
6
  abcli_eval ,$options \
7
7
  blue_sandbox_palisades \
8
8
  ingest \
9
9
  ~upload \
10
- target=Palisades-Maxar \
10
+ target=Palisades-Maxar-test \
11
11
  ~ingest_datacubes
12
+ [[ $? -ne 0 ]] && return 1
12
13
 
13
- }
14
-
15
- function test_blue_sandbox_palisades_ingest_query() {
16
- local options=$1
14
+ abcli_hr
17
15
 
18
16
  abcli_eval ,$options \
19
17
  blue_sandbox_palisades \
20
18
  ingest \
21
19
  ~upload \
22
- $PALISADES_QUERY_OBJECT_PALISADES_MAXAR \
20
+ $PALISADES_QUERY_OBJECT_PALISADES_MAXAR_TEST \
23
21
  ~ingest_datacubes
24
- }
22
+ [[ $? -ne 0 ]] && return 1
25
23
 
26
- function test_blue_sandbox_palisades_ingest_target_ingest_datacubes() {
27
- local options=$1
24
+ abcli_hr
28
25
 
29
26
  abcli_eval ,$options \
30
27
  blue_sandbox_palisades \
@@ -0,0 +1,25 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function test_blue_sandbox_palisades_label() {
4
+ local options=$1
5
+
6
+ local query_object_name=palisades-dataset-v1
7
+
8
+ abcli_eval ,$options \
9
+ blue_sandbox_palisades_label \
10
+ download,offset=0 \
11
+ ~QGIS \
12
+ $query_object_name
13
+ [[ $? -ne 0 ]] && return 1
14
+
15
+ abcli_log_warning "image size may cause gitlab error, disabled."
16
+ return 0
17
+
18
+ # TODO: enable with a dataset with smaller images.
19
+
20
+ abcli_eval ,$options \
21
+ roofai_dataset_review - \
22
+ $query_object_name \
23
+ --index 0 \
24
+ --subset train
25
+ }
@@ -0,0 +1,16 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function test_blue_sandbox_palisades_train() {
4
+ local options=$1
5
+
6
+ local query_object_name=palisades-dataset-v1
7
+
8
+ abcli_eval ,$options \
9
+ roofai_dataset_review download \
10
+ $query_object_name
11
+ [[ $? -ne 0 ]] && return 1
12
+
13
+ abcli_hr
14
+
15
+ # next step
16
+ }
@@ -1,19 +1,16 @@
1
1
  #! /usr/bin/env bash
2
2
 
3
- function test_roofAI_sagemaker_train() {
3
+ function test_blue_sandbox_cemetery_sagesemseg_train() {
4
4
  local options=$1
5
5
  local do_dryrun=$(abcli_option_int "$options" dryrun 0)
6
6
 
7
7
  abcli_log_warning "🚧 may incur cost 💰, disabled."
8
8
  do_dryrun=1
9
9
 
10
- abcli_eval dryrun=$do_dryrun \
11
- conda activate $(roofAI_conda environment_name sagemaker)
12
-
13
10
  local dataset_object_name=dataset-$(abcli_string_timestamp)
14
11
 
15
12
  abcli_eval dryrun=$do_dryrun \
16
- roofAI dataset ingest \
13
+ roofai_dataset_ingest \
17
14
  source=AIRS,target=sagemaker,$2 \
18
15
  $dataset_object_name \
19
16
  --test_count 0 \
@@ -23,7 +20,7 @@ function test_roofAI_sagemaker_train() {
23
20
  local model_object_name=model-$(abcli_string_timestamp)
24
21
 
25
22
  abcli_eval dryrun=$do_dryrun \
26
- sagesemseg train \
23
+ blue_sandbox_cemetery_sagesemseg_train \
27
24
  ,$3 \
28
25
  $dataset_object_name \
29
26
  $model_object_name \
@@ -4,7 +4,7 @@ ICON = "🌀"
4
4
 
5
5
  DESCRIPTION = f"{ICON} A sandbox for ideas and experiments."
6
6
 
7
- VERSION = "5.184.1"
7
+ VERSION = "5.214.1"
8
8
 
9
9
  REPO_NAME = "blue-sandbox"
10
10
 
@@ -5,7 +5,7 @@ from blue_options.terminal import show_usage, xtra
5
5
  from blue_geo.watch.targets.target_list import TargetList
6
6
  from blue_geo.help.datacube import scope_details
7
7
  from blue_geo.help.datacube import ingest_options as datacube_ingest_options
8
-
8
+ from blue_geo.help.datacube.label import options as datacube_label_options
9
9
 
10
10
  target_list = TargetList(catalog="maxar_open_data")
11
11
 
@@ -14,12 +14,7 @@ def help_ingest(
14
14
  tokens: List[str],
15
15
  mono: bool,
16
16
  ) -> str:
17
- options = "".join(
18
- [
19
- xtra("~download,dryrun,", mono=mono),
20
- "upload",
21
- ]
22
- )
17
+ options = xtra("~download,dryrun", mono=mono)
23
18
 
24
19
  target_options = "".join(
25
20
  [
@@ -52,6 +47,26 @@ def help_ingest(
52
47
  )
53
48
 
54
49
 
50
+ def help_label(
51
+ tokens: List[str],
52
+ mono: bool,
53
+ ) -> str:
54
+ options = "download,offset=<offset>"
55
+
56
+ return show_usage(
57
+ [
58
+ "palisades",
59
+ "label",
60
+ f"[{options}]",
61
+ f"[{datacube_label_options(mono=mono)}]",
62
+ "[.|<query-object-name>]",
63
+ ],
64
+ "label <query-object-name>.",
65
+ mono=mono,
66
+ )
67
+
68
+
55
69
  help_functions = {
56
70
  "ingest": help_ingest,
71
+ "label": help_label,
57
72
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: blue_sandbox
3
- Version: 5.184.1
3
+ Version: 5.214.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,7 +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
+ Requires-Dist: roofai
23
23
  Requires-Dist: boto3
24
24
  Requires-Dist: geojson
25
25
  Requires-Dist: geopandas
@@ -64,4 +64,4 @@ pip install blue-sandbox
64
64
 
65
65
  [![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)
66
66
 
67
- built by 🌀 [`blue_options-4.190.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.184.1`](https://github.com/kamangir/blue-sandbox).
67
+ built by 🌀 [`blue_options-4.192.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.214.1`](https://github.com/kamangir/blue-sandbox).
@@ -38,6 +38,7 @@ blue_sandbox/.abcli/microsoft_building_damage_assessment/tensorboard.sh
38
38
  blue_sandbox/.abcli/microsoft_building_damage_assessment/train.sh
39
39
  blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest/list.sh
40
40
  blue_sandbox/.abcli/palisades/ingest.sh
41
+ blue_sandbox/.abcli/palisades/label.sh
41
42
  blue_sandbox/.abcli/sagesemseg/cache_dataset.sh
42
43
  blue_sandbox/.abcli/sagesemseg/consts.sh
43
44
  blue_sandbox/.abcli/sagesemseg/train.sh
@@ -49,6 +50,8 @@ blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_ingest_list.sh
49
50
  blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_label.sh
50
51
  blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_train.sh
51
52
  blue_sandbox/.abcli/tests/palisades_ingest.sh
53
+ blue_sandbox/.abcli/tests/palisades_label.sh
54
+ blue_sandbox/.abcli/tests/palisades_train.sh
52
55
  blue_sandbox/.abcli/tests/sagesemseg_train.sh
53
56
  blue_sandbox/.abcli/tests/version.sh
54
57
  blue_sandbox/help/__init__.py
@@ -5,7 +5,7 @@ blue_objects
5
5
  blue_geo
6
6
  blueflow
7
7
  blue_plugin
8
- roofAI
8
+ roofai
9
9
  boto3
10
10
  geojson
11
11
  geopandas
@@ -5,7 +5,7 @@ blue_objects
5
5
  blue_geo
6
6
  blueflow
7
7
  blue_plugin
8
- roofAI
8
+ roofai
9
9
 
10
10
  boto3
11
11
  geojson
File without changes
File without changes
File without changes