google-research / scenic

Scenic: A Jax Library for Computer Vision Research and Beyond

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clip implementation with Hugging Face Datasets

dmrangak opened this issue · comments

HI,
I want to browse an image from Hugging Face Datasets to apply the function of clip.normalize_image( image ) and model.bound_image(image). . please help to to solve this problem

model_name= 'resnet_50'

Hugging Face Datasets

from datasets import load_dataset
imagenette = load_dataset(
'frgfm/imagenette',
'320px',
split='validation',
revision="4d512db"
)

Thank you