Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/tensorpack/tensorpack
/ _augment
Method
_augment
tensorpack/dataflow/imgaug/deform.py:106–108 ·
view source on GitHub ↗
(self, img, v)
Source
from the content-addressed store, hash-verified
104
return
TransformFactory(name=str(self), apply_image=
lambda
img: self._augment(img, v))
105
106
def
_augment(self, img, v):
107
grid = self.grid + np.dot(self.gws, v)
108
return
np_sample(img, grid)
Callers
1
get_transform
Method · 0.95
Calls
1
np_sample
Function · 0.85
Tested by
no test coverage detected