File size: 726 Bytes
87259b2
 
 
 
 
 
 
 
 
6779db9
87259b2
 
 
 
6779db9
87259b2
 
 
 
 
 
 
 
f6acbc4
87259b2
 
 
 
 
 
 
 
 
6779db9
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
# SAM3 TensorRT Engine

Pre-built TensorRT engine for [SAM3](facebook/sam3) segmentation.

## Specifications

| Setting | Value |
|---------|-------|
| Resolution | 1008x1008 |
| Batch Size | 1-8 |
| Text Max Length | 32 |
| Precision | fp16 |
| TensorRT | 10.14.1.48 |
| Built on | NVIDIA GeForce RTX 4090 |
| Engine Size | 1597.92 MB |

## Usage

The engine is automatically downloaded when using SAM3 with TensorRT enabled.

```python
from ai.models.sam3 import Sam3SegmentationModel

model = Sam3SegmentationModel()
result = await model.segment_text(image, payload=payload, text_prompts="person")
```

## Rebuild

```bash
make run-ai-local -- python -m scripts.tensorrt.sam3 --force
```

Built at: 2026-01-22 12:47:50 UTC