Skip to content

Commit

Permalink
add db++
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjingyeye committed Jun 28, 2022
1 parent 0ae4f66 commit a63f441
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ppocr/data/imaug/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def __call__(self, data):
def resize_image_type1(self, img):
resize_h, resize_w = self.image_shape
ori_h, ori_w = img.shape[:2] # (h, w, c)
if self.keep_ratio:
if self.keep_ratio is True:
resize_w = ori_w * resize_h / ori_h
N = math.ceil(resize_w / 32)
resize_w = N * 32
Expand Down
1 change: 0 additions & 1 deletion ppocr/modeling/backbones/det_resnet_vd.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ def __init__(self,
for block in range(len(depth)):
block_list = []
shortcut = False
# is_dcn = self.dcn_stage[block]
for i in range(depth[block]):
basic_block = self.add_sublayer(
'bb_%d_%d' % (block, i),
Expand Down

0 comments on commit a63f441

Please sign in to comment.