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

Support open_clip #9

Open
escorciav opened this issue Dec 6, 2024 · 1 comment
Open

Support open_clip #9

escorciav opened this issue Dec 6, 2024 · 1 comment

Comments

@escorciav
Copy link

escorciav commented Dec 6, 2024

Hi gents,

I wanna support your SynthClip as part of open_clip. Similar to what we did in #6 .

Could you please take a look at this on your end?
I'm struggling again 😖 . The output of the synthclip_openclip.py is:

Compose(
    Resize(size=224, interpolation=bilinear, max_size=None, antialias=True)
    CenterCrop(size=(224, 224))
    Lambda()
    ToTensor()
    Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
)=
Model setup 🎉
Load & preprocess image...
Fwd-pass model...
Label probs: tensor([[0.0755, 0.3281, 0.5965]], device='cuda:0')

while the expected output should be Label probs: tensor([[0.0048, 0.0878, 0.9075]], device='cuda:0')

cc @HaniItani

@escorciav
Copy link
Author

I'd advise to install open_clip via

cd open_clip
# open_clip setup steps
pip install -e .
# copy the misc stuff in the gist :wink: 

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

1 participant