Questions tagged [chainer]

Chainer is an open source deep learning framework written in Python.

Chainer

A Powerful, Flexible, and Intuitive Framework for Neural Networks

For more info see chainer.org

194 questions
11
votes
2 answers

Is it possible to install cupy on google colab?

I am trying to run chainer with GPU on google colab. This requires cupy installed however I fail to install this properly as it cannot find the cuda environment in my colab vm. Error message as follows... Collecting cupy Downloading…
jusjosgra
  • 375
  • 2
  • 4
  • 14
10
votes
1 answer

Asynchronous GPU memory transfer with cupy

Is it possible to asynchronously transfer memory from/to GPU with cupy (or chainer)? I'm training a relatively small network with very large data that does not fit into the GPU memory. This data should be kept on CPU memory and provided to GPU for…
Keisuke FUJII
  • 1,306
  • 9
  • 13
5
votes
1 answer

How to use CUDA pinned "zero-copy" memory for a memory mapped file?

Objective/Problem In Python, I am looking for a fast way to read/write data from a memory mapped file to a GPU. In a previous SO overflow post [ Cupy OutOfMemoryError when trying to cupy.load larger dimension .npy files in memory map mode, but…
SantoshGupta7
  • 5,607
  • 14
  • 58
  • 116
4
votes
0 answers

AttributeError: module 'typing_extensions' has no attribute 'Protocol'

I am trying to run the following code: https://github.com/silviazuffi/smalst. However, I am using Python 3 instead of Python 2 because it does not seem to be possible to use Python 2 anymore with new CUDA drivers and due to the compatibility issues…
Valeria
  • 1,508
  • 4
  • 20
  • 44
4
votes
1 answer

How to train millions of doc2vec embeddings using GPU?

I am trying to train a doc2vec based on user browsing history (urls tagged to user_id). I use chainer deep learning framework. There are more than 20 millions (user_id and urls) of embeddings to initialize which doesn’t fit in a GPU internal memory…
Aljo Jose
  • 159
  • 2
3
votes
2 answers

Writing training model for CNN

I am writing the training code for TwoStream-IQA which is a two-stream convolutional neural network. This model predicts the quality score for the patches being assessed through two streams of the network. In the training below, I have used test…
sana
  • 410
  • 2
  • 6
  • 24
3
votes
1 answer

Why does this VAE implementation sometimes add a sigmoid operation?

I'm building a Variational Autoencoder (VAE) in Python using the Chainer framework (link). I have found various working examples on github and am trying to adapt one of them. I have been succesful in getting it to run and it works just fine, but…
3
votes
2 answers

ImportError: `iplot` can only run inside an IPython Notebook

When I run the following code in PyCharm on a Mac: import numpy as np import pandas as pd from subprocess import check_output print(check_output(["ls", "../input"]).decode("utf8")) import time import copy import numpy as np import pandas as…
William
  • 3,724
  • 9
  • 43
  • 76
3
votes
3 answers

How do I switch from CPU to GPU on google colab using chainer?

I followed the instructions on the Chainer doc, which led me to an error when I ran my code: RuntimeErrorTraceback (most recent call last) in () ... 6 model = Classifier(CompetitionNetwork(n_units =…
Lynn Le
  • 113
  • 2
  • 8
3
votes
1 answer

How to accumulate gradient across mini-batch and then back-propagation in Chainer?

I am doing classifying video sequence, I need 2 things: Because of limited GPU memory, I want to accumulate gradient across mini-batch, and then average gradient value, and then back propagation. I need to know how to shuffle between mini-batch but…
machen
  • 283
  • 2
  • 10
2
votes
0 answers

Use Raspberry's VideoCore IV GPU for chainer model. Requires cupy? cuda?

I am trying to run Idein/chainer-pose-proposal-net on a Raspberry Pi 3 B+. This is a pose estimation model (specifically Pose Proposal Networks by Taiki Sekii) in Chainer. In the README it is suggested that it can use the Raspberry's VideoCore IV…
Martin
  • 1,141
  • 14
  • 24
2
votes
1 answer

Optimization Target must be a link

I have an autoencoder model of 4 linear layers written using chainer.Chain. Running the optimizer.setup line in Trainer section give me the following error: TypeError Traceback (most recent call…
TulakHord
  • 422
  • 7
  • 15
2
votes
0 answers

How to resume from a saved snapshot in chainer using python

How to resume training from the saved snapshot in chainer.I was trying to implement DCGAN using chainer using the following github link: https://github.com/chainer/chainer/blob/master/examples/dcgan/train_dcgan.py When I try to give the --resume…
Lakshmi - Intel
  • 581
  • 3
  • 10
2
votes
1 answer

How to Create a Trained Keras Model Through Setting the Weights

I am trying to convert a trained chainer model into a trained keras model in hopes of converting it into coreml. My attempt at doing so is through directly setting the weights of an instantiated keras model with the same architecture as that of the…
joseph
  • 1,021
  • 2
  • 9
  • 11
2
votes
1 answer

Chainer how to save and load DQN model

I'm learning the Deep Reinforcement learning framework Chainer. I've followed a tutorial and gotten the following code: def train_dddqn(env): class Q_Network(chainer.Chain): def __init__(self, input_size, hidden_size, output_size): …
1
2 3
12 13