blue-sandbox 5.267.1__py3-none-any.whl → 5.288.1__py3-none-any.whl
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.
- blue_sandbox/.abcli/palisades/predict.sh +24 -10
- blue_sandbox/.abcli/tests/palisades_predict.sh +2 -1
- blue_sandbox/__init__.py +1 -1
- blue_sandbox/help/palisades.py +8 -0
- {blue_sandbox-5.267.1.dist-info → blue_sandbox-5.288.1.dist-info}/METADATA +2 -2
- {blue_sandbox-5.267.1.dist-info → blue_sandbox-5.288.1.dist-info}/RECORD +9 -9
- {blue_sandbox-5.267.1.dist-info → blue_sandbox-5.288.1.dist-info}/LICENSE +0 -0
- {blue_sandbox-5.267.1.dist-info → blue_sandbox-5.288.1.dist-info}/WHEEL +0 -0
- {blue_sandbox-5.267.1.dist-info → blue_sandbox-5.288.1.dist-info}/top_level.txt +0 -0
@@ -2,21 +2,30 @@
|
|
2
2
|
|
3
3
|
function blue_sandbox_palisades_predict() {
|
4
4
|
local options=$1
|
5
|
+
local do_ingest=$(abcli_option_int "$options" ingest 0)
|
6
|
+
local do_tag=$(abcli_option_int "$options" tag 1)
|
7
|
+
|
8
|
+
local predict_options=$2
|
5
9
|
$abcli_gpu_status_cache && local device=cuda || local device=cpu
|
6
|
-
local device=$(abcli_option "$
|
7
|
-
local do_dryrun=$(abcli_option_int "$
|
8
|
-
local do_download=$(abcli_option_int "$
|
9
|
-
local do_upload=$(abcli_option_int "$
|
10
|
+
local device=$(abcli_option "$predict_options" device $device)
|
11
|
+
local do_dryrun=$(abcli_option_int "$predict_options" dryrun 0)
|
12
|
+
local do_download=$(abcli_option_int "$predict_options" download $(abcli_not $do_dryrun))
|
13
|
+
local do_upload=$(abcli_option_int "$predict_options" upload $(abcli_not $do_dryrun))
|
14
|
+
local profile=$(abcli_option "$predict_options" profile VALIDATION)
|
10
15
|
|
11
|
-
local model_object_name=$(abcli_clarify_object $
|
16
|
+
local model_object_name=$(abcli_clarify_object $3 ..)
|
12
17
|
[[ "$do_download" == 1 ]] &&
|
13
18
|
abcli_download - $model_object_name
|
14
19
|
|
15
|
-
local datacube_id=$(abcli_clarify_object $
|
20
|
+
local datacube_id=$(abcli_clarify_object $4 .)
|
21
|
+
[[ "$do_ingest" == 1 ]] &&
|
22
|
+
blue_geo_datacube_ingest \
|
23
|
+
scope=rgb \
|
24
|
+
$datacube_id
|
16
25
|
|
17
|
-
local prediction_object_name=$(abcli_clarify_object $
|
26
|
+
local prediction_object_name=$(abcli_clarify_object $5 predict-$datacube_id-$(abcli_string_timestamp_short))
|
18
27
|
|
19
|
-
abcli_log "semseg[$model_object_name].predict($datacube_id) -$device-> $prediction_object_name."
|
28
|
+
abcli_log "semseg[$model_object_name].predict($datacube_id) -$device-@-$profile-> $prediction_object_name."
|
20
29
|
|
21
30
|
abcli_eval dryrun=$do_dryrun \
|
22
31
|
python3 -m blue_sandbox.palisades predict \
|
@@ -24,10 +33,15 @@ function blue_sandbox_palisades_predict() {
|
|
24
33
|
--model_object_name $model_object_name \
|
25
34
|
--datacube_id $datacube_id \
|
26
35
|
--prediction_object_name $prediction_object_name \
|
27
|
-
--profile $
|
28
|
-
"${@:
|
36
|
+
--profile $profile \
|
37
|
+
"${@:6}"
|
29
38
|
local status="$?"
|
30
39
|
|
40
|
+
[[ "$do_tag" == 1 ]] &&
|
41
|
+
abcli_mlflow_tags_set \
|
42
|
+
$prediction_object_name \
|
43
|
+
datacube_id=$datacube_id,model=$model_object_name,profile=$profile
|
44
|
+
|
31
45
|
[[ "$do_upload" == 1 ]] &&
|
32
46
|
abcli_upload - $prediction_object_name
|
33
47
|
|
@@ -4,7 +4,8 @@ function test_blue_sandbox_palisades_predict() {
|
|
4
4
|
local options=$1
|
5
5
|
|
6
6
|
blue_sandbox_palisades_predict \
|
7
|
-
,$options \
|
7
|
+
ingest,$options \
|
8
|
+
- \
|
8
9
|
palisades-dataset-v1-ingest-2025-01-20-520ze1-model-2025-01-20-s5xtkp \
|
9
10
|
datacube-maxar_open_data-WildFires-LosAngeles-Jan-2025-11-031311102213-103001010B9A1B00
|
10
11
|
}
|
blue_sandbox/__init__.py
CHANGED
blue_sandbox/help/palisades.py
CHANGED
@@ -75,10 +75,18 @@ def help_predict(
|
|
75
75
|
tokens: List[str],
|
76
76
|
mono: bool,
|
77
77
|
) -> str:
|
78
|
+
options = "".join(
|
79
|
+
[
|
80
|
+
"ingest",
|
81
|
+
xtra(",~tag", mono=mono),
|
82
|
+
]
|
83
|
+
)
|
84
|
+
|
78
85
|
return show_usage(
|
79
86
|
[
|
80
87
|
"palisades",
|
81
88
|
"predict",
|
89
|
+
f"[{options}]",
|
82
90
|
f"[{predict_options(mono=mono)}]",
|
83
91
|
"[..|<model-object-name>]",
|
84
92
|
"[.|<datacube-id>]",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: blue_sandbox
|
3
|
-
Version: 5.
|
3
|
+
Version: 5.288.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)
|
@@ -64,4 +64,4 @@ pip install blue-sandbox
|
|
64
64
|
|
65
65
|
[](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml) [](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml) [](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml) [](https://pypi.org/project/blue-sandbox/) [](https://pypistats.org/packages/blue-sandbox)
|
66
66
|
|
67
|
-
built by 🌀 [`blue_options-4.192.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.
|
67
|
+
built by 🌀 [`blue_options-4.192.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.288.1`](https://github.com/kamangir/blue-sandbox).
|
@@ -1,5 +1,5 @@
|
|
1
1
|
blue_sandbox/README.py,sha256=wy5C7hkd-_RB9HZAmyt75Uevjpxg6Ok7t9SkET3QKHI,2077
|
2
|
-
blue_sandbox/__init__.py,sha256
|
2
|
+
blue_sandbox/__init__.py,sha256=-GI336xPyhAW_eMBWe-W9MSOgEX9t5xQ5XC3DMUvVU0,323
|
3
3
|
blue_sandbox/__main__.py,sha256=aPRHSpGpk-bDbzhHpfLNsd3y1gGEHpnhoTF-RBweNwc,361
|
4
4
|
blue_sandbox/config.env,sha256=jTPIS1Tpbkj1b28ynqB1atEtkjQfJ04SJC56bLWGnAs,496
|
5
5
|
blue_sandbox/env.py,sha256=gMeUa11uAiiIPPqcXVsELkpxmEbqU0qVoSjwQpH-vw0,747
|
@@ -28,7 +28,7 @@ blue_sandbox/.abcli/microsoft_building_damage_assessment/train.sh,sha256=XyTTFB2
|
|
28
28
|
blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest/list.sh,sha256=9bEjpbwO7Heqd-E2RTM-ck4Q39Eqsv4ged6e0WmxmSs,452
|
29
29
|
blue_sandbox/.abcli/palisades/ingest.sh,sha256=o5SeMhCfYLYMIG-VMjA2mFvACzWVaWV6H8p1khoFBvc,1018
|
30
30
|
blue_sandbox/.abcli/palisades/label.sh,sha256=YyYhbtLt8EQKKWyV1ZYQiS6Ke9W0hTOjQdpgoNUj1sc,709
|
31
|
-
blue_sandbox/.abcli/palisades/predict.sh,sha256=
|
31
|
+
blue_sandbox/.abcli/palisades/predict.sh,sha256=HSlOk0TqEWJ_dM12mxvutQGadAxPrglQGfTz2cucliQ,1828
|
32
32
|
blue_sandbox/.abcli/palisades/train.sh,sha256=MctMmuvzE-HRYWHzt1TWWDeZYrQGByOhyQxG-mDJhN4,1927
|
33
33
|
blue_sandbox/.abcli/sagesemseg/cache_dataset.sh,sha256=oAXW1AGer6tuLBQrdNqz7VyMIQtubMXDeUg4crkQiqM,1335
|
34
34
|
blue_sandbox/.abcli/sagesemseg/consts.sh,sha256=xKVE1hAzVPqz0SkY_0h7Fpgy1OEQOFsf3sQHfLHgnQ4,95
|
@@ -42,14 +42,14 @@ blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_label.sh,sha256=E
|
|
42
42
|
blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_train.sh,sha256=0FlwyR1drn6wAKX9IHU_ma7WTmH1Iv8DoTNsdsyj3PA,533
|
43
43
|
blue_sandbox/.abcli/tests/palisades_ingest.sh,sha256=1f7P-ARKXmsDkRg41hp3_RCp8FEeiWQdibG7lmB3YKE,642
|
44
44
|
blue_sandbox/.abcli/tests/palisades_label.sh,sha256=R1lQmsiVj1T2CumNGjFVmXpjJoGbrmH1xbLxj6KBltM,506
|
45
|
-
blue_sandbox/.abcli/tests/palisades_predict.sh,sha256=
|
45
|
+
blue_sandbox/.abcli/tests/palisades_predict.sh,sha256=Zc45ORsLDieAR_yulH7ykLBIT1Pjcl2uqPkpHFJQX5w,346
|
46
46
|
blue_sandbox/.abcli/tests/palisades_train.sh,sha256=tF3CksanJcktL45dVA2bHLWHg0DZDp5x_lO0jcpH_5Y,255
|
47
47
|
blue_sandbox/.abcli/tests/sagesemseg_train.sh,sha256=Fz2yzxub7x4SgQAr1ctZIbX6YwJR8HHTEgXcou4dORw,799
|
48
48
|
blue_sandbox/.abcli/tests/version.sh,sha256=jF8zoJN1eKE3LfDeRVG9uHEosmEVJX6RtKfdioyeN-o,150
|
49
49
|
blue_sandbox/help/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
50
50
|
blue_sandbox/help/__main__.py,sha256=3Cqp5oISrZCOUApmwoQoCj_0sQgtkiEkm_ob3LFKzRE,234
|
51
51
|
blue_sandbox/help/functions.py,sha256=-AOhYAowmqulhAjrr5B6-AwIDuhZoS0I45flDbt_XRA,541
|
52
|
-
blue_sandbox/help/palisades.py,sha256=
|
52
|
+
blue_sandbox/help/palisades.py,sha256=42EGjOBQjnhrCQsWBDH2KVgX9jsIn4AqGpYcMYr9mgI,3178
|
53
53
|
blue_sandbox/microsoft_building_damage_assessment/README.py,sha256=qqe1wXoc4TjKS4o3gskwNCBuX8PTVduQEAaVHeovsrE,1275
|
54
54
|
blue_sandbox/microsoft_building_damage_assessment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
55
55
|
blue_sandbox/microsoft_building_damage_assessment/__main__.py,sha256=RnyXyJdLmzLzccVmb6VZvD17Dwx-g1wByDugIisoPmQ,1995
|
@@ -57,8 +57,8 @@ blue_sandbox/microsoft_building_damage_assessment/ingest.py,sha256=tBchn4dWPIqAr
|
|
57
57
|
blue_sandbox/microsoft_building_damage_assessment/label.py,sha256=mpRNOsF8ChxSLwOyvwGmXiD7aO2xfivJPZTC5qwnLaw,823
|
58
58
|
blue_sandbox/microsoft_building_damage_assessment/sas_token.py,sha256=t6oTXc6C52CH3tFbQo2H9YUB_7upAsfUwws43Iu9pHI,214
|
59
59
|
blue_sandbox/microsoft_building_damage_assessment/train.py,sha256=8DUt0S4LuKkRIi9XpASOg5skPaM3D2VaSBg5FEn8qog,2778
|
60
|
-
blue_sandbox-5.
|
61
|
-
blue_sandbox-5.
|
62
|
-
blue_sandbox-5.
|
63
|
-
blue_sandbox-5.
|
64
|
-
blue_sandbox-5.
|
60
|
+
blue_sandbox-5.288.1.dist-info/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
|
61
|
+
blue_sandbox-5.288.1.dist-info/METADATA,sha256=0Us6UKOVt2o4RkT_xOIPA6Aq91JSnCFfMXkJ_s6MmuI,3761
|
62
|
+
blue_sandbox-5.288.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
63
|
+
blue_sandbox-5.288.1.dist-info/top_level.txt,sha256=4D9Cb9QUCaqdYAmBiCwvtlaYBtUYVVxv0Sxcr_pzgS8,13
|
64
|
+
blue_sandbox-5.288.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|