Update README.md
Browse files
README.md
CHANGED
@@ -3698,6 +3698,14 @@ The `GME` models support three types of input: **text**, **image**, and **image-
|
|
3698 |
|
3699 |
```python
|
3700 |
from transformers import AutoModel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3701 |
|
3702 |
t2i_prompt = 'Find an image that matches the given text.'
|
3703 |
texts = [
|
|
|
3698 |
|
3699 |
```python
|
3700 |
from transformers import AutoModel
|
3701 |
+
from transformers.utils.versions import require_version
|
3702 |
+
|
3703 |
+
|
3704 |
+
require_version(
|
3705 |
+
"transformers<4.52.0",
|
3706 |
+
"GmeQwen2VL has some issues with transformers>=4.52.0, please downgrade: pip install transformers==4.51.3"
|
3707 |
+
)
|
3708 |
+
|
3709 |
|
3710 |
t2i_prompt = 'Find an image that matches the given text.'
|
3711 |
texts = [
|