Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #699 #700

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions anomalib/models/cflow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ dataset:
train_batch_size: 16
test_batch_size: 16
inference_batch_size: 16
fiber_batch_size: 64
num_workers: 8
transform_config:
train: null
Expand All @@ -27,7 +26,8 @@ model:
condition_vector: 128
coupling_blocks: 8
clamp_alpha: 1.9
soft_permutation: false
fiber_batch_size: 64
jpcbertoldo marked this conversation as resolved.
Show resolved Hide resolved
permute_soft: false
lr: 0.0001
early_stopping:
patience: 2
Expand Down
4 changes: 2 additions & 2 deletions anomalib/models/cflow/lightning_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ def __init__(self, hparams: Union[DictConfig, ListConfig]) -> None:
backbone=hparams.model.backbone,
layers=hparams.model.layers,
pre_trained=hparams.model.pre_trained,
fiber_batch_size=hparams.dataset.fiber_batch_size,
fiber_batch_size=hparams.model.fiber_batch_size,
decoder=hparams.model.decoder,
condition_vector=hparams.model.condition_vector,
coupling_blocks=hparams.model.coupling_blocks,
clamp_alpha=hparams.model.clamp_alpha,
permute_soft=hparams.model.soft_permutation,
permute_soft=hparams.model.permute_soft,
)
self.hparams: Union[DictConfig, ListConfig] # type: ignore
self.save_hyperparameters(hparams)
Expand Down