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
2
votes
1 answer

How to monitor error on a validation set in Chainer framework?

I am kind of new to Chainer and have written a code which trains a simple feed forward neural network. I have a validation set and a train set and want to test on the validation set on each like 500 iterations and if the results are better I want…
Siavash
  • 503
  • 1
  • 5
  • 25
2
votes
1 answer

how to load pretrained chainer npz parameter file but modify some layer?

I have pretrained a VGG network in chainer loadable npz file format, but add a new FC layer to last layer , and I modify last layer output class_number. I have already modify the layer name in order to use chainer loadable file to other unaltered…
machen
  • 283
  • 2
  • 10
2
votes
1 answer

Different convergence rate of the objective with GPU and Chianer

I am working with Chainer1.22.0 to implement a LSTM language model. My code does work with CPU but does NOT with GPU... More precisely, my object function converges pretty fast with CPU but not with GPU. Do you have any idea about what's going…
t0024
  • 21
  • 2
2
votes
1 answer

convert chainer model to caffe model

I have a model that generated by "chainer",but I need to convert it to "caffe" model.I have searched around the Internet,but don't have any idea.Anyone could give some advice?Thanks a lot.
huoyan
  • 141
  • 1
  • 5
1
vote
1 answer

Chainer: No module named 'cupy.util'`

I am getting desperate with Chainer because I'm not able to use it with GPU for about a week now. The error I am getting: RuntimeError: CUDA environment is not correctly set up (see https://github.com/chainer/chainer#installation).No module named…
Valeria
  • 1,508
  • 4
  • 20
  • 44
1
vote
1 answer

How to read the image data from different folders?

I have 4 folders: Cat, Dog, Tiger and Kangaroo, each with 100 images save in the respective folders. When I use chainer library to import mnist dataset, I get tuple of images and their corresponding labels. I wish to read and bring my dataset in the…
dan
  • 373
  • 2
  • 5
  • 24
1
vote
0 answers

Chainer: custom extension for early stopping based on time limit

I have a trainer that already has a stop trigger based on the total number of epochs: trainer = training.Trainer(updater, (epochs, 'epoch')) Now I would like to add a stopping condition based on the total elapsed time starting from some point in…
Sophil
  • 223
  • 1
  • 9
1
vote
1 answer

How to load Chainer training checkpoint from npz?

I am using Chainer to train (fine-tune) a Resnet model and then use the checkpoint for evaluation. The checkpoint is a npz file with the following structure: When I am loading the model for evaluation with chainer.serializers.load_npz(args.load,…
user2277994
  • 77
  • 2
  • 12
1
vote
1 answer

Is "chainer.functions.sigmoid_cross_entropy" a second-order differentiable function?

I am a student studying machine learning. For my study, we need to differentiate the loss function by second order, we use "chainer.functions.sigmoid_cross_entropy". A similar function is "chainer.functions.softmax_cross_entropy". This function has…
1
vote
1 answer

How to solve "cuDNN is not enabled"

I'm using cupy with Spyder3.3.6 and Python 3.7.5 in Windows machine(Win10 Pro 64bit, i7-7700, 8GBMemory, GTX-1060-6GB). Version of cupy, chainer, cuda and cuDNN are 6.0.0, 5.3.0, 10.1.243, and 7.6.4,respectively. When I import cupy, this error has…
mas
  • 35
  • 7
1
vote
0 answers

Cupy error : cudaErrorIllegalAddress - an illegal memory access was encountered

Training a feed forward network on GPU using Chainer. After training some batches, getting aerror "CUDARuntimeError: cudaErrorIllegalAddress: an illegal memory access was encountered". only 1.5GB out of 11GB gpu memory is in use. Once the error is…
Aljo Jose
  • 159
  • 2
1
vote
1 answer

Add extra output to existing Chainer network

Let's say I create a simple fully connected network: import chainer import chainer.functions as F import chainer.links as L from chainer import Sequential model = Sequential( L.Linear(n_in, n_hidden), F.relu, L.Linear(n_hidden,…
MasterScrat
  • 7,090
  • 14
  • 48
  • 80
1
vote
1 answer

How to measure time per layer in Chainer

How can I measure the time taken by each layer? This should include both forward and backward pass. For instance, in the case of VGG, I wanna know the time each of the layers takes. Part of the code is shown below. h = F.relu(self.conv1_2(h)) …
ankahira
  • 87
  • 1
  • 11
1
vote
1 answer

A gradient clipping in Chainer

Can I get a Gradient Clipping function in Chainer? I found some codes in Pytorch Documentation : https://pytorch.org/docs/stable/_modules/torch/nn/utils/clip_grad.html Is there anything like alternative function in Chainer? I just found…
Cordon Raj
  • 11
  • 1
1
vote
1 answer

Chainerui via internet

I'm developing my deep learning program on the Google Cloud Platform (GCP) and want to visualize the results using chainerui, but it's not been successful yet. Has anybody suceeded in it? Since I login to GCP from my Windows computer at home via…
T.Y
  • 11
  • 2
1 2
3
12 13