source: internals/2016/aptoideimagesdetector/trunk/Source Code/Illustration2Vector/illustration2vec-master/i2v/__init__.py @ 16289

Last change on this file since 16289 was 16289, checked in by dferreira, 3 years ago

Initial content. All the tests done to three open-source platrofms.

  • Property svn:executable set to *
File size: 459 bytes
Line 
1from i2v.base import Illustration2VecBase
2
3caffe_available = False
4chainer_available = False
5
6try:
7    from i2v.caffe_i2v import CaffeI2V, make_i2v_with_caffe
8    caffe_available = True
9except ImportError:
10    pass
11
12try:
13    from i2v.chainer_i2v import ChainerI2V, make_i2v_with_chainer
14    chainer_available = True
15except ImportError:
16    pass
17
18if not any([caffe_available, chainer_available]):
19    raise ImportError('i2v requires caffe or chainer package')
Note: See TracBrowser for help on using the repository browser.