File size: 1,533 Bytes
e4ef8a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
license: cc-by-nc-4.0
tags:
- autonomous-driving
- depth-estimation
- segmentation
- motion-prediction
- self-supervised
library_name: pytorch
---

# LFG

LFG checkpoint that jointly predicts **dense depth / 3D points, camera pose, per-point confidence, object segmentation (7 classes), and per-pixel motion** from monocular driving video — no human labels.

LFG: Self-Supervised 4D Learning from In-the-Wild Driving Videos — trained on 58M+ unlabeled dashcam driving frames with frozen teachers generating pseudo ground truth on the fly. See the [project page](https://lfg-ai.github.io/) and the [inference repo](https://github.com/Applied-Intuition-Open-Source/LFG).

## Model details

| | |
|---|---|
| Architecture | LFG (autoregressive transformer with future-frame prediction) |
| Parameters | 1.22B (fp32) |
| Input | monocular video, 3 history frames |
| Encoder | DINOv2 |
| Heads | point/depth, camera/pose, confidence, segmentation (7 classes), motion |

## Files

- `lfg_seg_motion_1.3b.pt` — minimal inference checkpoint: `model_state_dict` (inference weights only), `config` (architecture settings), `global_step`. Loads with `torch.load(..., weights_only=True)`.

## Usage

Use the [official inference repo](https://github.com/Applied-Intuition-Open-Source/LFG):

```bash
python infer.py <video-or-image-dir> \
    --checkpoint lfg_seg_motion_1.3b.pt \
    --output-dir outputs/ \
    --save-visualizations
```

Outputs per window: `points`, `local_points`, `camera_poses`, `conf`, `segmentation`, `motion`.