Vishwas1 commited on
Commit
dc50368
·
verified ·
1 Parent(s): 6909664

Create download_weights.py

Browse files
Files changed (1) hide show
  1. download_weights.py +6 -0
download_weights.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import subprocess, os, pathlib
2
+ weights_dir = pathlib.Path("weights") / "DotsOCR"
3
+ weights_dir.mkdir(parents=True, exist_ok=True)
4
+ # Use the repo’s helper to pull the model (supports HF or ModelScope)
5
+ subprocess.check_call(["python3", "tools/download_model.py"])
6
+ print("Weights downloaded into:", weights_dir)