MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / meshgrid

Method meshgrid

ldm/models/diffusion/ddpm.py:685–690  ·  view source on GitHub ↗
(self, h, w)

Source from the content-addressed store, hash-verified

683 return c
684
685 def meshgrid(self, h, w):
686 y = torch.arange(0, h).view(h, 1, 1).repeat(1, w, 1)
687 x = torch.arange(0, w).view(1, w, 1).repeat(h, 1, 1)
688
689 arr = torch.cat([y, x], dim=-1)
690 return arr
691
692 def delta_border(self, h, w):
693 """

Callers 6

delta_borderMethod · 0.95
surfFunction · 0.80
gen_kernelFunction · 0.80
fspecial_gaussianFunction · 0.80
gen_kernelFunction · 0.80
fspecial_gaussianFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected