i
This commit is contained in:
parent
69f57c0454
commit
54ce9a58ca
14
entry.py
14
entry.py
@ -130,10 +130,14 @@ def denoiser(input, sigma, c):
|
|||||||
return model.denoiser(model.model, input, sigma, c)
|
return model.denoiser(model.model, input, sigma, c)
|
||||||
|
|
||||||
|
|
||||||
model.model.to(torch.float16).cuda()
|
with torch.no_grad():
|
||||||
model.denoiser.to(torch.float16).cuda()
|
model.model.to(torch.float16).cuda()
|
||||||
samples_z = sampler(denoiser, randn, cond=c, uc=uc)
|
model.denoiser.to(torch.float16).cuda()
|
||||||
model.model.cpu()
|
samples_z = sampler(denoiser, randn, cond=c, uc=uc)
|
||||||
model.denoiser.cpu()
|
model.model.cpu()
|
||||||
|
model.denoiser.cpu()
|
||||||
|
|
||||||
|
torch.cuda.empty_cache()
|
||||||
|
torch.cuda.ipc_collect()
|
||||||
|
|
||||||
a = 0
|
a = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user