google-research / big_vision

Official codebase used to develop Vision Transformer, SigLIP, MLP-Mixer, LiT and more.
Apache License 2.0
2.04k stars 140 forks source link

Update SigLIP_demo.ipynb #81

Closed ahmadmustafaanis closed 4 months ago

ahmadmustafaanis commented 7 months ago

For a single entry, the tuple is not created. Using a list we can run the demo on a single image/text. i.e

images = [PIL.Image.open(fname) for fname in (
 'my_image.png'
)]

Wont work

images = [PIL.Image.open(fname) for fname in [
 'my_image.png'
]]

works