huggingface / controlnet_aux

Apache License 2.0
398 stars 86 forks source link

Cannot import AnylineDetector #113

Open levoz92 opened 2 months ago

levoz92 commented 2 months ago

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 commented 2 months ago

Hi, latest release has it, so v0.0.9