diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

AttributeError: module diffusers has no attribute DepthNormalEstimationPipeline

Open csyhping opened this issue 1 year ago • 3 comments

Describe the bug

Hi, I'm trying to use the GeoWizzard model from the Huggingface Page, I just copied the codes from 'Use in Diffusers' as described on the webpage, but it raised the error AttributeError: module diffusers has no attribute DepthNormalEstimationPipeline.

Reproduction

I reinstalled my diffusers from source as some of other issues did but it didn't work, I also tried the pip package, it also failed.

Logs

Traceback (most recent call last):
  File "/userhome/cs/csyhping/Proj/SceneGeneration/test.py", line 15, in <module>
    pipeline = DiffusionPipeline.from_pretrained("lemonaddie/Geowizard")
  File "/userhome/cs/csyhping/anaconda3/envs/SceneGen/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "/userhome/cs/csyhping/anaconda3/envs/SceneGen/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 1096, in from_pretrained
    cached_folder = cls.download(
  File "/userhome/cs/csyhping/anaconda3/envs/SceneGen/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "/userhome/cs/csyhping/anaconda3/envs/SceneGen/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 1768, in download
    pipeline_class = _get_pipeline_class(
  File "/userhome/cs/csyhping/anaconda3/envs/SceneGen/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 395, in _get_pipeline_class
    pipeline_cls = getattr(diffusers_module, class_name)
  File "/userhome/cs/csyhping/anaconda3/envs/SceneGen/lib/python3.10/site-packages/diffusers/utils/import_utils.py", line 703, in __getattr__
    raise AttributeError(f"module {self.__name__} has no attribute {name}")
AttributeError: module diffusers has no attribute DepthNormalEstimationPipeline

System Info

Diffusers: tried 0.25.0 / latest pip package / from source Python: 3.10.13

Who can help?

@yiyixuxu @DN6

csyhping avatar Mar 29 '24 07:03 csyhping

I think they are using a custom form of diffusers. You might want to open an issue here: https://huggingface.co/lemonaddie/Geowizard/discussions.

sayakpaul avatar Mar 29 '24 07:03 sayakpaul

Someone has already: https://huggingface.co/lemonaddie/Geowizard/discussions/2.

sayakpaul avatar Mar 29 '24 07:03 sayakpaul

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Apr 28 '24 15:04 github-actions[bot]

Closing for now as this seems to be an issue related to the Geowizard repo. Feel free to reopen if needed.

DN6 avatar Apr 29 '24 10:04 DN6