rezoo / illustration2vec

A simple deep learning library for estimating a set of tags and extracting semantic feature vectors from given illustrations.
MIT License
669 stars 112 forks source link

ImportError: i2v requires caffe or chainer package #6

Open hunny1389 opened 7 years ago

hunny1389 commented 7 years ago

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.

Dingo64 commented 7 years ago

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

Dingo64 commented 7 years ago

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

Dingo64 commented 7 years ago

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

nobledemon commented 7 years ago

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

jilljenn commented 6 years ago

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.

a01163125 commented 2 years ago

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