VisualTorch: Streamlining Visualization for PyTorchNeural Network Architectures
VisualTorch is a library designed for visualizing neural network architectures in PyTorch.It offers support for multiple visualization styles, such as layered-style, graph-style, and the newly added LeNet-like visualization.When provided with a sequential or custom PyTorch model, alongside the input shape and visualization specifications, VisualTorch automatically translates the model structure into an architectural diagram.The resulting diagram can be refined using various configurations, including style, color, opacity, size, and a legend.VisualTorch is particularly valuable for projects involving PyTorch-based neural networks.By facilitating the generation of graphics with a single function call, it streamlines the process of visualizing neural network architectures.This ensures that the produced results are suitable for publication with minimal additional modifications.Moreover, owing to its diverse customization options, VisualTorch empowers users to generate polished figures suitable for publication. Statement of NeedNeural network architecture visualization plays an important role in the scientific process within the realm of artificial intelligence and machine learning.While mathematical equations and descriptive paragraphs provide detailed information about architectures, effective visualizations can significantly aid scientists in communicating their proposed architectures to others.In deep learning projects based on Keras (Chollet & others, 2015), the visualkeras project (Gavrikov, 2020) has been gaining traction over nearly four years of development.It offers visualization of Keras-based neural network architectures in two styles: layered and graph.The visualtorch library provides visualization for PyTorch-based architectures (Paszke et al., 2019).PyTorch itself has gained popularity among deep learning frameworks within the scientific community in recent years (Aoun et al., 2022).VisualTorch expands the functionality of VisualKeras to PyTorch and offers more visualization styles, improved usability, and a development environment by providing web-based documentation and CI/CD pipelines for seamless future contributions and collaborations.
Authors
- Paul Gavrikov (ORCID: https://orcid.org/0000-0003-2667-9333)
- Willy Fitra Hendria (ORCID: https://orcid.org/0000-0002-6209-3981)
Publication Details
- Journal
- The Journal of Open Source Software
- Published
- 2024-10-08
- DOI
- https://doi.org/10.21105/joss.06678
- Primary Topic
- Neural Networks and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00