ShannonAI / glyce

Code for NeurIPS 2019 - Glyce: Glyph-vectors for Chinese Character Representations
https://arxiv.org/abs/1901.10125
Apache License 2.0
419 stars 75 forks source link

too many indices for array #26

Open nvliajia opened 4 years ago

nvliajia commented 4 years ago

很奇怪按照您发的代码和数据集,首先读取数据就会报错: IndexError: list index out of range 这个改完之后,数据读取后又会报错: File "/home/zhu/glyce-master/glyce/utils/render.py", line 107, in pad_mask return np.array(padded_mask)[: fontsize + 1, : fontsize + 1] IndexError: too many indices for array

ghost commented 4 years ago

麻烦请问您使用的什么数据以及什么模型呢?