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

Feature Request: pytorch and tensorflow #1

Open
jjennings955 opened this issue Apr 18, 2020 · 1 comment
Open

Feature Request: pytorch and tensorflow #1

jjennings955 opened this issue Apr 18, 2020 · 1 comment

Comments

@jjennings955
Copy link

Nice library, I've rewritten this same function so many times, it would be great if it was standardized for all the common libs (maybe even submit a pr to matplotlib?)

Specifically it would be nice if this library transparently handed torch and tensorflow tensors and different dimension layouts (NHWC) vs (NCHW)

To use matplotlib with pytorch you always have to do something like tensor.cpu().detach().numpy().permute(0, 2, 3, 1)
before any plotting.

It makes code very ugly.

Also, in my experience using subplots is super slow and it's much better to lay things out yourself in a numpy array (haven't benchmarked your version though).

pytorch has its own version of this but it would be nice to have a common clean API I could use everywhere.

I can maybe submit a pr for this if you're interested.

@jjennings955
Copy link
Author

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