summaryrefslogtreecommitdiff
path: root/models/model.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-02-26 20:23:26 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-02-26 20:23:57 +0800
commit8745ffeb51b29cfe7d3eee2d845910086ba8b046 (patch)
tree4eccf715f0a17c0d54c75d38b54e1d682dc26b99 /models/model.py
parent9b1828be1db7fd1be8731a7cec66162de9145285 (diff)
parent5f75d7ef65f6dcd0e72df320c58b6bd141937b5f (diff)
Merge branch 'data_parallel' into data_parallel_py3.8
# Conflicts: # models/part_net.py # models/rgb_part_net.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 e2de476..2c72270 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)