Skip to content

Commit

Permalink
Bugfix SDE val loss, remove early stopping
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanCrabbe committed Dec 28, 2023
1 parent 00d848b commit e8d59cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/conf/trainer/callbacks/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
monitor: val/loss
filename: "epoch={epoch}-val_loss={val/loss:.2f}"
auto_insert_metric_name: false
- _target_: pytorch_lightning.callbacks.EarlyStopping
monitor: val/loss
patience: 20
- _target_: fdiff.utils.callbacks.SamplingCallback
every_n_epochs: 10
sample_batch_size: ${datamodule.batch_size}
Expand Down
2 changes: 2 additions & 0 deletions src/fdiff/dataloaders/datamodules.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def __init__(
self.standardize = standardize
if X_ref is None:
X_ref = X
elif fourier_transform:
X_ref = dft(X_ref).detach()
self.feature_mean = X_ref.mean(dim=0)
self.feature_std = X_ref.std(dim=0)

Expand Down

0 comments on commit e8d59cd

Please sign in to comment.