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

TensorRTStableDiffusionImg2ImgPipeline: can't set attribute 'guidance_scale' #6323

Closed
Jannchie opened this issue Dec 25, 2023 · 0 comments · Fixed by #6326
Closed

TensorRTStableDiffusionImg2ImgPipeline: can't set attribute 'guidance_scale' #6323

Jannchie opened this issue Dec 25, 2023 · 0 comments · Fixed by #6326
Labels
bug Something isn't working

Comments

@Jannchie
Copy link
Contributor

Describe the bug

guidance_scale became a not setable prop. So this example will report an error.

Reproduction

I'm using the example code:

https://github.com/huggingface/diffusers/blob/main/examples/community/README.md#tensorrt-image2image-stable-diffusion-pipeline

Logs

Traceback (most recent call last):
  File "C:\Code\diffusers-playground\img2img\sdt.py", line 41, in <module>
    image = pipe(
  File "C:\Users\Jannchie\anaconda3\envs\streamdiffusion\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "C:\Code\diffusers-playground\img2img\utils\__init__.py", line 1007, in __call__
    self.guidance_scale = guidance_scale
  File "C:\Users\Jannchie\anaconda3\envs\streamdiffusion\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 607, in __setattr__
    super().__setattr__(name, value)
AttributeError: can't set attribute 'guidance_scale'


### System Info

- `diffusers` version: 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?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>

### Who can help?

_No response_
@Jannchie Jannchie added the bug Something isn't working label Dec 25, 2023
@Jannchie Jannchie changed the title can't set attribute 'guidance_scale' TensorRTStableDiffusionImg2ImgPipeline: can't set attribute 'guidance_scale' Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant