RaushanTurganbay HF staff commited on
Commit
b873c69
1 Parent(s): 2867bf4

added colab

Browse files
Files changed (1) hide show
  1. README.md +4 -1
README.md CHANGED
@@ -16,6 +16,8 @@ arxiv: 2408.03326
16
 
17
  ![image/png](llava_onevision_arch.png)
18
 
 
 
19
  Below is the model card of 72B LLaVA-Onevision model which is copied from the original LLaVA-Onevision model card that you can find [here](https://huggingface.co/lmms-lab/llava-onevision-qwen2-72b-ov).
20
 
21
 
@@ -53,12 +55,13 @@ The model supports multi-image and multi-prompt generation. Meaning that you can
53
  Below we used [`"llava-hf/llava-onevision-qwen2-72b-ov-hf"`](https://huggingface.co/llava-hf/llava-onevision-qwen2-72b-ov-hf) checkpoint.
54
 
55
  ```python
56
- from transformers import pipeline
57
  from PIL import Image
58
  import requests
59
 
60
  model_id = "llava-hf/llava-onevision-qwen2-72b-ov-hf"
61
  pipe = pipeline("image-to-text", model=model_id)
 
62
  url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/ai2d-demo.jpg"
63
  image = Image.open(requests.get(url, stream=True).raw)
64
 
 
16
 
17
  ![image/png](llava_onevision_arch.png)
18
 
19
+ Check out also the Google Colab demo to run Llava on a free-tier Google Colab instance: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1-4AtYjR8UMtCALV0AswU1kiNkWCLTALT?usp=sharing)
20
+
21
  Below is the model card of 72B LLaVA-Onevision model which is copied from the original LLaVA-Onevision model card that you can find [here](https://huggingface.co/lmms-lab/llava-onevision-qwen2-72b-ov).
22
 
23
 
 
55
  Below we used [`"llava-hf/llava-onevision-qwen2-72b-ov-hf"`](https://huggingface.co/llava-hf/llava-onevision-qwen2-72b-ov-hf) checkpoint.
56
 
57
  ```python
58
+ from transformers import pipeline, AutoProcessor
59
  from PIL import Image
60
  import requests
61
 
62
  model_id = "llava-hf/llava-onevision-qwen2-72b-ov-hf"
63
  pipe = pipeline("image-to-text", model=model_id)
64
+ processor = AutoProcessor.from_pretrained(model_id)
65
  url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/ai2d-demo.jpg"
66
  image = Image.open(requests.get(url, stream=True).raw)
67