Testing VAE until it works - v1

This commit is contained in:
Johnny Fernandes
2026-05-02 18:38:55 +01:00
parent 6c1e939803
commit 02b1f7f16f
3 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ def main(config_path, *, data_dir_override=None, output_root="generator/outputs"
# Count total trainable parameters
if isinstance(model, tuple):
n_params = sum(p.numel() for p in model[0].parameters() if p.requires_grad)
n_params = sum(p.numel() for m in model for p in m.parameters() if p.requires_grad)
else:
n_params = sum(p.numel() for p in model.parameters() if p.requires_grad)
print(f"Trainable params: {n_params:,}")