Closed Issa-Bqain closed 7 months ago
I'm also having the same issue that NO module named 'lighting'
I'm also having the same issue that NO module named 'lighting'
@Fan1fei if you follow the following instructions it should install ligthning
git clone https://github.com/openvinotoolkit/anomalib.git
cd anomalib
pip install -e .
anomalib install -v
This issue is now complete as the version is pushed to pypi https://github.com/openvinotoolkit/anomalib/pull/1799
To use other subcommand using anomalib install
Could not find anomalib. To use this feature, ensure that you have anomalib installed.
Could not find openvino. To use this feature, ensure that you have openvino installed.
To use comet logger install it using pip install comet-ml
To use any logger install it using anomalib install -v
/usr/local/lib/python3.10/dist-packages/anomalib/cli/install.py:63: UserWarning: Torch Version will be selected as 2.2.0.
torch_install_args = get_torch_install_args(torch_requirement)
/usr/local/lib/python3.10/dist-packages/anomalib/cli/utils/installation.py:271: UserWarning: Installed CUDA version is v12.2.
v11.8 <= Supported CUDA version <= v12.1.
This script will use CUDA v12.1.
However, this may not be safe, and you are advised to install the correct version of CUDA.
For more details, refer to https://pytorch.org/get-started/locally/
cuda_version = update_cuda_version_with_available_torch_cuda_build(cuda_version, torch_version)
⠋ Installing packages... This may take a few minutes.
[11:21:44] Installation list: ['gitpython', 'anomalib', 'tox', 'timm<=1.0.7,>=1.0.7',
Same issue. This issue occurring in the google colab. It shows these logs and shell completes running. In both scenarios using pip and from source. %anomalib doesn't work as I use !anomalib install -v. Still having same problem. @samet-akcay
What is the motivation for this task?
Please correct me if I am wrong but I believe the getting started notebook here may provide an incorrect installation guide.
1) The guide provides installation through PyPI or from source. Installation from source provides anomallib v1.0.0.dev0 and installation through PyPI provides anomalib v0.7.0.
As a result, the subsequent package imports immediately proceeding the library installation provided in the notebook will not work and therefore new users following this guide can no longer proceed to learn how to use the anomalib library:
For example,
TaskType
is no longer a class in theinit
file ofsrc/anomalib
in version 0.7.0 and as a resultfrom anomalib import TaskType
yields:ImportError: cannot import name 'TaskType' from 'anomalib'
Same issue happens with
from anomalib.deploy import ExportType, OpenVINOInferencer
which yields**The package imports in the notebook do not work with anomalib v.0.7.0 OR anomalib v1.0.0.dev0, which version was this notebook written for?**
Describe the solution you'd like
It would be great for all new users of this library, such as myself, if this could please be updated as new users will not be familiar with these classes and their locations.
It may be prudent to change the install guide to a fixed version which works with the notebook provided. The link to install instruction here is broken.
Additional context
No response