fbnnb commited on
Commit
697abeb
1 Parent(s): da151b2

Update scripts/evaluation/funcs.py

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