mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-10 23:01:22 +00:00
Compare commits
2 Commits
main
...
8acc24052f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8acc24052f | ||
|
|
d65f46c297 |
@@ -83,7 +83,7 @@ def _load_target_model(
|
||||
# Diffusers model is loaded to CPU
|
||||
from diffusers import StableDiffusionXLPipeline
|
||||
|
||||
variant = "fp16" if weight_dtype == torch.float16 else None
|
||||
variant = "fp16" if weight_dtype == torch.float16 else "bf16" if weight_dtype == torch.bfloat16 else None
|
||||
logger.info(f"load Diffusers pretrained models: {name_or_path}, variant={variant}")
|
||||
try:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user