mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-24 08:19:24 +00:00
Improvements to dataloader
This commit is contained in:
@@ -330,6 +330,7 @@ class StableDiffusion:
|
||||
requires_safety_checker=False,
|
||||
safety_checker=None,
|
||||
variant="fp16",
|
||||
trust_remote_code=True,
|
||||
**load_args
|
||||
).to(self.device_torch)
|
||||
else:
|
||||
@@ -341,6 +342,7 @@ class StableDiffusion:
|
||||
requires_safety_checker=False,
|
||||
torch_dtype=self.torch_dtype,
|
||||
safety_checker=None,
|
||||
trust_remote_code=True,
|
||||
**load_args
|
||||
).to(self.device_torch)
|
||||
flush()
|
||||
|
||||
Reference in New Issue
Block a user