leelabcnbc / cnnvis-pytorch Goto Github PK
View Code? Open in Web Editor NEWvisualization of CNN in PyTorch
visualization of CNN in PyTorch
code:
vis_param_dict['layer'] = 'classifier.6'
vis_param_dict['method'] = util.GradType.NAIVE
vis_param_dict['index'] = 55
loss.backward(retain_variables=True)
error:
TypeError Traceback (most recent call last)
in ()
8 vis_param_dict['index'] = 55
9 # alexnet gives 64, which is n01749939, or green mamba. not sure which one is correct.
---> 10 loss.backward(retain_variables=True)
TypeError: backward() got an unexpected keyword argument 'retain_variables'
The repo is awesome and useful, but when I try to use it in my own project wrote in py3.5, which get some errors like below:
----> 3 from enum import Enum, auto
4 from functools import partial
5
ImportError: cannot import name 'auto'
The auto is unique in py3.6 and don't contain in py3.5, how can I change the code to let it work?
Looking for your help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.