Skip to content
Snippets Groups Projects
Unverified Commit 9dd8a0d8 authored by NBouteldja's avatar NBouteldja Committed by GitHub
Browse files

Update cycle_gan_model.py

parent c6260799
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ class CycleGANModel(BaseModel): ...@@ -45,7 +45,7 @@ class CycleGANModel(BaseModel):
if is_train: if is_train:
parser.add_argument('--lambda_A', type=float, default=1.0, help='weight for cycle loss (A -> B -> A)') parser.add_argument('--lambda_A', type=float, default=1.0, help='weight for cycle loss (A -> B -> A)')
parser.add_argument('--lambda_B', type=float, default=1.0, help='weight for cycle loss (B -> A -> B)') parser.add_argument('--lambda_B', type=float, default=1.0, help='weight for cycle loss (B -> A -> B)')
parser.add_argument('--lambda_Seg', type=float, default=.5, help='weight for cycle loss (Seg(A), A -> B -> A, Seg(A))') parser.add_argument('--lambda_Seg', type=float, default=1.0, help='weight for cycle loss (Seg(A), A -> B -> A, Seg(A))')
parser.add_argument('--lambda_id', type=float, default=1.0, help='use identity mapping. Setting lambda_identity other than 0 has an effect of scaling the weight of the identity mapping loss. For example, if the weight of the identity loss should be 10 times smaller than the weight of the reconstruction loss, please set lambda_identity = 0.1') parser.add_argument('--lambda_id', type=float, default=1.0, help='use identity mapping. Setting lambda_identity other than 0 has an effect of scaling the weight of the identity mapping loss. For example, if the weight of the identity loss should be 10 times smaller than the weight of the reconstruction loss, please set lambda_identity = 0.1')
return parser return parser
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment