Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kitware/COAT
/ ToTensor
Class
ToTensor
utils/transforms.py:127–131 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
125
126
127
class
ToTensor:
128
def
__call__(self, image, target):
129
# convert [0, 255] to [0, 1]
130
image = F.to_tensor(image)
131
return
image, target
132
133
134
def
build_transforms(cfg, is_train):
Callers
1
build_transforms
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected