File size: 410 Bytes
ff2a8fa
712254c
ff2a8fa
 
 
712254c
ff2a8fa
 
 
712254c
ff2a8fa
1
2
3
4
5
6
7
8
9
10
11
12
# Usage

```python
model = AutoModelForCausalLM.from_pretrained("ragavsachdeva/magiv3", torch_dtype=torch.float16, trust_remote_code=True).cuda().eval()
processor = AutoProcessor.from_pretrained("ragavsachdeva/magiv3", trust_remote_code=True)

model.predict_detections_and_associations(images, processor)
model.predict_ocr(images, processor)
model.predict_character_grounding(images, captions, processor)

```