Update scripts/evaluation/funcs.py
Browse files
scripts/evaluation/funcs.py
CHANGED
|
@@ -79,9 +79,9 @@ 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 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
## reconstruct from latent to pixel space
|
| 86 |
batch_images = model.decode_first_stage(samples, **additional_decode_kwargs)
|
| 87 |
|
|
|
|
| 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, v.dtype)
|
| 84 |
+
print(samples.device, samples.dtype)
|
| 85 |
## reconstruct from latent to pixel space
|
| 86 |
batch_images = model.decode_first_stage(samples, **additional_decode_kwargs)
|
| 87 |
|