Refine readme
Browse files- .gitattributes +1 -1
- README.md +1 -1
- images/example_1.png +3 -0
- images/example_2.png +3 -0
.gitattributes
CHANGED
@@ -33,4 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
-
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -55,7 +55,7 @@ text = f"A chat between a curious user and an artificial intelligence assistant.
|
|
55 |
text_chunks = [tokenizer(chunk).input_ids for chunk in text.split('<image>')]
|
56 |
input_ids = torch.tensor(text_chunks[0] + [-200] + text_chunks[1], dtype=torch.long).unsqueeze(0)
|
57 |
|
58 |
-
# image
|
59 |
image = Image.open('example_2.png')
|
60 |
image_tensor = model.process_images([image], model.config).to(dtype=model.dtype)
|
61 |
|
|
|
55 |
text_chunks = [tokenizer(chunk).input_ids for chunk in text.split('<image>')]
|
56 |
input_ids = torch.tensor(text_chunks[0] + [-200] + text_chunks[1], dtype=torch.long).unsqueeze(0)
|
57 |
|
58 |
+
# image, sample images can be found in https://huggingface.co/BAAI/bunny-phi-2-siglip/tree/main/images
|
59 |
image = Image.open('example_2.png')
|
60 |
image_tensor = model.process_images([image], model.config).to(dtype=model.dtype)
|
61 |
|
images/example_1.png
ADDED
Git LFS Details
|
images/example_2.png
ADDED
Git LFS Details
|