I. Example in DCGan: https://github.com/pytorch/examples/blob/master/dcgan/main.py Step 1. Set seed if opt.manualSeed is None : opt.manualSeed = random.randint( 1 , 10000 ) print ( Random Seed: , opt.manualSeed) random.seed(opt.manualSee ...
I'd like to save the best_model during training process with epoch_num epochs. I tried several ways, but only the way of saving the middle best_model to local computer works. The deepcopy (self.best_model = copy.deepcopy(self.model_ft)) did not work The model assignment (self.best_mode ...
Traceback (most recent call last): File cluster_resnet_9.py, line 361, in module train_model.save_model(model_path) File cluster_resnet_9.py, line 211, in eval_model if self.cuda_id -1: File /home/linlin/anaconda2/lib/python2 ...