mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-30 03:01:28 +00:00
Removed variant
This commit is contained in:
@@ -201,7 +201,7 @@ class StableDiffusion:
|
|||||||
model_path,
|
model_path,
|
||||||
dtype=dtype,
|
dtype=dtype,
|
||||||
device=self.device_torch,
|
device=self.device_torch,
|
||||||
variant="fp16",
|
# variant="fp16",
|
||||||
use_safetensors=True,
|
use_safetensors=True,
|
||||||
**load_args
|
**load_args
|
||||||
)
|
)
|
||||||
@@ -389,7 +389,7 @@ class StableDiffusion:
|
|||||||
load_safety_checker=False,
|
load_safety_checker=False,
|
||||||
requires_safety_checker=False,
|
requires_safety_checker=False,
|
||||||
safety_checker=None,
|
safety_checker=None,
|
||||||
variant="fp16",
|
# variant="fp16",
|
||||||
trust_remote_code=True,
|
trust_remote_code=True,
|
||||||
**load_args
|
**load_args
|
||||||
).to(self.device_torch)
|
).to(self.device_torch)
|
||||||
@@ -473,7 +473,7 @@ class StableDiffusion:
|
|||||||
model_path,
|
model_path,
|
||||||
dtype=dtype,
|
dtype=dtype,
|
||||||
device=self.device_torch,
|
device=self.device_torch,
|
||||||
variant="fp16",
|
# variant="fp16",
|
||||||
use_safetensors=True,
|
use_safetensors=True,
|
||||||
).to(self.device_torch)
|
).to(self.device_torch)
|
||||||
else:
|
else:
|
||||||
@@ -1696,7 +1696,7 @@ class StableDiffusion:
|
|||||||
model_path,
|
model_path,
|
||||||
dtype=dtype,
|
dtype=dtype,
|
||||||
device='cpu',
|
device='cpu',
|
||||||
variant="fp16",
|
# variant="fp16",
|
||||||
use_safetensors=True,
|
use_safetensors=True,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user