Update README.md
Browse files
README.md
CHANGED
@@ -35,7 +35,8 @@ tags:
|
|
35 |
|
36 |
## How to Test tinyvvision:
|
37 |
Check out the provided inference script to easily test your own shapes and captions. Feel free to challenge tinyvvision with new, unseen combinations to explore its generalization capability!
|
38 |
-
```
|
|
|
39 |
import torch, re, numpy as np, math
|
40 |
from PIL import Image, ImageDraw, ImageFont
|
41 |
|
@@ -131,6 +132,7 @@ with torch.no_grad():
|
|
131 |
print(" Similarity scores:")
|
132 |
for j, c in enumerate(captions):
|
133 |
print(f" {c}: {sim[j]:.4f}")
|
134 |
-
print(" Best match:", captions[rank], "\n")
|
|
|
135 |
|
136 |
✨ **Enjoy experimenting!** ✨
|
|
|
35 |
|
36 |
## How to Test tinyvvision:
|
37 |
Check out the provided inference script to easily test your own shapes and captions. Feel free to challenge tinyvvision with new, unseen combinations to explore its generalization capability!
|
38 |
+
```python
|
39 |
+
from huggingface_hub import hf_hub_download
|
40 |
import torch, re, numpy as np, math
|
41 |
from PIL import Image, ImageDraw, ImageFont
|
42 |
|
|
|
132 |
print(" Similarity scores:")
|
133 |
for j, c in enumerate(captions):
|
134 |
print(f" {c}: {sim[j]:.4f}")
|
135 |
+
print(" Best match:", captions[rank], "\n")
|
136 |
+
```
|
137 |
|
138 |
✨ **Enjoy experimenting!** ✨
|