Skip to content

Visualize neural network weights from different kind of libraries

License

Notifications You must be signed in to change notification settings

frknayk/WeightVis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeightVis

Visualize a trained neural network weights from different libraries

Table of Contents

About

  • Load neural network weights, WeightVis will automatically visualize the neural network weights !
  • For now the library works with only for fully connected layers
  • Supported Libraries : Pytorch, Sklearn and SimplyNet(https://github.com/frknayk/SimplyNet)
  • Tensorflow will be integrated soon !

Usage

  • Simplest example with pytorch
from Visualizer.Brain import Brain
from Libraries.Enums import NNLibs as Libs

# Initate visualizer
brain = Brain(nn_lib=Libs.Torch)

# Visualize neural network
brain.visualize("path_your_pytorch_model", load_from_path=True)
  • Output

Project logo

Installation

  • pip3 install -e .

TODO

  1. Tensorflow is incoming !
  2. Extend library to CNNs
  3. Arise warning when neura-network size exceeds limits of library
  4. Long term TODO : 3D visualisation

Contribution

✍️ Authors

🎉 Acknowledgements

  • The script was first moved from a github user's [@craffel] "draw_neural_net.py" script.

About

Visualize neural network weights from different kind of libraries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages