-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat(ml): add lambda #661
base: master
Are you sure you want to change the base?
feat(ml): add lambda #661
Conversation
models/cm_gan_model.py
Outdated
@@ -24,6 +24,8 @@ def __init__(self, opt, rank): | |||
visual_names_B = ["real_B"] | |||
self.visual_names.append(visual_names_A) | |||
self.visual_names.append(visual_names_B) | |||
self.variable1 = 0.6 |
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.
lambda1
and lambda2
?
util/parser.py
Outdated
@@ -31,7 +31,7 @@ def get_opt(main_opt, remaining_args): | |||
) | |||
|
|||
# Save the config file when --save_config is passed | |||
is_config_saved = False | |||
is_config_saved = True # False |
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.
don't change this ?
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.
If i don not set this into True, I can not have train_config.json file, then, can not do the inference. I'll see if there has other ways
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.
There has no config_save option description in the joliGEN.
I think I do not fully get your idea to "add lambda_gan to self and then to visual_names for it to be plotted." I thought lambda_gan should appear in a separate Visdom window? P.S.: This modification does not display the lambda, and I do not get why use detach here. since in the loss.py , the fake image tensor has already get detached for calculation. |
add function lambda into cm_gan_model
The training works with the following command line
The inference works with the following command line