(seed)
| 23 | import torch.nn.functional as F |
| 24 | |
| 25 | def seed_everything(seed): |
| 26 | torch.manual_seed(seed) |
| 27 | torch.cuda.manual_seed_all(seed) |
| 28 | np.random.seed(seed % (2**32)) |
| 29 | random.seed(seed) |
| 30 | |
| 31 | |
| 32 | def load_images_from_folder(folder, width, height): |