BAAI
/

BoyaWu10 commited on
Commit
dd11e1c
1 Parent(s): e38065d

Refine readme

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -1
  2. README.md +1 -1
  3. images/example_1.png +3 -0
  4. 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
- comparison.png 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
+ *.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

  • SHA256: 58c5c9898c5359bcf53797711e3d954c8ef529e141cb012ffc433376933839e7
  • Pointer size: 131 Bytes
  • Size of remote file: 245 kB
images/example_2.png ADDED

Git LFS Details

  • SHA256: d25e79a65b225aedffdc864cfa037f2384d146e4e87a101af25ebe930660eee1
  • Pointer size: 130 Bytes
  • Size of remote file: 74.6 kB