Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PeizeSun/TransTrack
/ __call__
Method
__call__
datasets/transforms.py:265–267 ·
view source on GitHub ↗
(self, img, target=None)
Source
from the content-addressed store, hash-verified
263
self.max_size = max_size
264
265
def
__call__(self, img, target=None):
266
size = random.choice(self.sizes)
267
return
resize(img, target, size, self.max_size)
268
269
270
class
RandomPad(object):
Callers
nothing calls this directly
Calls
1
resize
Function · 0.70
Tested by
no test coverage detected