Skip to content

Commit

Permalink
cond module updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Fuest committed Dec 20, 2024
1 parent 9c8a6bb commit bdf831d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defaults:
- evaluator: default
- _self_

device: 0 # 0, cpu
device: 1 # 0, cpu

job_name: ${model.name}_${dataset.name}_${dataset.user_group}
run_dir: outputs/${job_name}/${now:%Y-%m-%d_%H-%M-%S}
Expand Down
6 changes: 3 additions & 3 deletions config/model/acgan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: acgan
noise_dim: 256
cond_emb_dim: 64
sparse_conditioning_loss_weight: 0.5
kl_weight: 0.1
kl_weight: 0.5

batch_size: 32
batch_size: 64
n_epochs: 200
lr_gen: 3e-4
lr_gen: 2e-4
lr_discr: 1e-4
warm_up_epochs: 100
include_auxiliary_losses: True
Expand Down
2 changes: 1 addition & 1 deletion eval/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def create_visualizations(
dataset: Any,
model: Any,
num_samples: int = 100,
num_runs: int = 10,
num_runs: int = 3,
):
"""
Create various visualizations for the evaluation results.
Expand Down
2 changes: 1 addition & 1 deletion generator/conditioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


class ConditioningModule(nn.Module):
def __init__(self, categorical_dims, embedding_dim, device, alpha=0.8):
def __init__(self, categorical_dims, embedding_dim, device, alpha=0.1):
super(ConditioningModule, self).__init__()
self.embedding_dim = embedding_dim
self.device = device
Expand Down

0 comments on commit bdf831d

Please sign in to comment.