ResRep | Lossless CNN Pruning via Decoupling Remembering | Machine Learning library
kandi X-RAY | ResRep Summary
kandi X-RAY | ResRep Summary
ResRep is a Python library typically used in Telecommunications, Media, Media, Entertainment, Artificial Intelligence, Machine Learning, Deep Learning, Pytorch applications. ResRep has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. However ResRep build file is not available. You can download it from GitHub.
We propose ResRep, a novel method for lossless channel pruning (a.k.a. filter pruning), which aims to slim down a convolutional neural network (CNN) by reducing the width (number of output channels) of convolutional layers. Inspired by the neurobiology research about the independence of remembering and forgetting, we propose to re-parameterize a CNN into the remembering parts and forgetting parts, where the former learn to maintain the performance and the latter learn for efficiency. By training the re-parameterized model using regular SGD on the former but a novel update rule with penalty gradients on the latter, we realize structured sparsity, enabling us to equivalently convert the re-parameterized model into the original architecture with narrower layers. Such a methodology distinguishes ResRep from the traditional learning-based pruning paradigm that applies a penalty on parameters to produce structured sparsity, which may suppress the parameters essential for the remembering. Our method slims down a standard ResNet-50 with 76.15% accuracy on ImageNet to a narrower one with only 45% FLOPs and no accuracy drop, which is the first to achieve lossless pruning with such a high compression ratio, to the best of our knowledge.
We propose ResRep, a novel method for lossless channel pruning (a.k.a. filter pruning), which aims to slim down a convolutional neural network (CNN) by reducing the width (number of output channels) of convolutional layers. Inspired by the neurobiology research about the independence of remembering and forgetting, we propose to re-parameterize a CNN into the remembering parts and forgetting parts, where the former learn to maintain the performance and the latter learn for efficiency. By training the re-parameterized model using regular SGD on the former but a novel update rule with penalty gradients on the latter, we realize structured sparsity, enabling us to equivalently convert the re-parameterized model into the original architecture with narrower layers. Such a methodology distinguishes ResRep from the traditional learning-based pruning paradigm that applies a penalty on parameters to produce structured sparsity, which may suppress the parameters essential for the remembering. Our method slims down a standard ResNet-50 with 76.15% accuracy on ImageNet to a narrower one with only 45% FLOPs and no accuracy drop, which is the first to achieve lossless pruning with such a high compression ratio, to the best of our knowledge.
Support
Quality
Security
License
Reuse
Support
ResRep has a low active ecosystem.
It has 250 star(s) with 38 fork(s). There are 8 watchers for this library.
It had no major release in the last 6 months.
There are 4 open issues and 17 have been closed. On average issues are closed in 107 days. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of ResRep is current.
Quality
ResRep has 0 bugs and 0 code smells.
Security
ResRep has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
ResRep code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
ResRep is licensed under the MIT License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
ResRep releases are not available. You will need to build from source code and install.
ResRep has no build file. You will be need to create the build yourself to build the component from source.
Installation instructions are not available. Examples and code snippets are available.
ResRep saves you 1598 person hours of effort in developing the same functionality from scratch.
It has 3551 lines of code, 265 functions and 44 files.
It has high code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA
kandi has reviewed ResRep and discovered the below as its top functions. This is intended to give you an instant insight into ResRep implemented functionality, and help decide if they suit your requirements.
- Convert a pre - trained model into a single model
- Create a dataset
- Fold convolutional convolution
- Save numpy arrays to hdf5 file
- Run compactor on a given model
- Create a Dataset
- Loads the parameters from an hdf5 file
- Read an hdf5 file
- Set parameter value
- Return True if s is an integer
- Given a list of origin_deps and a model_dep
- Translate res50 layers
- Save the state of the model
- Train a base model
- Get base configuration by epoch
- Return a warmupl scheduler
- Create VGG stem
- Parse input_devices
- Create a Conv2D convolution layer
- Get base config by epoch
- Returns a warmupuler
- Reduce a dictionary
- Returns a dictionary of compactor mask
- Load a checkpoint from a file
- Reduce the given loss dictionary into a dictionary
- Shrinks a flattened resnet of a given resnet
- Saves the model to hdf5 file
- Calculate the interpops of the given deps
- Read a hdf5 file
Get all kandi verified functions for this library.
ResRep Key Features
No Key Features are available at this moment for ResRep.
ResRep Examples and Code Snippets
No Code Snippets are available at this moment for ResRep.
Community Discussions
Trending Discussions on ResRep
QUESTION
Pandas will not input data into dataframe in the correct order
Asked 2020-Aug-18 at 14:48
I was initially trying to run the following code:
...ANSWER
Answered 2020-Aug-18 at 14:48You have given a set
as the value of the parameter columns
. Pandas will take the set and try to convert it to a list. But, as set
is an unordered data structure, the order of yours column names could not be preserved while converting it from set to list. Simply, use a list
instead of a set
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ResRep
You can download it from GitHub.
You can use ResRep like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
You can use ResRep like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Google Scholar Profile: https://scholar.google.com/citations?user=CIjw0KoAAAAJ&hl=en.
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page