illustration2vec
illustration2vec copied to clipboard
ImportError: i2v requires caffe or chainer package
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.
I have the same problem. Chainer installed just fine but i2v doesn't want to run.
@hunny1389 You may try to change:
from chainer.functions.caffe import CaffeFunction
to
from chainer.links.caffe import CaffeFunction
in chainer_i2v.py
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
Erase the train argument from chainer_i2v.py, it's an optional argument (I think)
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.
Personally, error dismissed when scikit-image installed. I followed inside the i2v and found a package is not installed.