[MathMatch] 수식 OCR 학습 시 오류 해결

yoonene·2022년 8월 19일
0

Math Match

목록 보기
1/2
  • EinopsError: Error while processing rearrange-reduction pattern "b n (h d) -> b h n d".
    timm 버전 문제였다.
    timm==0.5.4로 재설치하면 해결된다.
  • RuntimeError: The size of tensor a (121) must match the size of tensor b (88) at non-singleton dimension 1
    새로운 데이터를 입력할 때 발생하는 오류
    기존의 정제된 이미지 데이터와 다르게 크기가 다양하기 때문에 padding을 해줘야 한다.
    config에서 pad=true로 하는 방법도 있지만 미리 전처리 과정에서 padding하는 것이 더 속도가 빠르다.
profile
NLP Researcher / Information Retrieval / Search

0개의 댓글