diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-02-26 20:09:22 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-02-26 20:09:22 +0800 |
commit | 390bac976ff52fe0c3cf6bea820c22084613ee94 (patch) | |
tree | 9c6582bca82ed1c2c78a9461e77f16b53826732e /models/model.py | |
parent | c52fdc2748e272a5195303299a9739291be32281 (diff) |
Fix predict function
Diffstat (limited to 'models/model.py')
-rw-r--r-- | models/model.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/model.py b/models/model.py index 5899fc0..90d48e0 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) |