add ffaceformer code

This commit is contained in:
liangsen committed 2022-08-11 15:50:30 +08:00
1 parent 5fcb839ad4
commit b6567d5902
17 files changed
+2013 -114

No files matched your search

+4
View File
@@ -99,6 +99,10 @@ if __name__ == "__main__":
# get model
model = create_model(opt, logger)
model.setup(opt)
nparam = calculate_model_params(model.netG)
logger.info(f"[Network] Total number of parameters: {nparam / 1e6: .3f} M")
train_metric = MeanDictMetric(opt.LOSS.names)
valid_metric = MeanDictMetric(opt.LOSS.names)