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

How do I export vector graphics? #33

Open
vanewu opened this issue Jan 16, 2020 · 7 comments
Open

How do I export vector graphics? #33

vanewu opened this issue Jan 16, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@vanewu
Copy link

vanewu commented Jan 16, 2020

After using bertviz to visualize attention in a notebook, how to export vector pictures that meet the requirements of the paper?

@jessevig
Copy link
Owner

This feature isn't yet available unfortunately, but I hope to add it at some point. Are you using the attention-head view?

@jessevig jessevig added the enhancement New feature or request label Mar 28, 2020
@tom68-ll
Copy link

tom68-ll commented Jun 3, 2021

Your work is excellent and I would like to thank you for it. Can I save the image I drew with head_view?

@jessevig
Copy link
Owner

jessevig commented Jun 3, 2021

Hi @tom68-ll thanks for your kind words, and for the question. Unfortunately we don't support this feature yet. So I believe the best you can do currently is a screen print unfortunately.

@Lyshc-cgc
Copy link

I just capture(or print screen) the image and save it

@LukasKriesch
Copy link

For the head_view we can extract the attention values and draw a own graphic with plt for example and save it as svg.

@jessevig
Copy link
Owner

jessevig commented Oct 7, 2022

There is now a branch that adds this feature but the functionality is somewhat limited (e.g. cannot select token prior to downloading image).

@tnlin
Copy link

tnlin commented Jan 20, 2023

+1, needed for writing research papers

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

No branches or pull requests

6 participants