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
4138319f
Commit
4138319f
authored
5 years ago
by
Bing Gong
Browse files
Options
Downloads
Patches
Plain Diff
fix bug for readme and bash
parent
450d90a4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
bash/workflow_era5.sh
+11
-5
11 additions, 5 deletions
bash/workflow_era5.sh
bash/workflow_era5_macOS.sh
+13
-6
13 additions, 6 deletions
bash/workflow_era5_macOS.sh
with
25 additions
and
12 deletions
README.md
+
1
−
1
View file @
4138319f
...
...
@@ -13,7 +13,7 @@ This project need to work with [Workflow_parallel_frame_prediction project](http
-
Clone this repo:
```
bash
git clone
-b
master https://gitlab.version.fz-juelich.de/gong1/video_prediction_savp.git
git clone
-b
master https://gitlab.version.fz-juelich.de/gong1/workflow_parallel_frame_prediction
git clone
-b
master https://gitlab.version.fz-juelich.de/gong1/workflow_parallel_frame_prediction
.git
cd
video_prediction_savp
```
-
Install TensorFlow >= 1.9 and dependencies from http://tensorflow.org/
...
...
This diff is collapsed.
Click to expand it.
bash/workflow_era5.sh
+
11
−
5
View file @
4138319f
...
...
@@ -9,6 +9,7 @@ set -e
MODEL
=
$1
TRAIN_MODE
=
$2
EXP_NAME
=
$3
RETRAIN
=
1
#if we continue training the model or using the existing end-to-end model, 1 means continue training, and 1 means use the existing one
DATA_ETL_DIR
=
/p/scratch/deepacf/
${
USER
}
/
DATA_EXTRA_DIR
=
${
DATA_ETL_DIR
}
/extractedData/
${
EXP_NAME
}
DATA_PREPROCESS_DIR
=
${
DATA_ETL_DIR
}
/preprocessedData/
${
EXP_NAME
}
...
...
@@ -69,11 +70,16 @@ fi
if
[
"
$TRAIN_MODE
"
==
"pre_trained"
]
;
then
echo
"step3: Using kth pre_trained model"
elif
[
"
$TRAIN_MODE
"
==
"end_to_end"
]
;
then
echo
"step3: End-to-end training"
if
[
"
$RETRAIN
"
==
1
]
;
then
echo
"Using the existing end-to-end model"
else
echo
"Step3: Training Starts "
python ./scripts/train_v2.py
--input_dir
$DATA_PREPROCESS_TF_DIR
--dataset
era5
\
--model
${
MODEL
}
--model_hparams_dict
hparams/kth/
${
method_dir
}
/model_hparams.json
\
--output_dir
${
TRAIN_OUTPUT_DIR
}
--output_dir
${
TRAIN_OUTPUT_DIR
}
--checkpoint
${
CHECKPOINT_DIR_DIR
}
echo
"Training ends "
fi
else
echo
"TRAIN_MODE is end_to_end or pre_trained"
exit
1
...
...
This diff is collapsed.
Click to expand it.
bash/workflow_era5_macOS.sh
+
13
−
6
View file @
4138319f
...
...
@@ -9,6 +9,8 @@ set -e
MODEL
=
$1
TRAIN_MODE
=
$2
EXP_NAME
=
$3
RETRAIN
=
1
#if we continue training the model or using the existing end-to-end model, 1 means continue training, and 1 means use the existing one
DATA_ETL_DIR
=
/p/scratch/deepacf/
${
USER
}
/
DATA_ETL_DIR
=
/p/scratch/deepacf/
${
USER
}
/
DATA_EXTRA_DIR
=
${
DATA_ETL_DIR
}
/extractedData/
${
EXP_NAME
}
DATA_PREPROCESS_DIR
=
${
DATA_ETL_DIR
}
/preprocessedData/
${
EXP_NAME
}
...
...
@@ -69,11 +71,16 @@ fi
if
[
"
$TRAIN_MODE
"
==
"pre_trained"
]
;
then
echo
"step3: Using kth pre_trained model"
elif
[
"
$TRAIN_MODE
"
==
"end_to_end"
]
;
then
echo
"Step3: Training Starts "
echo
"step3: End-to-end training"
if
[
"
$RETRAIN
"
==
1
]
;
then
echo
"Using the existing end-to-end model"
else
echo
"Training Starts "
python ./scripts/train_v2.py
--input_dir
$DATA_PREPROCESS_TF_DIR
--dataset
era5
\
--model
${
MODEL
}
--model_hparams_dict
hparams/kth/
${
method_dir
}
/model_hparams.json
\
--output_dir
${
TRAIN_OUTPUT_DIR
}
--output_dir
${
TRAIN_OUTPUT_DIR
}
--checkpoint
${
CHECKPOINT_DIR
}
echo
"Training ends "
fi
else
echo
"TRAIN_MODE is end_to_end or pre_trained"
exit
1
...
...
@@ -82,5 +89,5 @@ fi
#########Generate results#################
echo
"Step4: Postprocessing start"
python ./scripts/generate_transfer_learning_finetune.py
--input_dir
${
DATA_PREPROCESS_TF_DIR
}
\
--dataset_hparams
sequence_length
=
20
--checkpoint
${
CHECKPOINT_DIR
_DIR
}
--mode
test
--results_dir
${
RESULTS_OUTPUT_DIR
}
\
--dataset_hparams
sequence_length
=
20
--checkpoint
${
CHECKPOINT_DIR
}
--mode
test
--results_dir
${
RESULTS_OUTPUT_DIR
}
\
--batch_size
4
--dataset
era5
\ No newline at end of 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