luopeixiang / im2latex

Pytorch implemention of Deep CNN Encoder + LSTM Decoder with Attention for Image to Latex
MIT License
182 stars 49 forks source link

evaluate运行识别问题 #22

Open yangtf-210310 opened 3 years ago

yangtf-210310 commented 3 years ago

运行evaluate.py时,遇到如下报错,请问博主,这个该如何解决呀? raise ZeroDivisionError('Fraction(%s, 0)' % numerator) ZeroDivisionError: Fraction(0, 0)

Wyukang commented 2 years ago

我也遇到同樣的問題,請問解決了嗎?

yangtf-210310 commented 2 years ago

你把beam_size改为1试一下

TwinkleMint commented 2 years ago

@yangtf-210310,正解,我也是同样的问题

Wyukang commented 2 years ago

成功了,謝謝。