pkg download command and patches

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

View File

View File

@ -0,0 +1,60 @@
unitprint/backend/scan/DocRes
=
https://github.com/ZZZHANG-jx/DocRes.git
``` sh *** build ***
mv * ..
```
``` sh *** config ***
ln -sf /pkg/gnu/unitprint/backend/scan/venv
source venv/bin/activate
pip install einops scikit-image opencv-python-headless tqdm
```
``` sh *** upload_weights ***
mkdir -p data/weights
#rsync -avz ~/Downloads/mbd.pkl a:/pkg/gnu/unitprint/backend/scan/DocRes/data/weights
#rsync -avz ~/Downloads/docres.pkl a:/pkg/gnu/unitprint/backend/scan/DocRes/data/weights
```
mkdir -p ~/.config/miopen
export MIOPEN_USER_DB_PATH="/root/.config/miopen"
export MIOPEN_FIND_MODE=3
export HIP_VISIBLE_DEVICES=0
time ../../venv/bin/python inference.py \
--task deshadowing \
--im_path ./IMG_20260905_172410_rec.jpg \
--out_folder ./
time python inference.py \
--task appearance \
--im_path ./output_pipeline/IMG_20260905_172410_rec_deshadowing.png \
--out_folder ./output_pipeline
time python inference.py \
--task deblurring \
--im_path ./output_pipeline/IMG_20260905_172410_rec_deshadowing_appearance.png \
--out_folder ./output_pipeline
time python inference.py \
--task deblurring \
--im_path ../../DocScanner/src/rectified/IMG_20260905_172410_rec.png \
--out_folder ./output_pipeline
time python inference.py \
--task appearance \
--im_path ./output_pipeline/IMG_20260905_172410_rec_deblurring.png \
--out_folder ./output_pipeline
# 3. Appearance
time python inference.py \
--task appearance \
--im_path ./output_pipeline/IMG_20260905_172410_rec_deshadowing.png \
--out_folder ./output_pipeline
time python inference.py \
--task dewarping \
--im_path /pkg/gnu/unitprint/DocScanner/src/distorted/IMG_20260905_172410.jpg \
--out_folder ./output_pipeline

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/
```