-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
Updated cGan_mnist example dependencies, some issues still #263
Conversation
Fix for 1.: In newer versions of julia, loss functions should not be broadcasted and also perform reduction (mean by default). So |
vision/cdcgan_mnist/cGAN_mnist.jl
Outdated
@@ -75,6 +76,8 @@ function (m::Generator)(x, y) | |||
end | |||
|
|||
function load_data(hparams) | |||
MLDatasets.MNIST.download(i_accept_the_terms_of_use=true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove this. It's not needed when including the script from a REPL (julia's typical usage)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do. As someone who ran this using the VSCode extension, it just printed out the text and there was no way for me to respond that "yes please download it". I suspect that anyone who doesn't use the REPL by default (mostly newer users) could stumble in the same spot. Should I add a comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That probably also explains what cd(@__DIR__)
is doing in all these files 😅 excuse my ignorance
Let's keep them! Or even better, replace them with the ones you obtain from a run on your machine. Keeping the generated images for comparison safeguards us from visual rquality regressions |
Note that in the most recent commits I had to change the global |
bump :) |
thank you for this! |
I updated the dependencies for the cdcgan_mnist example to be more modern.
Three other things:
load_data
function to actually download the data. Without it, the prompt to download the data will appear, but I don't think there's a way for me to respond, so it gets stuck. The way I have it now, it will download data every time the script is run, which isn't optimal either.