Skip to content

Commit 7b6c8f4

Browse files
Copilotanxiangsir
andauthored
Collapse only long code blocks in README (#73)
* Initial plan * Make code blocks collapsible on homepage * Refine: Keep only long code blocks collapsible Co-authored-by: anxiangsir <31175974+anxiangsir@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: anxiangsir <31175974+anxiangsir@users.noreply.github.com>
1 parent f2e88b7 commit 7b6c8f4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ We train the model on a mixed dataset comprising 740K samples from LLaVA-OneVisi
132132
133133
### Using AutoModel (Recommended: transformers==4.57.3)
134134

135+
<details>
136+
<summary>Click to expand code example</summary>
137+
135138
```python
136139
from transformers import AutoModel, AutoImageProcessor
137140
from PIL import Image
@@ -189,8 +192,13 @@ with torch.no_grad():
189192
outputs = model(video, patch_positions=patch_positions)
190193
```
191194

195+
</details>
196+
192197
### Loading from Source Code
193198

199+
<details>
200+
<summary>Click to expand installation and usage code</summary>
201+
194202
```bash
195203
git clone https://github.com/EvolvingLMMs-Lab/OneVision-Encoder.git
196204
cd OneVision-Encoder
@@ -211,6 +219,8 @@ preprocessor = AutoImageProcessor.from_pretrained(
211219
)
212220
```
213221

222+
</details>
223+
214224
### Codec Input
215225

216226
Add codec-style input documentation for temporal saliency-based patch selection.

0 commit comments

Comments
 (0)