summaryrefslogtreecommitdiff
path: root/models/model.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-02-26 20:17:19 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-02-26 20:17:19 +0800
commit66d7b0e6f80aa6feb5e4e0af9af7ba78db641f9e (patch)
tree95a9f53ccb145e765fe95a41fabdf45f00b79665 /models/model.py
parent1014543e8b2cecbe6fdf1a0135bbefccee9c0d41 (diff)
parent9001f7e13d8985b220bd218d8de716bc586dbdcf (diff)
Merge branch 'master' into python3.8
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 a42a5c6..11ec2f6 100644
--- a/models/model.py
+++ b/models/model.py
@@ -314,7 +314,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 = self.rgb_pn.to(self.device)