Skip to content
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

Cannot import AnylineDetector #113

Open
levoz92 opened this issue Sep 8, 2024 · 1 comment
Open

Cannot import AnylineDetector #113

levoz92 opened this issue Sep 8, 2024 · 1 comment

Comments

@levoz92
Copy link

levoz92 commented Sep 8, 2024

Hi.

I am getting this error:

ImportError                               Traceback (most recent call last)
Cell In[12], [line 8](vscode-notebook-cell:?execution_count=12&line=8)
      [6](vscode-notebook-cell:?execution_count=12&line=6) from PIL import Image, ImageOps
      [7](vscode-notebook-cell:?execution_count=12&line=7) from diffusers import StableDiffusionInpaintPipeline, DiffusionPipeline, StableDiffusionXLPipeline, StableDiffusionPipeline, StableDiffusionXLInpaintPipeline, DDIMScheduler, StableDiffusionControlNetPipeline, ControlNetModel, AutoencoderKL, StableDiffusionXLControlNetPipeline, DDIMScheduler, KDPM2AncestralDiscreteScheduler, DPMSolverSinglestepScheduler, DPMSolverMultistepScheduler, DPMSolverSDEScheduler, EulerAncestralDiscreteScheduler
----> [8](vscode-notebook-cell:?execution_count=12&line=8) from controlnet_aux import ZoeDetector, AnylineDetector
      [9](vscode-notebook-cell:?execution_count=12&line=9) from datetime import datetime
     [10](vscode-notebook-cell:?execution_count=12&line=10) from diffusers.utils import load_image

ImportError: cannot import name 'AnylineDetector' from 'controlnet_aux' (/home/levent/anaconda3/lib/python3.12/site-packages/controlnet_aux/__init__.py)

Is there a specific version of controlnet-aux that I am supposed to install to use this?

@asomoza
Copy link
Member

asomoza commented Sep 9, 2024

Hi, latest release has it, so v0.0.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants