Skip to content

Commit

Permalink
fix_server_v4_det_output (#14472)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunting78 authored Jan 3, 2025
1 parent a28196c commit 4f7476d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppocr/modeling/heads/det_db_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def forward(self, x, targets=None):
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)
Expand Down

0 comments on commit 4f7476d

Please sign in to comment.