Skip to content

Commit

Permalink
update output
Browse files Browse the repository at this point in the history
  • Loading branch information
adinhobl committed Dec 1, 2020
1 parent 66fd17e commit 3de3750
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vision/cdcgan_mnist/cGAN_mnist.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ function train(; kws...)
opt_dscr = ADAM(hparams.lr_dscr, (0.5, 0.99))
opt_gen = ADAM(hparams.lr_gen, (0.5, 0.99))

# Check if the `output` directory exists or needed to be created
isdir("output")||mkdir("output")
# Check if the `results` directory exists or needed to be created
isdir("results")||mkdir("results")

# Training
train_steps = 0
Expand All @@ -173,15 +173,15 @@ function train(; kws...)
@info("Train step $(train_steps), Discriminator loss = $(loss["discr"]), Generator loss = $(loss["gen"])")
# Save generated fake image
output_image = create_output_image(gen, fixed_noise, fixed_labels, hparams)
save(@sprintf("output/cgan_steps_%06d.png", train_steps), output_image)
save(@sprintf("results/cgan_steps_%06d.png", train_steps), output_image)
end

train_steps += 1
end
end

output_image = create_output_image(gen, fixed_noise, fixed_labels, hparams)
save(@sprintf("output/cgan_steps_%06d.png", train_steps), output_image)
save(@sprintf("results/cgan_steps_%06d.png", train_steps), output_image)
return Flux.onecold.(cpu(fixed_labels))
end

Expand Down
Binary file added vision/cdcgan_mnist/results/cgan_steps_000000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/cdcgan_mnist/results/cgan_steps_001000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/cdcgan_mnist/results/cgan_steps_002000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/cdcgan_mnist/results/cgan_steps_003000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/cdcgan_mnist/results/cgan_steps_004000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/cdcgan_mnist/results/cgan_steps_005000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/cdcgan_mnist/results/cgan_steps_006000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/cdcgan_mnist/results/cgan_steps_007000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/cdcgan_mnist/results/cgan_steps_009000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/cdcgan_mnist/results/cgan_steps_010000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/cdcgan_mnist/results/cgan_steps_011000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/cdcgan_mnist/results/cgan_steps_011725.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3de3750

Please sign in to comment.