mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
PR revision: replace cuda call with dynamic type
This commit is contained in:
parent
eb58276a2c
commit
e82c5eba18
@ -494,7 +494,7 @@ The vast majority of these arguments default to reasonable values.
|
|||||||
sd = pl_sd["state_dict"]
|
sd = pl_sd["state_dict"]
|
||||||
model = instantiate_from_config(config.model)
|
model = instantiate_from_config(config.model)
|
||||||
m, u = model.load_state_dict(sd, strict=False)
|
m, u = model.load_state_dict(sd, strict=False)
|
||||||
model.cuda()
|
model.to(self.device)
|
||||||
model.eval()
|
model.eval()
|
||||||
if self.full_precision:
|
if self.full_precision:
|
||||||
print('Using slower but more accurate full-precision math (--full_precision)')
|
print('Using slower but more accurate full-precision math (--full_precision)')
|
||||||
|
Loading…
Reference in New Issue
Block a user