Skip to content

Commit

Permalink
fix cls_x and bbox_x is possibly unbound (#10991)
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo authored Sep 25, 2023
1 parent 8a52c99 commit 2751cb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ppocr/modeling/heads/table_master_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ def decode(self, input, feature, src_mask, tgt_mask):
x = layer(x, feature, src_mask, tgt_mask)

# cls head
cls_x = x
for layer in self.cls_layer:
cls_x = layer(x, feature, src_mask, tgt_mask)
cls_x = self.norm(cls_x)

# bbox head
bbox_x = x
for layer in self.bbox_layer:
bbox_x = layer(x, feature, src_mask, tgt_mask)
bbox_x = self.norm(bbox_x)
Expand Down

0 comments on commit 2751cb3

Please sign in to comment.