fbnnb commited on
Commit
86759b4
1 Parent(s): cf50d78

Update scripts/evaluation/funcs.py

Browse files
Files changed (1) hide show
  1. scripts/evaluation/funcs.py +3 -3
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
- # 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)
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