Improvements to dataloader

This commit is contained in:
Jaret Burkett
2024-04-27 09:28:28 -06:00
parent 5da3613e0b
commit b96913d73c
5 changed files with 21 additions and 17 deletions

View File

@@ -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()