Update modeling_GOT.py
Browse files- modeling_GOT.py +1 -4
modeling_GOT.py
CHANGED
@@ -588,9 +588,6 @@ class GOTQwenForCausalLM(Qwen2ForCausalLM):
|
|
588 |
|
589 |
if '**kern' in outputs:
|
590 |
import verovio
|
591 |
-
from cairosvg import svg2png
|
592 |
-
import cv2
|
593 |
-
import numpy as np
|
594 |
tk = verovio.toolkit()
|
595 |
tk.loadData(outputs)
|
596 |
tk.setOptions({"pageWidth": 2100, "footer": 'none',
|
@@ -737,7 +734,7 @@ class GOTQwenForCausalLM(Qwen2ForCausalLM):
|
|
737 |
if multi_page:
|
738 |
qs = 'OCR with format across multi pages: '
|
739 |
# only for png files
|
740 |
-
import glob
|
741 |
# from natsort import natsorted
|
742 |
# patches = glob.glob(image_file + '/*png')
|
743 |
patches = image_file
|
|
|
588 |
|
589 |
if '**kern' in outputs:
|
590 |
import verovio
|
|
|
|
|
|
|
591 |
tk = verovio.toolkit()
|
592 |
tk.loadData(outputs)
|
593 |
tk.setOptions({"pageWidth": 2100, "footer": 'none',
|
|
|
734 |
if multi_page:
|
735 |
qs = 'OCR with format across multi pages: '
|
736 |
# only for png files
|
737 |
+
# import glob
|
738 |
# from natsort import natsorted
|
739 |
# patches = glob.glob(image_file + '/*png')
|
740 |
patches = image_file
|