Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/XingangPan/DragGAN
/ scale2d
Function
scale2d
training/augment.py:73–78 ·
view source on GitHub ↗
(sx, sy, **kwargs)
Source
from the content-addressed store, hash-verified
71
**kwargs)
72
73
def
scale2d(sx, sy, **kwargs):
74
return
matrix(
75
[sx, 0, 0],
76
[0, sy, 0],
77
[0, 0, 1],
78
**kwargs)
79
80
def
scale3d(sx, sy, sz, **kwargs):
81
return
matrix(
Callers
2
scale2d_inv
Function · 0.70
forward
Method · 0.70
Calls
1
matrix
Function · 0.70
Tested by
no test coverage detected