A self-hosted image annotation and fine-tuning workbench
Draw boxes, export datasets, fine-tune Florence-2 or YOLO, and validate the result, all on your own machine.
Quick start · What it does · Who it's for · Roadmap · 中文
> **Technical-validation demo**, run from source. Developed and verified on macOS (Apple Silicon); Linux and NVIDIA GPUs use the same code paths but are not systematically tested. Training needs the weights from upstream [OmniParser](https://github.com/microsoft/OmniParser) as base models; annotation and export do not.
Opening the "垂直图标训练" project, drawing a box around a browser icon on a phone screenshot, saving into the next image, then choosing YOLO on the export page. A real local project: 50 screenshots, 125 boxes.
## Sound familiar? - You want an icon detector for your own product UI, but the labeling tool, export script, training script and validation script live in four places, and every step means fixing paths. - Hosted labeling platforms want your screenshots uploaded. Internal-system screenshots cannot leave the company, so you glue tools together yourself. - You labeled a batch, trained, and the result is poor. Data problem or parameter problem? There is no way to put it next to the base model and compare. - You use OmniParser as a GUI agent, it misses the icons in your vertical app, and you want to fine-tune with a few hundred samples but cannot find a tool that fits. Zhubi puts the whole chain into one web page that runs on your machine: create a project, draw boxes, export five formats in one click, fine-tune Florence-2 with LoRA or train YOLO, and upload one image to compare before and after. ## What it does ### 1. Create a project, upload images A project is one set of categories and one batch of images. After a bulk upload, each card shows image count, labeled count and category count.
Four local projects; "垂直图标训练" has all 50 images labeled, "yolo" has 200 images and 3 classes.
### 2. Draw boxes, drive with the keyboard Drag a rectangle on the canvas; keys 1 to 9 switch category, S saves, N goes to the next image, D deletes, Ctrl+Z undoes. The right panel lists every box on the current image with its coordinates; grid, labels and snapping can be toggled; progress sits in the top left.
A 1440×3200 phone screenshot with three "ViaBrower" boxes over the browser icon; on the right, the box list, the category panel and project stats.
### 3. Export five formats in one click The same annotations export as COCO, YOLO, Pascal VOC, CSV, or the format Florence-2 fine-tuning expects. Train, validation and test splits are made automatically; augmentation and automatic negative samples can be added before export.
With "垂直图标训练" selected: 50 images, 125 boxes, class distribution, and YOLO chosen below.
### 4. Fine-tune locally Pick YOLO or Florence-2, then one of three presets (quick check, standard, production) or set epochs, learning rate, LoRA rank and augmentation yourself. Training runs in the background while the page shows loss, epoch and logs live; you can stop and resume.
Training configuration: YOLO or Florence-2, three presets with epochs, augmentation level and estimated time.
### 5. Every run is kept, ready to resume or deploy Finished models are listed per project and time, each card recording sample count, final loss, learning rate, LoRA parameters and data split. Continue training from any of them, or deploy one into OmniParser's weights directory with one click.
Six Florence-2 fine-tuning runs under "垂直图标训练"; the loss under each LoRA rank and augmentation strategy is visible at a glance, and each card can resume or deploy.
### 6. Upload one image, see before and after The validation page runs the base model and the fine-tuned model on a new screenshot side by side. The OmniParser comparison page runs the full OmniParser pipeline (YOLO detection plus Florence-2 captions) with both sets of weights. ## Who it's for - **People running OmniParser or a similar GUI agent** whose base model misses the icons in their product and who need to fine-tune with extra samples. - **Test and RPA teams detecting UI elements** whose screenshots cannot go to a third-party platform. - **Independent developers with small vision projects**: a few hundred images, a few classes, and no appetite for an MLOps stack. - **Anyone who wants to see what LoRA fine-tuning actually changed**: every run's parameters and loss stay on a card for comparison. ## Quick start You need Python 3.10+ and a modern browser. ```bash git clone https://github.com/icesword0760/zhubi.git cd zhubi pip install -r requirements.txt python app.py ``` Open