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

KeyError: 'channels' #12

Open
Boom5426 opened this issue Sep 17, 2024 · 1 comment
Open

KeyError: 'channels' #12

Boom5426 opened this issue Sep 17, 2024 · 1 comment

Comments

@Boom5426
Copy link

If I just want to use it in other field, what should I do?

import torch
model = torch.hub.load('insitro/ChannelViT', 'cpjump_cellpaint_channelvit_small_p8_with_hcs_supervised', pretrained=True)
model.eval()
images = torch.randn(5, 3, 224, 224)
out = model(images)

KeyError: 'channels'

@Boom5426
Copy link
Author

What param shoud I input the extra_tokens?

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