MCPcopy Create free account
hub / github.com/Zhiyuan-R/Tiger-Diffusion / __init__

Method __init__

test_generation.py:274–279  ·  view source on GitHub ↗
(self, args, betas, loss_type: str, model_mean_type: str, model_var_type:str)

Source from the content-addressed store, hash-verified

272
273class Model(nn.Module):
274 def __init__(self, args, betas, loss_type: str, model_mean_type: str, model_var_type:str):
275 super(Model, self).__init__()
276 self.diffusion = GaussianDiffusion(betas, loss_type, model_mean_type, model_var_type)
277
278 self.model = PVCNN2(num_classes=args.nc, embed_dim=args.embed_dim, use_att=args.attention,
279 dropout=args.dropout, extra_feature_channels=0)
280
281 def prior_kl(self, x0):
282 return self.diffusion._prior_bpd(x0)

Callers 1

__init__Method · 0.45

Calls 2

PVCNN2Class · 0.85
GaussianDiffusionClass · 0.70

Tested by

no test coverage detected