Update resnet/DDPM_ResNet_sample.py
Browse files
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
|
837 |
diffusion_model.load_state_dict(torch.load(os.path.join(last_trained_path))['model'])
|
838 |
|
839 |
-
sample_path = 'resnet/
|
840 |
|
841 |
if not os.path.exists(sample_path):
|
842 |
os.mkdir(sample_path)
|
843 |
|
844 |
-
num_sample =
|
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 |
|