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

Method __init__

train_ae.py:269–273  ·  view source on GitHub ↗
(self, n=8, fill_value=0.5, ignore_label=0)

Source from the content-addressed store, hash-verified

267
268class EncodeBitMap(torch.nn.Module):
269 def __init__(self, n=8, fill_value=0.5, ignore_label=0):
270 super().__init__()
271 self.n = n
272 self.fill_value = fill_value
273 self.ignore_label = ignore_label
274
275 def __call__(self, x):
276 ignore_mask = x == self.ignore_label

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected