-
Notifications
You must be signed in to change notification settings - Fork 698
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]: Anomalib installation with missing dependencies #2449
Comments
I ran it also on Windows 11 Pro and gave the same result |
@Paucaster3, there is a pr addressing this, but it has not been merged yet |
I ran it on Windows 10,gave ImportError: cannot import name '_encode_image' from 'ollama._client' |
Same issue but I am getting: |
You need to install ollama < 0.4, there is an API change that breaks our compatibility. |
Can you share your installation command so we could reproduce the issue. |
Yes here is the installation command: |
It looks like the command anomalib install isn't installing dependencies so I have manually added these libraries:
Then, I run into this error:
|
I'm also having issues installing Anomalib 1.2.0 using pip.
|
yeah, looks like it is broken. We were working on the v2 release, so did not prioritise this one much. we'd better fix this one as well |
I eventually found out that the module name was wrong, it should be |
The problem is in imgaug that uses the now missing numpy functions. aleju/imgaug#859 |
@alexriedel1, I've removed imgaug in v2, but it introduces some breaking changes and a new API. That's why I was not able to mirror the fix on the main yet |
Here in this PR #2436, I replaced the imgaug related stuff with torchvision transforms |
Should we wait until v2, wait for the fix on v1, or try to patch the installation ourselves? If anybody has a successful workaround, I would love to hear. |
Did you have a chance to try this on v2 branch? If yes, was the issue there? |
I have tried this and it seems to work:
However this has broken the example code I have been trying out the library on. |
Hi, for the 1.2.0 version this worked for me: |
Describe the bug
Description
After installing anomalib with
Several dependencies produce ModuleNotFoundError exceptions.
Then, i run the command
as suggested in this comment, obtaining the next indications:
Is there anything I am missing?
Thank you.
Dataset
Other (please specify in the text field below)
Model
PatchCore
Steps to reproduce the behavior
OS information
OS information:
Expected behavior
Anomalib loads all libraries and starts training.
Screenshots
No response
Pip/GitHub
pip
What version/branch did you use?
22.02
Configuration YAML
No configuration YAML
Logs
Code of Conduct
The text was updated successfully, but these errors were encountered: