-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
664fe4e
commit 8f4bdcc
Showing
30 changed files
with
1,743 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
batch_size: 128 | ||
n_workers: 6 # Multirun launcher requires n_workers=0 otherwise it fails | ||
name: mnist | ||
|
||
train: | ||
_target_: torch.utils.data.DataLoader | ||
dataset: | ||
_target_: autoencoders.data.SiDAEDataset2 | ||
dataset: | ||
_target_: autoencoders.data.get_mnist_dataset | ||
train: True | ||
batch_size: ${data.batch_size} | ||
shuffle: True | ||
num_workers: ${data.n_workers} | ||
|
||
valid: | ||
_target_: torch.utils.data.DataLoader | ||
dataset: | ||
_target_: autoencoders.data.SiDAEDataset2 | ||
dataset: | ||
_target_: autoencoders.data.get_mnist_dataset | ||
train: False | ||
batch_size: ${data.batch_size} | ||
shuffle: False | ||
num_workers: ${data.n_workers} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Defining the optimizer as a group default allows CLI override, e.g. | ||
# python train.py "optimizer@model.optimizer=sgd" | ||
# or via config "override scheduler@model.scheduler: cyclic" | ||
# See https://stackoverflow.com/questions/71438040/overwriting-hydra-configuration-groups-from-cli/71439510#71439510 | ||
defaults: | ||
- /optimizer@optimizer: adam | ||
- /scheduler@scheduler: plateau | ||
|
||
name: SiDAE2 | ||
|
||
nn: | ||
_target_: autoencoders.models.sidae.SiDAE2 | ||
encoder: | ||
_target_: autoencoders.modules.CNNEncoderProjection | ||
channels_in: 1 | ||
base_channels: 32 | ||
latent_dim: ${model.nn.dim} | ||
decoder: | ||
_target_: autoencoders.modules.CNNDecoder | ||
channels_in: 1 | ||
base_channels: 32 | ||
latent_dim: ${model.nn.dim} | ||
dim: 512 | ||
pred_dim: 512 | ||
alpha: .25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
outputs/SiDAE/train/2023-09-15/23-45-29/.hydra/config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
data: | ||
batch_size: 256 | ||
n_workers: 10 | ||
name: mnist | ||
train: | ||
_target_: torch.utils.data.DataLoader | ||
dataset: | ||
_target_: autoencoders.data.SiDAEDataset | ||
dataset: | ||
_target_: autoencoders.data.get_mnist_dataset | ||
train: true | ||
num_ops: 1 | ||
loc: 0 | ||
scale: 1 | ||
factor: 0.05 | ||
batch_size: ${data.batch_size} | ||
shuffle: true | ||
num_workers: ${data.n_workers} | ||
valid: | ||
_target_: torch.utils.data.DataLoader | ||
dataset: | ||
_target_: autoencoders.data.SiDAEDataset | ||
dataset: | ||
_target_: autoencoders.data.get_mnist_dataset | ||
train: false | ||
num_ops: 1 | ||
loc: 0 | ||
scale: 1 | ||
factor: 1.0 | ||
batch_size: ${data.batch_size} | ||
shuffle: false | ||
num_workers: ${data.n_workers} | ||
model: | ||
optimizer: | ||
_target_: torch.optim.Adam | ||
_partial_: true | ||
lr: 0.001 | ||
betas: | ||
- 0.9 | ||
- 0.999 | ||
weight_decay: 0 | ||
scheduler: | ||
_target_: torch.optim.lr_scheduler.ReduceLROnPlateau | ||
_partial_: true | ||
mode: min | ||
factor: 0.1 | ||
patience: 10 | ||
name: SiDAE | ||
nn: | ||
_target_: autoencoders.models.sidae.SiDAE | ||
encoder: | ||
_target_: autoencoders.modules.CNNEncoderProjection | ||
channels_in: 1 | ||
base_channels: 32 | ||
latent_dim: ${model.nn.dim} | ||
decoder: | ||
_target_: autoencoders.modules.CNNDecoder | ||
channels_in: 1 | ||
base_channels: 32 | ||
latent_dim: ${model.nn.dim} | ||
dim: 512 | ||
pred_dim: 512 | ||
trainer: | ||
_target_: pytorch_lightning.Trainer | ||
max_epochs: 100 | ||
accelerator: mps | ||
devices: 1 | ||
logger: | ||
_target_: pytorch_lightning.loggers.WandbLogger | ||
project: autoencoders | ||
name: null | ||
id: null | ||
group: null | ||
job_type: null | ||
save_dir: ${hydra:runtime.output_dir} | ||
log_model: true | ||
tags: ${tags} | ||
callbacks: | ||
model_summary: | ||
_target_: pytorch_lightning.callbacks.RichModelSummary | ||
progress_bar: | ||
_target_: pytorch_lightning.callbacks.RichProgressBar | ||
refresh_rate: 5 | ||
leave: true | ||
early_stopping: | ||
_target_: pytorch_lightning.callbacks.EarlyStopping | ||
monitor: train-loss | ||
min_delta: 0.001 | ||
patience: 10 | ||
check_on_train_epoch_end: true | ||
model_checkpoint: | ||
_target_: pytorch_lightning.callbacks.ModelCheckpoint | ||
dirpath: ${hydra:runtime.output_dir}/checkpoints | ||
monitor: train-loss | ||
save_top_k: 1 | ||
save_on_train_epoch_end: true | ||
tags: | ||
- ${data.name} | ||
- ${model.name} |
Oops, something went wrong.