Spaces:
Runtime error
Runtime error
Update model_converter.py
Browse files- model_converter.py +1 -1
model_converter.py
CHANGED
|
@@ -4,7 +4,7 @@ import safetensors.torch
|
|
| 4 |
def load_from_standard_weights(input_file: str, device: str) -> dict[str, torch.Tensor]:
|
| 5 |
# Taken from: https://github.com/kjsman/stable-diffusion-pytorch/issues/7#issuecomment-1426839447
|
| 6 |
# original_model = torch.load(input_file, map_location=device, weights_only = False)["state_dict"]
|
| 7 |
-
original_model=torch.load(input_file, weights_only = False)["state_dict"]
|
| 8 |
|
| 9 |
converted = {}
|
| 10 |
converted['diffusion'] = {}
|
|
|
|
| 4 |
def load_from_standard_weights(input_file: str, device: str) -> dict[str, torch.Tensor]:
|
| 5 |
# Taken from: https://github.com/kjsman/stable-diffusion-pytorch/issues/7#issuecomment-1426839447
|
| 6 |
# original_model = torch.load(input_file, map_location=device, weights_only = False)["state_dict"]
|
| 7 |
+
original_model=torch.load(input_file, map_location=device ,weights_only = False)["state_dict"]
|
| 8 |
|
| 9 |
converted = {}
|
| 10 |
converted['diffusion'] = {}
|