Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
AMBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
AMBS
Commits
f85cc0a9
Commit
f85cc0a9
authored
3 years ago
by
Bing Gong
Browse files
Options
Downloads
Patches
Plain Diff
Update visualize_postprocess_era5_template.sh
parent
31a8dec7
No related branches found
No related tags found
No related merge requests found
Pipeline
#93332
failed
3 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
video_prediction_tools/other_scripts/visualize_postprocess_era5_template.sh
+8
-6
8 additions, 6 deletions
...ools/other_scripts/visualize_postprocess_era5_template.sh
with
8 additions
and
6 deletions
video_prediction_tools/other_scripts/visualize_postprocess_era5_template.sh
+
8
−
6
View file @
f85cc0a9
...
@@ -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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment