Skip to content

Commit

Permalink
Naming mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
anordertoreclaim committed Aug 16, 2019
1 parent a08fdf5 commit 1161717
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def main():
model.load_state_dict(torch.load(cfg.model_path))

label = None if cfg.label == -1 else cfg.label
samples = model.sample((cfg.data_channels, cfg.height, cfg.width), cfg.count, label=label, device=device)
samples = model.sample((3, cfg.height, cfg.width), cfg.count, label=label, device=device)
save_samples(samples, OUTPUT_DIRNAME, OUTPUT_FILENAME)


Expand Down
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_and_sample(cfg, model, device, test_loader, height, width, losses, para
losses.append(test_loss)
params.append(model.state_dict())

samples = model.sample((cfg.data_channels, height, width), cfg.epoch_samples, device=device)
samples = model.sample((3, height, width), cfg.epoch_samples, device=device)
save_samples(samples, TRAIN_SAMPLES_DIR, 'epoch{}_samples.png'.format(epoch + 1))


Expand Down

0 comments on commit 1161717

Please sign in to comment.