fix: example test fixed

This commit is contained in:
Alexander Engelsberger
2023-06-20 17:42:36 +02:00
parent 72e9587a10
commit 634ef86a2c
7 changed files with 6 additions and 26 deletions

View File

@@ -51,8 +51,7 @@ if __name__ == "__main__":
# Hyperparameters
hparams = dict(
distribution=[1, 2, 3],
proto_lr=0.01,
bb_lr=0.01,
lr=0.01,
)
# Initialize the backbone

View File

@@ -51,8 +51,7 @@ if __name__ == "__main__":
# Hyperparameters
hparams = dict(
distribution=[1, 2, 3],
proto_lr=0.01,
bb_lr=0.01,
lr=0.01,
input_dim=2,
latent_dim=1,
)

View File

@@ -55,7 +55,9 @@ if __name__ == "__main__":
# Setup trainer for GNG
trainer = pl.Trainer(
max_epochs=1000,
accelerator="cpu",
max_epochs=50 if args.fast_dev_run else
1000, # 10 epochs fast dev run reproducible DIV error.
callbacks=[
es,
],