Downloads · 30 days
9
13% of all-time downloads
nzIng/unet-manuscripts-segmentation
unet-manuscripts-segmentation is a image segmentation model from nzIng. Use it for the image segmentation task on the model card, and read the license before you ship it in a product. It is set up for keras. The card lists the license as cc-by-4.0.
TensorFlow/Keras U-Net model for line segmentation on medieval manuscript page images.
Downloads · 30 days
9
13% of all-time downloads
All-time downloads
68
Public
Repo size
104 MB
Likes
0
Public
Click a slice to open those files.
.keras104 MB · 100%
From the Hugging Face model README
TensorFlow/Keras U-Net model for line segmentation on medieval manuscript page images.
unet-segmentation.keras: trained U-Net checkpoint.inference.py: simple local inference script.python inference.py --input-path path/to/page.jpg
Outputs are created automatically:
results_json_inference/inference_<image_name>.jsoncrops_line/inference_<image_name>/line_XXXX.pngTo process a folder:
python inference.py --input-path path/to/images_dir
The JSON contains page metadata and detected text lines with:
bboxpolygonscorereading_orderThe model input size is 256 x 256 x 3. The predicted mask is post-processed into line bounding boxes and line crops.