Update scripts/evaluation/funcs.py
Browse files
scripts/evaluation/funcs.py
CHANGED
@@ -79,8 +79,8 @@ def batch_ddim_sampling(model, cond, noise_shape, n_samples=1, ddim_steps=50, dd
|
|
79 |
torch.cuda.empty_cache()
|
80 |
model.cpu()
|
81 |
model.first_stage_model.cuda()
|
82 |
-
for k, v in model.named_parameters():
|
83 |
-
print(k, v.device)
|
84 |
|
85 |
## reconstruct from latent to pixel space
|
86 |
batch_images = model.decode_first_stage(samples, **additional_decode_kwargs)
|
|
|
79 |
torch.cuda.empty_cache()
|
80 |
model.cpu()
|
81 |
model.first_stage_model.cuda()
|
82 |
+
# for k, v in model.named_parameters():
|
83 |
+
# print(k, v.device)
|
84 |
|
85 |
## reconstruct from latent to pixel space
|
86 |
batch_images = model.decode_first_stage(samples, **additional_decode_kwargs)
|