You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to do some inferences, but i am getting this error:
"ImportError: cannot import name 'OpenVINOInferencer' from partially initialized module 'anomalib.deploy.inferencers' (most likely due to a circular import) (/home/ga/Documents/anomalib/anomalib/deploy/inferencers/init.py)"
when executing inference/openvino.py and inference/gradio_inference.py .
Complete error:
Traceback (most recent call last):
File "tools/inference/openvino.py", line 30, in
from anomalib.deploy.inferencers import OpenVINOInferencer
File "/home/ga/Documents/anomalib/anomalib/deploy/init.py", line 17, in
from .inferencers import OpenVINOInferencer, TorchInferencer
File "/home/ga/Documents/anomalib/anomalib/deploy/inferencers/init.py", line 18, in
from .openvino import OpenVINOInferencer
File "/home/ga/Documents/anomalib/anomalib/deploy/inferencers/openvino.py", line 30, in
from openvino.inference_engine import ( # type: ignore # pylint: disable=no-name-in-module
File "/home/ga/Documents/anomalib/tools/inference/openvino.py", line 30, in
from anomalib.deploy.inferencers import OpenVINOInferencer
ImportError: cannot import name 'OpenVINOInferencer' from partially initialized module 'anomalib.deploy.inferencers' (most likely due to a circular import) (/home/ga/Documents/anomalib/anomalib/deploy/inferencers/init.py)
The text was updated successfully, but these errors were encountered:
samet-akcay
changed the title
"ImportError: cannot import name 'OpenVINOInferencer' from partially initialized module 'anomalib.deploy.inferencers' (most likely due to a circular import) (/home/ga/Documents/anomalib/anomalib/deploy/inferencers/init.py)"
Circular Import Issue when Importing OpenVINOInferencer
Jul 8, 2022
I am trying to do some inferences, but i am getting this error:
"ImportError: cannot import name 'OpenVINOInferencer' from partially initialized module 'anomalib.deploy.inferencers' (most likely due to a circular import) (/home/ga/Documents/anomalib/anomalib/deploy/inferencers/init.py)"
when executing inference/openvino.py and inference/gradio_inference.py .
Complete error:
Traceback (most recent call last):
File "tools/inference/openvino.py", line 30, in
from anomalib.deploy.inferencers import OpenVINOInferencer
File "/home/ga/Documents/anomalib/anomalib/deploy/init.py", line 17, in
from .inferencers import OpenVINOInferencer, TorchInferencer
File "/home/ga/Documents/anomalib/anomalib/deploy/inferencers/init.py", line 18, in
from .openvino import OpenVINOInferencer
File "/home/ga/Documents/anomalib/anomalib/deploy/inferencers/openvino.py", line 30, in
from openvino.inference_engine import ( # type: ignore # pylint: disable=no-name-in-module
File "/home/ga/Documents/anomalib/tools/inference/openvino.py", line 30, in
from anomalib.deploy.inferencers import OpenVINOInferencer
ImportError: cannot import name 'OpenVINOInferencer' from partially initialized module 'anomalib.deploy.inferencers' (most likely due to a circular import) (/home/ga/Documents/anomalib/anomalib/deploy/inferencers/init.py)
The text was updated successfully, but these errors were encountered: