harsh99 commited on
Commit
9f845b1
·
verified ·
1 Parent(s): a345431

Update model_converter.py

Browse files
Files changed (1) hide show
  1. 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'] = {}