Spaces:
Paused
Paused
lllyasviel
commited on
Commit
·
573dc98
1
Parent(s):
ebfe47d
entry.py
CHANGED
@@ -91,6 +91,7 @@ sampler = EulerAncestralSampler(
|
|
91 |
config_path = './sd_xl_base.yaml'
|
92 |
config = OmegaConf.load(config_path)
|
93 |
model = instantiate_from_config(config.model).cpu()
|
|
|
94 |
model.eval()
|
95 |
model.load_state_dict(safetensors.torch.load_file('./sd_xl_base_1.0.safetensors'), strict=False)
|
96 |
|
|
|
91 |
config_path = './sd_xl_base.yaml'
|
92 |
config = OmegaConf.load(config_path)
|
93 |
model = instantiate_from_config(config.model).cpu()
|
94 |
+
model.to(torch.float16)
|
95 |
model.eval()
|
96 |
model.load_state_dict(safetensors.torch.load_file('./sd_xl_base_1.0.safetensors'), strict=False)
|
97 |
|