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
3acc0dd5
Commit
3acc0dd5
authored
4 years ago
by
stadtler1
Browse files
Options
Downloads
Patches
Plain Diff
shell script for running mnist on JUWELS.
parent
f169be9a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
video_prediction_savp/HPC_scripts/train_movingmnist.sh
+44
-0
44 additions, 0 deletions
video_prediction_savp/HPC_scripts/train_movingmnist.sh
with
44 additions
and
0 deletions
video_prediction_savp/HPC_scripts/train_movingmnist.sh
0 → 100755
+
44
−
0
View file @
3acc0dd5
#!/bin/bash -x
#SBATCH --account=deepacf
#SBATCH --nodes=1
#SBATCH --ntasks=1
##SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=1
#SBATCH --output=train_era5-out.%j
#SBATCH --error=train_era5-err.%j
#SBATCH --time=00:20:00
#SBATCH --gres=gpu:1
#SBATCH --partition=develgpus
#SBATCH --mail-type=ALL
#SBATCH --mail-user=s.stadtler@fz-juelich.de
##jutil env activate -p cjjsc42
# Name of virtual environment
VIRT_ENV_NAME
=
"vp"
# Loading mouldes
source
../env_setup/modules_train.sh
# Activate virtual environment if needed (and possible)
if
[
-z
${
VIRTUAL_ENV
}
]
;
then
if
[[
-f
../
${
VIRT_ENV_NAME
}
/bin/activate
]]
;
then
echo
"Activating virtual environment..."
source
../
${
VIRT_ENV_NAME
}
/bin/activate
else
echo
"ERROR: Requested virtual environment
${
VIRT_ENV_NAME
}
not found..."
exit
1
fi
fi
# declare directory-variables which will be modified appropriately during Preprocessing (invoked by mpi_split_data_multi_years.py)
source_dir
=
/p/project/deepacf/deeprain/video_prediction_shared_folder/preprocessedData/moving_mnist
destination_dir
=
/p/project/deepacf/deeprain/video_prediction_shared_folder/models/moving_mnist
# for choosing the model, convLSTM,savp, mcnet,vae,convLSTM_Loliver
model
=
convLSTM
model_hparams
=
../hparams/era5/
${
model
}
/model_hpain_movingmnist.shrams.json
# rund training
srun python ../scripts/train_moving_mnist.py
--input_dir
${
source_dir
}
/tfrecords/
--dataset
moving_mnist
--model
${
model
}
--model_hparams_dict
${
model_hparams
}
--output_dir
${
destination_dir
}
/
${
model
}
/
--checkpoint
${
destination_dir
}
/
${
model
}
/
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