hiddenlayer icon indicating copy to clipboard operation
hiddenlayer copied to clipboard

Save network plot to file

Open erap129 opened this issue 5 years ago • 3 comments

Hello,

I saw there is a possibility to save training stat plots into png files, but I couldn't find an option to save the actual NN architecture plot into a file, is this currently possible?

Thanks

erap129 avatar Mar 11 '19 07:03 erap129

To do this, first, save the picture(output) in a variable

im = hl.build_graph(model_name, torch.zeros([64,3,7,7]))

(your size in place of torch.zeros([64,3,7,7])

Then save it giving the path with a name of the file (you want), also adding format of the file at the beginning

im.save(path="path_of_file/name_of_file" , format="jpg")

mdhasanai avatar Mar 19 '19 12:03 mdhasanai

Is there a way you can change the figure size or resolution?

ldbro0 avatar Apr 21 '20 02:04 ldbro0

Thanks for this fantastic library.

It would be fabulous indeed if the above information could make it onto the home page. Thanks!

daniel347x avatar Mar 09 '21 03:03 daniel347x