-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Closed
Labels
bugSomething isn't workingSomething isn't workingstaleIssues that haven't received updatesIssues that haven't received updates
Description
Describe the bug
not_compiled_module could return bool.
This causes this example to report an error:
Reproduction
Logs
Traceback (most recent call last):
File "C:\Code\diffusers-playground\img2img\sdt.py", line 18, in <module>
pipe = StableDiffusionImg2ImgPipeline.from_pretrained(
File "C:\Users\Jannchie\anaconda3\envs\streamdiffusion\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 1357, in from_pretrained
model = pipeline_class(**init_kwargs)
File "C:\Users\Jannchie\.cache\huggingface\modules\diffusers_modules\git\stable_diffusion_tensorrt_img2img.py", line 726, in __init__
super().__init__(
File "C:\Users\Jannchie\anaconda3\envs\streamdiffusion\lib\site-packages\diffusers\pipelines\stable_diffusion\pipeline_stable_diffusion_img2img.py", line 276, in __init__
self.register_modules(
File "C:\Users\Jannchie\anaconda3\envs\streamdiffusion\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 566, in register_modules
library = not_compiled_module.__module__.split(".")[0]
AttributeError: 'bool' object has no attribute '__module__'. Did you mean: '__mod__'?
### System Info
diffusersversion: 0.24.0- Platform: Windows-10-10.0.22631-SP0
- Python version: 3.10.13
- PyTorch version (GPU?): 2.1.0+cu121 (True)
- Huggingface_hub version: 0.20.1
- Transformers version: 4.36.2
- Accelerate version: 0.25.0
- xFormers version: 0.0.22.post7
- Using GPU in script?:
- Using distributed or parallel set-up in script?:
### Who can help?
_No response_
jloveric and qngv
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingstaleIssues that haven't received updatesIssues that haven't received updates