fix_server_v4_det_output (#14472)

pull/14273/head
Sunflower7788 2025-01-03 11:59:22 +08:00 committed by GitHub
parent a28196c002
commit 4f7476d7b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class PFHeadLocal(DBHead):
cbn_maps = self.cbn_layer(self.up_conv(f), shrink_maps, None)
cbn_maps = F.sigmoid(cbn_maps)
if not self.training:
return {"maps": 0.5 * (base_maps + cbn_maps), "cbn_maps": cbn_maps}
return {"maps": 0.5 * (base_maps + cbn_maps)}
threshold_maps = self.thresh(x)
binary_maps = self.step_function(shrink_maps, threshold_maps)