Open Teriks opened 9 months ago
@Teriks thanks! do you want to open a PR to fix it? just have to change it to np array
Hi @yiyixuxu, Let me look into the issue.
Raised a pull request.
@yiyixuxu ,
Shouldn't a simple check below suffice ?
sigmas = torch.from_numpy(sigmas).to(dtype=torch.float32, device=device) if not isinstance(sigmas, torch.Tensor) else sigmas
I just did the changes and it is working. I also do not see a PR for this, if so , can I send one?
@yiyixuxu ,
Shouldn't a simple check below suffice ?
sigmas = torch.from_numpy(sigmas).to(dtype=torch.float32, device=device) if not isinstance(sigmas, torch.Tensor) else sigmas
I just did the changes and it is working. I also do not see a PR for this, if so , can I send one?
This is pretty much what I had edited it to locally to see if it would work, but I ran out of free time :)
same issue
@yiyixuxu Is this issue still open? It seems to have been fixed by #6056, and I've confirmed that there is no problem with version 0.25.1.
Hi @sayakpaul .It's my first issues on diffuser Library guide me
Cc: @yiyixuxu
I recommended @SahilCarterr to study Diffusion Models comprehensively. After studying, it would be more appropriate to examine previously merged good first issue PRs and try to solve unsolved ones, IMHO.
I believe this issue is resolved
Describe the bug
In version 0.24.0, on line 283 of
schedulers\scheduling_euler_discrete.py
https://github.com/huggingface/diffusers/blob/76c645d3a641c879384afcb43496f0b7db8cc5cb/src/diffusers/schedulers/scheduling_euler_discrete.py#L283
An exception occurs when
sigmas
is a Tensor object and not a numpy array, whenself.config.interpolation_type == "log_linear"
from this setup code directly above
Reproduction
Logs
System Info
diffusers 0.24.0 torch 2.0.1
Windows
Who can help?
No response