-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathdeploy_example.sh
29 lines (22 loc) · 1.15 KB
/
deploy_example.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
DEPLOY_IMAGE_PATH="./deploy_example/sentinel2/2020/S2A_MSIL2A_20200623T103031_N0214_R108_T32TMT_20200623T142851.zip"
GCHM_DEPLOY_DIR="./deploy_example/predictions/2020"
GCHM_MODEL_DIR="./trained_models/GLOBAL_GEDI_2019_2020"
GCHM_NUM_MODELS="5"
filepath_failed_image_paths="./deploy_example/log_failed.txt"
GCHM_DOWNLOAD_FROM_AWS="False"
GCHM_DEPLOY_SENTINEL2_AWS_DIR="./deploy_example/sentinel2_aws"
# create directories
mkdir -p ${GCHM_DEPLOY_DIR}
mkdir -p ${GCHM_DEPLOY_SENTINEL2_AWS_DIR}
python3 gchm/deploy.py --model_dir=${GCHM_MODEL_DIR} \
--deploy_image_path=${DEPLOY_IMAGE_PATH} \
--deploy_dir=${GCHM_DEPLOY_DIR} \
--deploy_patch_size=512 \
--num_workers_deploy=4 \
--num_models=${GCHM_NUM_MODELS} \
--finetune_strategy="FT_Lm_SRCB" \
--filepath_failed_image_paths=${filepath_failed_image_paths} \
--download_from_aws=${GCHM_DOWNLOAD_FROM_AWS} \
--sentinel2_dir=${sentinel2_dir} \
--remove_image_after_pred="False"