illustration2vec icon indicating copy to clipboard operation
illustration2vec copied to clipboard

ImportError: i2v requires caffe or chainer package

Open hunny1389 opened this issue 7 years ago • 6 comments

I am trying to run sample code after downloading the models. I have installed all the dependencies, but i always get the error ImportError: i2v requires caffe or chainer package. It have tried the same on win 10, ubuntu 16.04 and docker.

hunny1389 avatar Mar 09 '17 21:03 hunny1389

I have the same problem. Chainer installed just fine but i2v doesn't want to run.

Dingo64 avatar Jun 07 '17 15:06 Dingo64

@hunny1389 You may try to change: from chainer.functions.caffe import CaffeFunction to from chainer.links.caffe import CaffeFunction in chainer_i2v.py

Dingo64 avatar Jun 07 '17 16:06 Dingo64

It seems to me this project uses an outdated version of Chainer and cannot work with newer one: ValueError: train argument is not supported anymore. Use chainer.using_config

Dingo64 avatar Jun 07 '17 16:06 Dingo64

Erase the train argument from chainer_i2v.py, it's an optional argument (I think)

nobledemon avatar Jun 14 '17 02:06 nobledemon

I think it should be replaced with:

with chainer.using_config('train', False):

But still. I'm surprised. It seems the code was written for a chainer version below 2.0.

jilljenn avatar Jul 24 '18 06:07 jilljenn

Personally, error dismissed when scikit-image installed. I followed inside the i2v and found a package is not installed.

a01163125 avatar Mar 27 '22 15:03 a01163125