MCPcopy Create free account
hub / github.com/00why00/JoDiffusion / Mask2Tensor

Class Mask2Tensor

train_ae.py:264–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262
263
264class Mask2Tensor(torch.nn.Module):
265 def __call__(self, x):
266 return torch.from_numpy(np.array(x)).long()
267
268class EncodeBitMap(torch.nn.Module):
269 def __init__(self, n=8, fill_value=0.5, ignore_label=0):

Callers 2

make_train_datasetFunction · 0.90
make_train_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected