Update README.md
Browse files
README.md
CHANGED
|
@@ -7,7 +7,7 @@ Moondream is a small vision language model designed to run efficiently on edge d
|
|
| 7 |
|
| 8 |
[Website](https://moondream.ai/) / [Demo](https://moondream.ai/playground) / [GitHub](https://github.com/vikhyat/moondream)
|
| 9 |
|
| 10 |
-
This repository contains the latest (**2025-
|
| 11 |
|
| 12 |
|
| 13 |
**Usage**
|
|
@@ -18,7 +18,7 @@ from PIL import Image
|
|
| 18 |
|
| 19 |
model = AutoModelForCausalLM.from_pretrained(
|
| 20 |
"vikhyatk/moondream2",
|
| 21 |
-
revision="2025-
|
| 22 |
trust_remote_code=True,
|
| 23 |
# Uncomment to run on GPU.
|
| 24 |
# device_map={"": "cuda"}
|
|
@@ -47,4 +47,15 @@ print(f"Found {len(objects)} face(s)")
|
|
| 47 |
print("\nPointing: 'person'")
|
| 48 |
points = model.point(image, "person")["points"]
|
| 49 |
print(f"Found {len(points)} person(s)")
|
| 50 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
[Website](https://moondream.ai/) / [Demo](https://moondream.ai/playground) / [GitHub](https://github.com/vikhyat/moondream)
|
| 9 |
|
| 10 |
+
This repository contains the latest (**2025-03-27**) release of Moondream, as well as [historical releases](https://huggingface.co/vikhyatk/moondream2/blob/main/versions.txt). The model is updated frequently, so we recommend specifying a revision as shown below if you're using it in a production application.
|
| 11 |
|
| 12 |
|
| 13 |
**Usage**
|
|
|
|
| 18 |
|
| 19 |
model = AutoModelForCausalLM.from_pretrained(
|
| 20 |
"vikhyatk/moondream2",
|
| 21 |
+
revision="2025-03-27",
|
| 22 |
trust_remote_code=True,
|
| 23 |
# Uncomment to run on GPU.
|
| 24 |
# device_map={"": "cuda"}
|
|
|
|
| 47 |
print("\nPointing: 'person'")
|
| 48 |
points = model.point(image, "person")["points"]
|
| 49 |
print(f"Found {len(points)} person(s)")
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
**Changelog**
|
| 53 |
+
|
| 54 |
+
**2025-03-27**
|
| 55 |
+
|
| 56 |
+
1. Added support for long-form captioning.
|
| 57 |
+
2. Improved counting accuracy (e.g. CountBenchQA increased from 80 to 86.4)
|
| 58 |
+
3. Improved text understanding (e.g. OCRBench increased from 58.3 to 61.2)
|
| 59 |
+
4. Improved object detection, especially for small objects
|
| 60 |
+
5. Fixed token streaming bug affecting multi-byte unicode characters
|
| 61 |
+
6. gpt-fast style `compile()` now supported in HF Transformers implementation
|