lingbot-map-explorer / usage_content.py
arihant3704's picture
Upload usage_content.py
8bce96b verified
TAB_USAGE = """## 🚀 Quick Start
### Installation
```bash
conda create -n lingbot-map python=3.10 -y
conda activate lingbot-map
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128
pip install -e .
pip install flashinfer-python -i https://flashinfer.ai/whl/cu128/torch2.9/
```
### Inference from Images
```bash
python demo.py --model_path lingbot-map.pt \\
--image_folder /path/to/images/
```
### Inference from Video
```bash
python demo.py --model_path lingbot-map.pt \\
--video_path video.mp4 --fps 10
```
### Long Sequences (10,000+ frames)
```bash
python demo.py --model_path lingbot-map.pt \\
--image_folder /path/to/images/ \\
--keyframe_interval 6
```
### Windowed Mode (>3000 frames)
```bash
python demo.py --model_path lingbot-map.pt \\
--video_path video.mp4 --fps 10 \\
--mode windowed --window_size 64
```
### Without FlashInfer (CPU fallback)
```bash
python demo.py --model_path lingbot-map.pt \\
--image_folder /path/to/images/ --use_sdpa
```
### Model Checkpoints
| Name | Size | Description |
|---|---|---|
| `lingbot-map.pt` | 4.63 GB | Base model |
| `lingbot-map-long.pt` | 4.63 GB | Long-sequence variant |
| `lingbot-map-stage1.pt` | 4.76 GB | Stage 1 training checkpoint |
All available at [robbyant/lingbot-map](https://huggingface.co/robbyant/lingbot-map)
"""