This repository is an extended version of ScribblePrompt, providing an interactive image labeling platform with advanced features like auto-inference, 3D segmentation, and batch processing.
- Interactive annotation with points, bounding boxes, and scribbles.
- Automatic labeling with guide-free inference.
- Support for 3D images (e.g., NIfTI) and videos.
- Batch processing with progress tracking.
- Post-processing mask editor for refinement.
- Model fine-tuning using custom training data.
You can choose between two environment management options: venv (lightweight Python-native) or conda (for multi-language and scientific projects).
git clone https://github.com/YYYhan/Interactive-Automatic-Image-Labeling-Platform-Development.git
cd Interactive-Automatic-Image-Labeling-Platform-Developmentpython -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`pip install -r requirements.txt- Download pretrained models from the Releases section.
- Place them in the
checkpoints/directory:checkpoints/ ├── scribbleprompt_unet.pth ├── scribbleprompt_sam.pth
python app.pyOpen the provided URL in your browser (e.g., http://127.0.0.1:7860).
git clone https://github.com/YYYhan/Interactive-Automatic-Image-Labeling-Platform-Development.git
cd Interactive-Automatic-Image-Labeling-Platform-Developmentconda create --name img_label_env python=3.9
conda activate img_label_envpip install -r requirements.txt- Download pretrained models from the Releases section.
- Place them in the
checkpoints/directory:checkpoints/ ├── scribbleprompt_unet.pth ├── scribbleprompt_sam.pth
python app.pyOpen the provided URL in your browser (e.g., http://127.0.0.1:7860).
- Use bounding boxes, points, or scribbles to annotate images interactively.
- Adjust the mask in the post-processing editor.
- Enable "Auto-Inference Mode" for guide-free labeling.
- Upload NIfTI files or videos.
- Use sliders to select slices or frames for segmentation.
- Upload multiple images, select from the dropdown menu, and track progress using the "Done" button.
Interactive-Automatic-Image-Labeling-Platform-Development/
├── checkpoints/ # Pretrained models directory
├── test_examples/ # Example images and test data
├── app.py # Main application script
├── network.py # Network definitions (e.g., UNet, SAM)
├── predictor.py # Model inference logic
├── requirements.txt # Python dependencies
├── LICENSE # License file
└── README.md # Project documentation
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add feature-name" - Push the branch:
git push origin feature-name
- Open a Pull Request.
This project is licensed under the MIT License.
This project builds on the ScribblePrompt repository, extending its functionality and usability.