(self, args, betas, loss_type: str, model_mean_type: str, model_var_type:str)
| 272 | |
| 273 | class 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) |
no test coverage detected