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

Handle model with tensor that has channel first #66

Closed
AdrienGauffriau opened this issue Oct 22, 2021 · 2 comments
Closed

Handle model with tensor that has channel first #66

AdrienGauffriau opened this issue Oct 22, 2021 · 2 comments

Comments

@AdrienGauffriau
Copy link

The explaination does not work for models that ask for the channel as the first dimension of the input tensor (channel, height, width.
When such a model is provided, the output shape of the explanation is (channel x height) instead of (height x width)

@lucashervier
Copy link
Collaborator

Hi Adrien!

Would a wrapper such as the one used in this example fix it ?

@lucashervier
Copy link
Collaborator

With the PR #132,we introduce a wrapper in pytorch.py file. You can take inspiration of this wrapper to handle channel first models

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