Skip to content
Snippets Groups Projects
Commit f85cc0a9 authored by Bing Gong's avatar Bing Gong
Browse files

Update visualize_postprocess_era5_template.sh

parent 31a8dec7
No related branches found
No related tags found
No related merge requests found
Pipeline #93332 failed
...@@ -6,16 +6,18 @@ VIRT_ENV_NAME=venv_test ...@@ -6,16 +6,18 @@ VIRT_ENV_NAME=venv_test
echo "Activating virtual environment..." echo "Activating virtual environment..."
source ../virtual_envs/${VIRT_ENV_NAME}/bin/activate source ../virtual_envs/${VIRT_ENV_NAME}/bin/activate
#the source directory contains the tfrecords #checkpoint_dir: the checkpoint directory from train step
checkpoint_dir=/home/b.gong/model/checkpoint_89 checkpoint_dir=/path/to/checkpoint/directory
results_dir=/home/b.gong/results/ #Results_dir: the output dir to save the results
lquick=1 results_dir=/path/to/results/directory
#Climate_file: the netcdf file point to the climtology, which you can download along with the samples data
climate_file=/home/b.gong/data_era5/T2monthly/climatology_t2m_1991-2020.nc climate_file=/home/b.gong/data_era5/T2monthly/climatology_t2m_1991-2020.nc
#select models #select models
model=convLSTM model=convLSTM
#mkdir ${results_dir}
# The --lquick_evaluation enable you to quick test and generate the results. If you want to test on full large test dataset, please remove the --lquick_evaluation argument
python3 ../main_scripts/main_visualize_postprocess.py --checkpoint ${checkpoint_dir} --mode test \ python3 ../main_scripts/main_visualize_postprocess.py --checkpoint ${checkpoint_dir} --mode test \
--results_dir ${results_dir} --batch_size 4 \ --results_dir ${results_dir} --batch_size 4 \
--num_stochastic_samples 1 \ --num_stochastic_samples 1 \
--lquick_evaluation ${lquick} --climatology_file ${climate_file} --lquick_evaluation --climatology_file ${climate_file}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment