Trocr-large-handwritten(https://arxiv.org/abs/2109.10282).
(https://huggingface.co/microsoft/trocr-large-handwritten)
RTX4090
pip install transformers
pip install pandas
pip install Pillow
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113
pip install scikit-learn
pip install datasets
pip install evaluate
pip install tqdm
pip install imgaug
pip install matplotlib
pip install imageio
pip install jiwer
pip install imagecorruptions
-νλ ¨ λ°μ΄ν° κ²½λ‘./train
-ν
μ€νΈ λ°μ΄ν° κ²½λ‘./test
-νμ΅ μ½λ : ./train1~4.py
-ν
μ€νΈ μ½λ : ./infer1~4.py
-μμλΈ μ½λ : ./ESNB.py
-train1~4κΉμ§μ νμ΅ νμΌμ μ€ν
μ€ν μ νμΌμ΄ ./first ./second ./three ./four ν΄λκ° μμ±λκ³ κ·Έ μμ μλ§μ checkpoint-xxxx ν΄λκ° μμ±
κ·Έ ν infer1~4κΉμ§μ λͺ¨λ νμΌμ μ€ν
μ€ν μ csvνμΌμ΄ μ΄ 6κ° λμ€λλ° μ΄λ ESNBνμΌμ μ€ννμ¬ μ΅μ’
submission_esnb_sota_FINAL.csvμ μμ±
(first zipν΄λλ κ΅¬κΈ λλΌμ΄λΈλ₯Ό ν΅ν΄ λ§ν¬λ₯Ό λ°μΌμλ©΄ λ©λλ€.)
firstμ μμΆμ νμ΄ first,second,three,four ν΄λλ₯Ό λ€μ΄λ°κ² λλ©΄ μλ νμΌ κ΅¬μ‘°μ λ§κ² λ€μ΄λ°μ νμΌμ λ£κ³
νμ΅μ© trainκ³Ό testλ₯Ό μλ ν΄λ ꡬ쑰μ λ§κ² λ£μ΄μ€λλ€.
infer1~4κΉμ§μ λͺ¨λ νμΌμ μ€ν 6κ°μ csvνμΌμ΄ λμ€λ©΄ ESNB νμΌμ μ€ννμ¬ μ΅μ’
submission_esnb_sota_FINAL.csvμ μμ±
βββ git
β βββ train1.py
β βββ train2.py
β βββ train3.py
β βββ train4.py
β βββ infer1.py
β βββ infer1_2.py
β βββ infer2.py
β βββ infer3.py
β βββ infer3_2.py
β βββ infer4.py
β βββ ESNB.py
β βββ train
β βββ test
β βββ first
β βββ second
β βββ three
β βββ four