mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-11 04:17:05 +08:00
Update symmetric_patchifier.py
fix torch.compile error with meshgrid being called without indexing kwarg
This commit is contained in:
parent
418eb7062d
commit
ca9b1b18e6
@ -53,7 +53,7 @@ class Patchifier(ABC):
|
|||||||
grid_h = torch.arange(h, dtype=torch.float32, device=device)
|
grid_h = torch.arange(h, dtype=torch.float32, device=device)
|
||||||
grid_w = torch.arange(w, dtype=torch.float32, device=device)
|
grid_w = torch.arange(w, dtype=torch.float32, device=device)
|
||||||
grid_f = torch.arange(f, dtype=torch.float32, device=device)
|
grid_f = torch.arange(f, dtype=torch.float32, device=device)
|
||||||
grid = torch.meshgrid(grid_f, grid_h, grid_w)
|
grid = torch.meshgrid(grid_f, grid_h, grid_w, indexing=None)
|
||||||
grid = torch.stack(grid, dim=0)
|
grid = torch.stack(grid, dim=0)
|
||||||
grid = grid.unsqueeze(0).repeat(batch_size, 1, 1, 1, 1)
|
grid = grid.unsqueeze(0).repeat(batch_size, 1, 1, 1, 1)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user