How to run a local model on a folder with many images?

#1
by yyyrgere - opened

Hi everyone,

I’m working on a computer vision project and I’d like to run a model locally on a large folder of images (hundreds or thousands).

I’m a bit lost about how to find Hugging Face models that can be easily executed offline (for example, object detection or classification models that can process local files).

Could someone explain:

How to find models that are compatible with local inference (no API call, only local execution)?

The best way to batch-process a folder of images using these models (e.g., with transformers, diffusers, or torch pipelines)?

I’d appreciate any examples or code snippets showing how to loop through a local image folder and apply a model to each file efficiently.

Thanks in advance for your help! 🙏

— Yann

abdul9999 changed discussion status to closed

Sign up or log in to comment