ndbao2002 commited on
Commit
c438be1
1 Parent(s): e97c02d

Update resnet/DDPM_ResNet_sample.py

Browse files
Files changed (1) hide show
  1. resnet/DDPM_ResNet_sample.py +3 -3
resnet/DDPM_ResNet_sample.py CHANGED
@@ -833,15 +833,15 @@ save_each = 1
833
 
834
  diffusion_model = diffusion_model.to(device)
835
 
836
- last_trained_path = 'resnet\model\epoch_30.pth'
837
  diffusion_model.load_state_dict(torch.load(os.path.join(last_trained_path))['model'])
838
 
839
- sample_path = 'resnet/sample2'
840
 
841
  if not os.path.exists(sample_path):
842
  os.mkdir(sample_path)
843
 
844
- num_sample = 500
845
  sample_batch = 16
846
  count = 0
847
 
 
833
 
834
  diffusion_model = diffusion_model.to(device)
835
 
836
+ last_trained_path = '/content/DDPM_ResNet_Unet/resnet/model/epoch_30.pth'
837
  diffusion_model.load_state_dict(torch.load(os.path.join(last_trained_path))['model'])
838
 
839
+ sample_path = '/content/DDPM_ResNet_Unet/resnet/sample'
840
 
841
  if not os.path.exists(sample_path):
842
  os.mkdir(sample_path)
843
 
844
+ num_sample = 10000
845
  sample_batch = 16
846
  count = 0
847