-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
diffusers/src/diffusers/image_processor.py
Line 192 in 8f15be1
| images = torch.from_numpy(images.transpose(0, 3, 1, 2)) |
TypeError: transpose() received an invalid combination of arguments - got (int, int, int, int), but expected one of:
- (int dim0, int dim1)
- (name dim0, name dim1)
should use 'permute' replace 'transpose'
Reproduction
import torch
x = torch.randn(2,3,4,5)
x.transpose(0, 3, 1, 2)
Logs
System Info
diffusers 0.27.0
torch 2.0.1
Who can help?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working