Skip to content
Snippets Groups Projects
Commit 9ba2b2a2 authored by zeroact's avatar zeroact
Browse files

changed post-processing and adam beta values

parent 06dcb48c
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,8 @@ def preprocess_image(img, target_shape: tuple):
return img
def postprocess_image(img):
# img = img * 255
img = (img - img.min()) / (img.max() - img.min()) * 255
img = img * 255
img = np.clip(img, 0, 255)
return img.astype(np.uint8)
class CustomDataset(Dataset):
......
......@@ -104,7 +104,7 @@ if __name__ == "__main__":
print(f"Training start from epoch {initial_epoch}")
# Train Setting
model_optim = Adam(model.parameters(), 0.0001)
model_optim = Adam(model.parameters(), 0.0001, (0.5, 0.9))
discrim_optim = Adam(model.discrim.parameters(), 0.0004)
### Train
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment