OV-PRS / README.md
yxyang35's picture
Release the OV-PRS inference checkpoints
e391a82 verified
|
Raw History Blame Contribute Delete
2.57 kB
---
license: cc-by-nc-4.0
base_model:
- facebook/mask2former-swin-base-coco-panoptic
- openai/clip-vit-large-patch14
datasets:
- yxyang35/OV-PanoReferSeg
pipeline_tag: image-segmentation
tags:
- panoramic-vision
- referring-segmentation
- open-vocabulary
---
# OV-PRS
OV-PRS predicts a mask for a language-referred object in a single equirectangular panorama. This repository provides the components trained for the OV-PRS pipeline introduced in *Robot Only Looks Once* (ROLO).
[Paper](https://arxiv.org/abs/2612.04024) 路 [Project page](https://cloudtenacity.github.io/ROLO/) 路 [Code](https://github.com/cloudtenacity/ROLO) 路 [Benchmark](https://huggingface.co/datasets/yxyang35/OV-PanoReferSeg)
## Checkpoints
| Paper stage | Code setting | Files in this release |
| --- | --- | --- |
| Stage 1. Spatial grounding | `TRAIN_STAGE=0` | `stage0/best/m2f_full_state.pt`, `stage0/best/prior_fusion.pt` |
| Stage 2. Dual-path alignment | `TRAIN_STAGE=1` for mapper warm-up, then `TRAIN_STAGE=2` | `stage2/best/mapper.pt`, `stage2/best/visual_projection.pt`, and `stage2/best/clip_vision/` |
| Stage 3. Ranker training | `ov_prs.training.trainv1_stage3` | `ranker.pt` |
Keep the directory layout when downloading the checkpoint. `SHA256SUMS` records the checksums of the seven checkpoint files.
## Use with ROLO
Set up the ROLO environment on a CUDA machine and download the PanoWorld-Hstar checkpoint separately. ROLO also loads the upstream Mask2Former and CLIP bases. See the [installation instructions](https://github.com/cloudtenacity/ROLO#install) for dependency versions and the PanoWorld-Hstar key conversion.
```bash
hf download yxyang35/OV-PRS --local-dir checkpoints/ov-prs
python -m ov_prs.inference_pipeline --input panorama.jpg \
--query "the red fire extinguisher" --checkpoint-dir checkpoints/ov-prs
```
## Attribution and license
The OV-PRS release is distributed under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/). It includes a fine-tuned derivative of Meta's Mask2Former Swin-B COCO panoptic checkpoint and a LoRA adapter for OpenAI's CLIP ViT-L/14. OV-PRS fine-tuning adapts the proposal and alignment components to panoramic referring segmentation and adds the fusion module, mapper, and ranker. For the upstream sources and their attribution, see the [Mask2Former Model Zoo](https://github.com/facebookresearch/Mask2Former/blob/main/MODEL_ZOO.md#license), the [CLIP model card](https://huggingface.co/openai/clip-vit-large-patch14), and the [PanoWorld-Hstar model card](https://huggingface.co/wcccp/PanoWorld_Hstar).