summaryrefslogtreecommitdiff
path: root/models/model.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-02-26 20:21:17 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-02-26 20:21:17 +0800
commit5f75d7ef65f6dcd0e72df320c58b6bd141937b5f (patch)
tree5649ab28c25dd34d35da815cdbc0e146569373d6 /models/model.py
parent850c525772969823eef6083e8018ac43a1e87e4c (diff)
parent9001f7e13d8985b220bd218d8de716bc586dbdcf (diff)
Merge branch 'master' into data_parallel
# Conflicts: # models/model.py
Diffstat (limited to 'models/model.py')
-rw-r--r--models/model.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/model.py b/models/model.py
index a69a9b0..a086e7b 100644
--- a/models/model.py
+++ b/models/model.py
@@ -316,7 +316,8 @@ class Model:
)
# Init models
- model_hp = self.hp.get('model', {})
+ model_hp: dict = self.hp.get('model', {}).copy()
+ model_hp.pop('triplet_margins', None)
self.rgb_pn = RGBPartNet(self.in_channels, self.in_size, **model_hp)
# Try to accelerate computation using CUDA or others
self.rgb_pn = nn.DataParallel(self.rgb_pn)