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

Blurred output for deep network #113

Open
akuresonite opened this issue Sep 27, 2024 · 1 comment
Open

Blurred output for deep network #113

akuresonite opened this issue Sep 27, 2024 · 1 comment

Comments

@akuresonite
Copy link

akuresonite commented Sep 27, 2024

from torchview import draw_graph
import graphviz
graphviz.set_jupyter_format('png')

model_graph = draw_graph(
    model, 
    input_data=images, 
    depth = 8,
    device='meta',
    expand_nested=False,
    graph_dir='TB',
    save_graph=True,
    filename='effnetb0.png'
)

model_graph.visual_graph

Is there a way to set the dpi of output figure, I have searched the documentation of graphviz. But couldn't find anything related to dpi

effnetb0 png

@Wasabi2
Copy link

Wasabi2 commented Oct 9, 2024

Try resize before render. It works for me.

 model_graph.resize_graph(scale=6.0)   
 model_graph.visual_graph.render('model',format='png')

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