dots.ocr-1.5 dots.ocr-1.5-svg released
This commit is contained in:
@@ -5,11 +5,11 @@ import os
|
||||
if __name__ == '__main__':
|
||||
parser = ArgumentParser()
|
||||
parser.add_argument('--type', '-t', type=str, default="huggingface")
|
||||
parser.add_argument('--name', '-n', type=str, default="rednote-hilab/dots.ocr")
|
||||
parser.add_argument('--name', '-n', type=str, default="rednote-hilab/dots.ocr-1.5")
|
||||
args = parser.parse_args()
|
||||
script_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
print(f"Attention: The model save dir dots.ocr should be replace by a name without `.` like DotsOCR, util we merge our code to transformers.")
|
||||
model_dir = os.path.join(script_dir, "weights/DotsOCR")
|
||||
model_dir = os.path.join(script_dir, "weights/DotsOCR_1_5")
|
||||
if not os.path.exists(model_dir):
|
||||
os.makedirs(model_dir)
|
||||
if args.type == "huggingface":
|
||||
|
||||
Reference in New Issue
Block a user