Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero Shot Classification on my own Dataset #23

Open
deadpipe opened this issue Dec 21, 2023 · 2 comments
Open

Zero Shot Classification on my own Dataset #23

deadpipe opened this issue Dec 21, 2023 · 2 comments

Comments

@deadpipe
Copy link

Hello,

I am trying to fine tune CLIP on my own dataset for Zero Shot Classification.
My question is - is there a way to load a CSV containing all the file paths and their corresponding labels? OR a Folder which contains all the images in subfolders?

@gabrielilharco
Copy link
Contributor

Hi @deadpipe. The easiest way to do this in this codebase is the last option you mentioned. You'll need to write a dataset class for this, see https://github.com/mlfoundations/wise-ft/blob/master/src/datasets/imagenet.py#L8 for an example

@deadpipe
Copy link
Author

deadpipe commented Dec 24, 2023

So i have to create a new .py file which consists of my class or i should write another class within that file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants