Spaces:
Sleeping
Sleeping
Update modules/sd_models.py
Browse files- modules/sd_models.py +1 -1
modules/sd_models.py
CHANGED
|
@@ -874,7 +874,7 @@ def load_model(checkpoint_info=None, already_loaded_state_dict=None):
|
|
| 874 |
|
| 875 |
if not torch.cuda.is_available():
|
| 876 |
print("Running on CPU: forcing model to float32")
|
| 877 |
-
sd_model.
|
| 878 |
|
| 879 |
with torch.no_grad():
|
| 880 |
sd_model.cond_stage_model_empty_prompt = get_empty_cond(sd_model)
|
|
|
|
| 874 |
|
| 875 |
if not torch.cuda.is_available():
|
| 876 |
print("Running on CPU: forcing model to float32")
|
| 877 |
+
sd_model = sd_model.float()
|
| 878 |
|
| 879 |
with torch.no_grad():
|
| 880 |
sd_model.cond_stage_model_empty_prompt = get_empty_cond(sd_model)
|