All Projects → vzhong → chainer2pytorch

vzhong / chainer2pytorch

Licence: MIT license
Converts Chainer modules to PyTorch, parameters included.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to chainer2pytorch

Chainer Pose Proposal Net
Chainer implementation of Pose Proposal Networks
Stars: ✭ 119 (+230.56%)
Mutual labels:  chainer
Dynamic routing between capsules
Implementation of Dynamic Routing Between Capsules, Sara Sabour, Nicholas Frosst, Geoffrey E Hinton, NIPS 2017
Stars: ✭ 202 (+461.11%)
Mutual labels:  chainer
pyner
🌈 Implementation of Neural Network based Named Entity Recognizer (Lample+, 2016) using Chainer.
Stars: ✭ 45 (+25%)
Mutual labels:  chainer
Chainer Cifar10
Various CNN models for CIFAR10 with Chainer
Stars: ✭ 134 (+272.22%)
Mutual labels:  chainer
Imgclsmob
Sandbox for training deep learning networks
Stars: ✭ 2,405 (+6580.56%)
Mutual labels:  chainer
Bert Chainer
Chainer implementation of "BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding"
Stars: ✭ 205 (+469.44%)
Mutual labels:  chainer
Adversarial text
Code for Adversarial Training Methods for Semi-Supervised Text Classification
Stars: ✭ 109 (+202.78%)
Mutual labels:  chainer
ChainerPruner
ChainerPruner: Channel Pruning framework for Chainer
Stars: ✭ 21 (-41.67%)
Mutual labels:  chainer
Nnpulearning
Non-negative Positive-Unlabeled (nnPU) and unbiased Positive-Unlabeled (uPU) learning reproductive code on MNIST and CIFAR10
Stars: ✭ 181 (+402.78%)
Mutual labels:  chainer
kawaii creator
Photo to illustration converter
Stars: ✭ 79 (+119.44%)
Mutual labels:  chainer
Eend
End-to-End Neural Diarization
Stars: ✭ 153 (+325%)
Mutual labels:  chainer
Pai
Resource scheduling and cluster management for AI
Stars: ✭ 2,223 (+6075%)
Mutual labels:  chainer
Fcn
Chainer Implementation of Fully Convolutional Networks. (Training code to reproduce the original result is available.)
Stars: ✭ 211 (+486.11%)
Mutual labels:  chainer
Chainer Pix2pix
chainer implementation of pix2pix
Stars: ✭ 130 (+261.11%)
Mutual labels:  chainer
chainer-grad-cam
Chainer implementation of Grad-CAM
Stars: ✭ 20 (-44.44%)
Mutual labels:  chainer
Chainercv
ChainerCV: a Library for Deep Learning in Computer Vision
Stars: ✭ 1,463 (+3963.89%)
Mutual labels:  chainer
Alpha Zero General
A clean implementation based on AlphaZero for any game in any framework + tutorial + Othello/Gobang/TicTacToe/Connect4 and more
Stars: ✭ 2,617 (+7169.44%)
Mutual labels:  chainer
Visual-Attention-Model
Chainer implementation of Deepmind's Visual Attention Model paper
Stars: ✭ 27 (-25%)
Mutual labels:  chainer
3dgan-chainer
📦 A Chainer implementation of 3D Generative Adversarial Network.
Stars: ✭ 25 (-30.56%)
Mutual labels:  chainer
Einops
Deep learning operations reinvented (for pytorch, tensorflow, jax and others)
Stars: ✭ 4,022 (+11072.22%)
Mutual labels:  chainer

chainer2pytorch

chainer2pytorch implements conversions from Chainer modules to PyTorch modules, setting parameters of each modules such that one can port over models on a module basis.

Installation:

pip install git+git://github.com/vzhong/chainer2pytorch.git

Usage:

from tc import nn
from chainer import links as L

c = L.Linear(10, 50)
t = nn.Linear.from_chainer(c)

c = L.NStepLSTM(1, 10, 20, 0)
t = nn.LSTM.from_chainer(c)

Note that when do you a forward call, PyTorch's LSTM only gives the output of the last layer, whereas chainer gives the output of all layers.

Test:

nosetests tests

Pull requests are welcome!

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].