Replies: 8 comments
-
试试修改如下: |
Beta Was this translation helpful? Give feedback.
-
Hi @Topdu, i have tried run your implement, but if I change
|
Beta Was this translation helpful? Give feedback.
-
to
|
Beta Was this translation helpful? Give feedback.
-
Many thank for your quick response @Topdu, but I got another error. Seem I missed a config relative the
|
Beta Was this translation helpful? Give feedback.
-
change ‘max_text_length’ in Head config, please: |
Beta Was this translation helpful? Give feedback.
-
Its running perfectly now, thank you a lot |
Beta Was this translation helpful? Give feedback.
-
@Topdu 请问一下,对于中文,为什么只是抽样部分位置,而不是把数据集中没用到的所有字符位置都用0标志出来呢 none_char_index = sample(character_index, |
Beta Was this translation helpful? Give feedback.
-
因为中文字符有6625个,而一个文本图像仅有几个字符,其他未出现的字符太多,也就是0标志太多。为了避免这种情况,从未出现的字符中随机采样若干个。 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
[2023/10/14 15:28:14] ppocr ERROR: When parsing line train/num/4186.jpg 929070
, error happened with msg: Traceback (most recent call last):
File "/home/aistudio/Paddleocr/ppocr/data/simple_dataset.py", line 159, in getitem
outs = transform(data, self.ops)
File "/home/aistudio/Paddleocr/ppocr/data/imaug/init.py", line 56, in transform
data = op(data)
File "/home/aistudio/Paddleocr/ppocr/data/imaug/label_ops.py", line 1625, in call
text, text_node_index, text_node_num = self.encodech(text)
File "/home/aistudio/Paddleocr/ppocr/data/imaug/label_ops.py", line 1724, in encodech
none_char_index = sample(character_index,
File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/random.py", line 482, in sample
raise ValueError("Sample larger than population or is negative")
ValueError: Sample larger than population or is negative
[2023/10/14 15:28:14] ppocr ERROR: When parsing line train/num/4426.jpg 222011
, error happened with msg: Traceback (most recent call last):
File "/home/aistudio/Paddleocr/ppocr/data/simple_dataset.py", line 159, in getitem
outs = transform(data, self.ops)
File "/home/aistudio/Paddleocr/ppocr/data/imaug/init.py", line 56, in transform
data = op(data)
File "/home/aistudio/Paddleocr/ppocr/data/imaug/label_ops.py", line 1625, in call
text, text_node_index, text_node_num = self.encodech(text)
File "/home/aistudio/Paddleocr/ppocr/data/imaug/label_ops.py", line 1724, in encodech
none_char_index = sample(character_index,
File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/random.py", line 482, in sample
raise ValueError("Sample larger than population or is negative")
ValueError: Sample larger than population or is negative
上面的报错信息都是一样的,就不全贴上来了。
配置文件如下:
我看dygraph分支中是支持cppd的,请问具体问题是什么呢
Beta Was this translation helpful? Give feedback.
All reactions