summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-03-01 18:21:30 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-03-01 18:21:30 +0800
commitf0f3d5fbc3306b00c5c59a8baccd3cb4fab77fed (patch)
treeeaab3328ce5a5046118c9730627db5d1fe0cd800 /config.py
parentd8b2ac1f91c28ad2c79caf9bdcd54789f6523732 (diff)
parent7489bf339e13282b06a78659f8b8fe9d505e82dd (diff)
Merge branch 'python3.8' into python3.7
# Conflicts: # utils/configuration.py
Diffstat (limited to 'config.py')
-rw-r--r--config.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/config.py b/config.py
index 77e9b50..23c131b 100644
--- a/config.py
+++ b/config.py
@@ -70,8 +70,6 @@ config = {
},
'optimizer': {
# Global parameters
- # Iteration start to optimize non-disentangling parts
- # 'start_iter': 0,
# Initial learning rate of Adam Optimizer
'lr': 1e-4,
# Coefficients used for computing running averages of
@@ -85,15 +83,15 @@ config = {
# 'amsgrad': False,
# Local parameters (override global ones)
- # 'auto_encoder': {
- # 'weight_decay': 0.001
- # },
+ 'auto_encoder': {
+ 'weight_decay': 0.001
+ },
},
'scheduler': {
- # Period of learning rate decay
- 'step_size': 500,
- # Multiplicative factor of decay
- 'gamma': 1,
+ # Step start to decay
+ 'start_step': 15_000,
+ # Multiplicative factor of decay in the end
+ 'final_gamma': 0.001,
}
},
# Model metadata
@@ -107,6 +105,6 @@ config = {
# Restoration iteration (multiple models, e.g. nm, bg and cl)
'restore_iters': (0, 0, 0),
# Total iteration for training (multiple models)
- 'total_iters': (80_000, 80_000, 80_000),
+ 'total_iters': (25_000, 25_000, 25_000),
},
}