from chain.functions importcaffe is not available.

Asked 2 years ago, Updated 2 years ago, 460 views

from chain.functions import cafe
cannot be imported.
pip install chain
You just typed the command in .
Other chain.functions have been imported.

Operating Environment
Windows 10 VSCode
Python 3.9

python chainer

2022-09-30 22:00

1 Answers

from chain.functions import cafe to
Rewrite to from chain.links import cafe to resolve the error.

Reference: About running an image recognition program using cafe

chain 7.8.0 error details:

>>>from chain.functions import cafe
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'caffe' from 'chainer.functions' (C:\Users\payaneco\AppData\Local\Programs\Python\Python39\lib\site-packages\chainer\functions\_init___.py)


2022-09-30 22:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.