-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Benchmark tool raises exception #1109
Comments
Hi :) if I look at the newer benchmarking notebook in the repo it looks like one of the folder_padim = """
dataset:
name: hazelnut
format: folder
path: /content/anomalib/datasets/hazelnut_toy from omegaconf import OmegaConf
dataset_configuration_str = f"""
name: hazelnut
format: folder
root: {str(root_directory / "datasets" / "hazelnut_toy")} does it help if you change it accordingly? |
Another problem is the docs say:
But if you don't install it you get Traceback (most recent call last):
File "/content/anomalib/./tools/benchmarking/benchmark.py", line 30, in <module>
from anomalib.deploy import export
File "/usr/local/lib/python3.10/dist-packages/anomalib/deploy/__init__.py", line 7, in <module>
from .inferencers import Inferencer, OpenVINOInferencer, TorchInferencer
File "/usr/local/lib/python3.10/dist-packages/anomalib/deploy/inferencers/__init__.py", line 7, in <module>
from .openvino_inferencer import OpenVINOInferencer
File "/usr/local/lib/python3.10/dist-packages/anomalib/deploy/inferencers/openvino_inferencer.py", line 24, in <module>
raise ImportError("OpenVINO is not installed. Please install OpenVINO to use OpenVINOInferencer.")
ImportError: OpenVINO is not installed. Please install OpenVINO to use OpenVINOInferencer. even if |
Thanks for the reply. Traceback (most recent call last):
File "/content/anomalib/./tools/benchmarking/benchmark.py", line 315, in <module>
distribute(_sweep_config)
File "/content/anomalib/./tools/benchmarking/benchmark.py", line 232, in distribute
distribute_over_gpus(config, folder=runs_folder)
File "/content/anomalib/./tools/benchmarking/benchmark.py", line 203, in distribute_over_gpus
raise Exception(f"Error occurred while computing benchmark on GPU {job}") from exc
Exception: Error occurred while computing benchmark on GPU <Future at 0x7ff326a32770 state=finished raised Exception> So probably the whole benchmark script is to be updated for the latest changes. |
@marcodiri, regarding your OpenVINO issue, PR #1182 addressed this. Rather than throwing import error, it only throws a warning message. |
For the rest of the stuff, we are working on a new benchmarking script that we would like to release in v1.1.0 |
Describe the bug
I'm trying to use the benchmark script but it results in the error below.
Dataset
N/A
Model
N/A
Steps to reproduce the behavior
I'm running the benchmark notebook from this repo, but it seems to be outdated because I had to add
!pip install -r requirements/loggers.txt
and use the config from the tutorial in the docs.OS information
I'm using Colab with the following:
Expected behavior
No errors.
Screenshots
No response
Pip/GitHub
GitHub
What version/branch did you use?
No response
Configuration YAML
Logs
Code of Conduct
The text was updated successfully, but these errors were encountered: