You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
想问一下文本识别模型支持灰度训练吗 我在yml里面改了输入通道 1 img_mode为GRAY backbone输入通道改为1 输入图像为灰度 但是依然报错
, error happened with msg: Traceback (most recent call last):
File "/home/pengyuan/workspace/车牌/PaddleOCR/ppocr/data/simple_dataset.py", line 138, in getitem
outs = transform(data, self.ops)
File "/home/pengyuan/workspace/车牌/PaddleOCR/ppocr/data/imaug/init.py", line 72, in transform
data = op(data)
File "/home/pengyuan/workspace/车牌/PaddleOCR/ppocr/data/imaug/rec_img_aug.py", line 305, in call
norm_img, valid_ratio = resize_norm_img(img, self.image_shape, self.padding)
File "/home/pengyuan/workspace/车牌/PaddleOCR/ppocr/data/imaug/rec_img_aug.py", line 639, in resize_norm_img
padding_im[:, :, 0:resized_w] = resized_image
ValueError: could not broadcast input array from shape (32,96,128) into shape (1,32,96)
Beta Was this translation helpful? Give feedback.
All reactions