Revert "Startup OOM fix (optimized)"

This reverts commit fe173407fe.
This commit is contained in:
hlky 2022-08-30 16:30:30 +01:00
parent 67cd56b478
commit 33517d4381
No known key found for this signature in database
GPG Key ID: 55A99F1E80D907D5

View File

@ -357,8 +357,7 @@ if opt.optimized:
model = instantiate_from_config(config.modelUNet)
_, _ = model.load_state_dict(sd, strict=False)
if not opt.optimized:
model.cuda()
model.cuda()
model.eval()
model.turbo = opt.optimized_turbo