Open LiuHuijie6410 opened 7 months ago
Congratulations on a great job. I've fixed the random seed using the code below, but the output is still different every time.
def init_seed(seed): torch.cuda.manual_seed_all(seed) torch.manual_seed(seed) np.random.seed(seed) random.seed(seed) # torch.backends.cudnn.enabled = False torch.backends.cudnn.deterministic = True torch.backends.cudnn.benchmark = False
How about trying our original code to fix the generation?
Congratulations on a great job. I've fixed the random seed using the code below, but the output is still different every time.