Practical overview
When it fits
Use Docsegtr when you need code for document-layout instance segmentation and are prepared to work with a Python/PyTorch research stack, including building its framework dependencies.
Who it is for
- Researchers studying document-image segmentation.
- Computer-vision developers who want to train or evaluate a document-layout instance-segmentation model.
- Teams that need to inspect qualitative layout predictions on PubLayNet.
Documented uses
- Segment distinct layout instances in scientific document images.
- Train the model from scratch with the repository’s provided configuration.
- Evaluate a model using pretrained weights.
- Visualize qualitative PubLayNet predictions from a model-generated JSON file.
Requirements & limits
The GitHub repository is public and lists the GPL-3.0 license.
- The project is a model implementation that you run and develop with, not a hosted application.
- Setup requires Conda and source builds of Detectron2 v0.2.1 and AdelaiDet.
- The repository documents distinct evaluation, training and visualization workflows; visualization requires JSON produced by a trained model.
- The documented benchmark path uses PubLayNet, while the model zoo also lists pretrained weights for PRIMA, HJ and Table datasets.
- The repository identifies GPL-3.0 as its license.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Prepare the documented Docsegtr environment
Clone the repository, create its Conda environment and build the two framework dependencies required by its setup instructions.
Before you start
- Git and Conda
- Python environment dependencies listed in the repository’s environment.yml
- Detectron2 v0.2.1 source and AdelaiDet source
Steps
Clone https://github.com/biswassanket/DocSegTr.git and change into the repository directory.
Create and activate the environment with
conda env create -f environment.ymlandconda activate instaseg.Build Detectron2 v0.2.1 from source using the command below in its source directory.
python setup.py build developBuild AdelaiDet from source using the command below from the repository work directory, as described in the README.
python setup.py build develop
Expected outcome
The repository’s Conda environment is prepared and the documented framework build steps are completed.
Guide limitations
- This covers setup only; it does not establish that the environment builds successfully on a particular machine.
- The README does not specify hardware requirements or provide a complete troubleshooting procedure.
Visualize PubLayNet predictions
Use the repository’s documented visualization script with an existing model-generated JSON file.
Before you start
- A JSON file created by a trained model
- The Docsegtr repository environment and PubLayNet visualization data
Steps
Provide the JSON file path to
tools/visualize_publaynet.pywith the--inputoption.Set an output directory with
--output.Set
--dataset publaynet_minivaland the documented--conf-threshold 0.6option.
Expected outcome
The documented script is configured to write qualitative prediction visualizations to the selected output directory.
Guide limitations
- The README does not explain how to create the input JSON in this visualization step.
- The guide reflects the documented PubLayNet workflow and does not establish behavior on other datasets.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 October 2026
- Original website title
- biswassanket/DocSegTr · Official homepage title · retained in its source language

