karthik87s's picture
Add multimodal demo examples (CC0 / public domain media with descriptions)
67ac6d9 verified
|
Raw History Blame Contribute Delete
4.1 kB

EmbeddingGemma-2 demo examples

Fourteen small media files with a matching description each, for the multimodal search demo in torq-examples: six subjects with a photo and a sound each (cat, dog, bird, piano, train, police car), plus two short videos. Every file is scored against every description; each one ranks its own description first, by a clear margin over the descriptions of the other subjects (checked with the 8-bit build on the SL2619 NPU).

examples.json lists each file, its kind (image, audio or video) and its description. With the model downloaded by python setup_demos.py EmbeddingGemma-2, run them with:

cd EmbeddingGemma-2
python src/infer.py --examples           # every example in one session

With the bf16 or 8-bit build, the NPU cannot map the vision and audio encoders together; run --examples visual and --examples audio as two sessions instead.

Files and credits

All files are CC0 or public domain. Sounds were cut to 5 seconds and converted to 16 kHz mono WAV; photos were resized to at most 1024 pixels. The sounds come from FSD50K (Fonseca et al., 2022), which collects them from Freesound.

File Description Original Author License
cat_tabby.jpg a fluffy tabby and white cat with bright blue eyes Tabby cat with blue eyes-3336579.jpg AdinaVoicu CC0
cat_meowing.wav a cat meowing loudly cat meowing nekoninja CC0 1.0 (FSD50K)
dog_labrador.jpg a happy yellow Labrador retriever with its tongue out Labrador Retriever (1210559).jpg chiemsee2016 (Pixabay) CC0
dog_barking.wav a dog barking and growling barking dog 2 roman_cgr CC0 1.0 (FSD50K)
bird_sparrow.jpg a small brown sparrow perched on a tree branch Bird on branch (Unsplash).jpg Pritiranjan Maharana pritiranjan101 CC0
birds_chirping.wav birds chirping and calling in the trees Bird Calls.mp3 Yin_Yang_Jake007 CC0 1.0 (FSD50K)
piano_keyboard.jpg the wooden keyboard of an antique piano Grand Piano MET DP300910.jpg The Metropolitan Museum of Art CC0
piano_arpeggio.wav a soft, relaxing piano melody Arpegio A-menor 90 BPM.wav Spol CC0 1.0 (FSD50K)
train_locomotive.jpg a yellow and green locomotive pulling passenger cars in the mountains Passenger Train with WPYR Diesel locomotive no 100 at Carcross station, Yucon, Canada, 2011.jpg Tuskönils CC0
train_passing.wav the rumble of a train passing by on the tracks TRAIN PASSING SLOWLY CAZAPROD CC0 1.0 (FSD50K)
police_car.jpg a white police car with blue and yellow stripes and a light bar Police car Vinnytsia 2016 G1.jpg George Chernilevsky Public domain
police_siren.wav a police car siren wailing Police Car Siren in Traffic hyderpotter CC0 1.0 (FSD50K)
waterfall.ogv a tall waterfall pouring from a rocky cliff into a turquoise pool Video of the waterfall of Seythenex.ogv Tangopaso Public domain
sea_turtle.ogv a sea turtle swimming underwater in a blue aquarium Sealife-Munich-Turtle.ogv MartinThoma CC0