summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-03-16 15:42:06 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-03-16 15:42:06 +0800
commit38555617816cfaef6f330e7fc90f3cfa65d692fb (patch)
treee72406e0aad42846b0e65099e97f754bfc48e9e2
parenta68562cbb7f602cc75b3f8f0bf0c285d9e4e4c8b (diff)
Set *_iter as *_iters in default
-rw-r--r--models/model.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/model.py b/models/model.py
index c1cc703..36a4f7f 100644
--- a/models/model.py
+++ b/models/model.py
@@ -54,8 +54,8 @@ class Model:
self.hp = hyperparameter_config
self.curr_iter = self.meta.get('restore_iter', 0)
self.total_iter = self.meta.get('total_iter', 80_000)
- self.curr_iters = self.meta.get('restore_iters', (0, 0, 0))
- self.total_iters = self.meta.get('total_iters', (80000, 80000, 80000))
+ self.curr_iters = self.meta.get('restore_iters', (self.curr_iter,))
+ self.total_iters = self.meta.get('total_iters', (self.total_iter,))
self.is_train: bool = True
self.in_channels: int = 3