pkg download command and patches

This commit is contained in:
2026-09-10 16:59:11 +03:00
parent c6dcbc1ca5
commit b099c3d88b
110 changed files with 1582 additions and 332 deletions

View File

@ -0,0 +1,23 @@
unitprint/backend/scan/DocScanner
=
https://root-kit.ru/UnitPrint/scan-DocScanner.git
``` sh *** build ***
mv * ..
```
``` sh *** config ***
ln -sf /pkg/gnu/unitprint/backend/scan/venv
source venv/bin/activate
pip install pip setuptools wheel
ROCM_SDK_TARGETS="gfx1150" pip install torch torchvision --index-url https://download.pytorch.org/whl/rocm7.14
pip install numpy opencv-python Pillow scikit-image tqdm natsort matplotlib
```
``` sh *** upload_weights ***
source venv/bin/activate
pip install gdown
gdown --folder "https://drive.google.com/drive/folders/1W1_DJU8dfEh6FqDYqFQ7ypR38Z8c5r4D"
mkdir -p model_pretrained
mv DocScanner-L-Model/*.pth model_pretrained/
```