All Projects → leelabcnbc → Cnnvis Pytorch

leelabcnbc / Cnnvis Pytorch

visualization of CNN in PyTorch

Projects that are alternatives of or similar to Cnnvis Pytorch

Oreilly Intro To Predictive Clv
Repo that contains the supporting material for O'Reilly Webinar "An Intro to Predictive Modeling for Customer Lifetime Value" on Feb 28, 2017
Stars: ✭ 153 (-0.65%)
Mutual labels:  jupyter-notebook
Python For Probability Statistics And Machine Learning 2e
Second edition of Springer Book Python for Probability, Statistics, and Machine Learning
Stars: ✭ 154 (+0%)
Mutual labels:  jupyter-notebook
Automatic Generation Of Text Summaries
使用两种方法(抽取式Textrank和概要式seq2seq)自动提取文本摘要
Stars: ✭ 155 (+0.65%)
Mutual labels:  jupyter-notebook
Python Data Visualization Course
Course materials for teaching data visualization in Python.
Stars: ✭ 153 (-0.65%)
Mutual labels:  jupyter-notebook
Hamiltorch
PyTorch-based library for Riemannian Manifold Hamiltonian Monte Carlo (RMHMC) and inference in Bayesian neural networks
Stars: ✭ 153 (-0.65%)
Mutual labels:  jupyter-notebook
Robuststl
Unofficial Implementation of RobustSTL: A Robust Seasonal-Trend Decomposition Algorithm for Long Time Series (AAAI 2019)
Stars: ✭ 154 (+0%)
Mutual labels:  jupyter-notebook
Datasciencevm
Tools and Docs on the Azure Data Science Virtual Machine (http://aka.ms/dsvm)
Stars: ✭ 153 (-0.65%)
Mutual labels:  jupyter-notebook
Deep Viz Keras
Implementations of some popular Saliency Maps in Keras
Stars: ✭ 154 (+0%)
Mutual labels:  jupyter-notebook
Self Learning
Books Papers, Courses & more I have to learn soon
Stars: ✭ 146 (-5.19%)
Mutual labels:  jupyter-notebook
Nlp Interview Notes
📚 专门为自然语言处理(NLP)面试准备的学习笔记与资料
Stars: ✭ 154 (+0%)
Mutual labels:  jupyter-notebook
Hdbscan
A high performance implementation of HDBSCAN clustering.
Stars: ✭ 2,032 (+1219.48%)
Mutual labels:  jupyter-notebook
Pytorch Question Answering
Important paper implementations for Question Answering using PyTorch
Stars: ✭ 154 (+0%)
Mutual labels:  jupyter-notebook
Raster Vision Examples
Examples of using Raster Vision on open datasets
Stars: ✭ 154 (+0%)
Mutual labels:  jupyter-notebook
Ipynb Quicklook
A Quick Look generator for Jupyter/IPython notebooks without further dependencies
Stars: ✭ 152 (-1.3%)
Mutual labels:  jupyter-notebook
Data Science Stack Cookiecutter
🐳📊🤓Cookiecutter template to launch an awesome dockerized Data Science toolstack (incl. Jupyster, Superset, Postgres, Minio, AirFlow & API Star)
Stars: ✭ 153 (-0.65%)
Mutual labels:  jupyter-notebook
Oreilly Captions
Stars: ✭ 153 (-0.65%)
Mutual labels:  jupyter-notebook
Mastering Python For Finance Second Edition
Mastering Python for Finance – Second Edition, published by Packt
Stars: ✭ 153 (-0.65%)
Mutual labels:  jupyter-notebook
Tensorflow Multi Dimensional Lstm
Multi dimensional LSTM as described in Alex Graves' Paper https://arxiv.org/pdf/0705.2011.pdf
Stars: ✭ 154 (+0%)
Mutual labels:  jupyter-notebook
Example Seldon
Example for end-to-end machine learning on Kubernetes using Kubeflow and Seldon Core
Stars: ✭ 154 (+0%)
Mutual labels:  jupyter-notebook
Daguan Classify 2018
2018达观杯长文本分类智能处理挑战赛 18解决方案
Stars: ✭ 154 (+0%)
Mutual labels:  jupyter-notebook

cnnvis-pytorch

visualization of CNN in PyTorch

this project is inspired by a summary of visualization methods in Lasagne examples, as well as deep visualization toolbox.

Visualization of CNN units in higher layers is important for my work, and currently (May 2017), I'm not aware of any library with similar capabilities as the two mentioned above written for PyTorch. For a discussion of this feature in PyTorch, see https://discuss.pytorch.org/t/understanding-deep-network-visualize-weights/2060

Indeed I have some experience with deep visualization toolbox, which only supports Caffe. However, it has very poor support for networks whose input size is not around 256x256x3 (standard size for ImageNet dataset, before cropping), and indeed I need to visualize networks not having input of such size, such as networks trained on CIFAR-10, etc. In addition, it can't support visualization techniques other than "deconvolution". Therefore, eventually, converting PyTorch models to Caffe and then hacking the code of deep visualization toolbox to make it work is probably not worthwhile.

Some people have tried doing visualization in TensorFlow. See https://github.com/insikk/Grad-CAM-tensorflow. However, TensorFlow has too much boilerplate, and in general I'm not familiar with it. I believe with the huge amount of boilerplate around TensorFlow, figuring out the usage of existing visualization code on my particular models, adapted to my particular needs, would possibly take more of my time than working on a pure PyTorch solution.

Implementation

It's going to be implemented mainly through forward and backward hooks of torch.nn.Module. Since most of visualization techniques focus on fiddling with ReLU layers, this means that as long as your ReLU layers, as well as those layers which contain your interested units are implemented using torch.nn.Module, not torch.nn.functional, then the code should work.

Alternatives

While it's possible to define some modified ReLU layers, as suggested by PyTorch developers, this make break the code, as autograd assumes correct grad computation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].