mirror of
https://github.com/aladdinpersson/Machine-Learning-Collection.git
synced 2026-04-10 12:33:44 +00:00
checked GAN code
This commit is contained in:
@@ -11,7 +11,7 @@ LAMBDA_IDENTITY = 0.0
|
||||
LAMBDA_CYCLE = 10
|
||||
NUM_WORKERS = 4
|
||||
NUM_EPOCHS = 10
|
||||
LOAD_MODEL = True
|
||||
LOAD_MODEL = False
|
||||
SAVE_MODEL = True
|
||||
CHECKPOINT_GEN_H = "genh.pth.tar"
|
||||
CHECKPOINT_GEN_Z = "genz.pth.tar"
|
||||
@@ -24,6 +24,6 @@ transforms = A.Compose(
|
||||
A.HorizontalFlip(p=0.5),
|
||||
A.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5], max_pixel_value=255),
|
||||
ToTensorV2(),
|
||||
],
|
||||
],
|
||||
additional_targets={"image0": "image"},
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user