pranavajay commited on
Commit
f96f8ea
·
verified ·
1 Parent(s): e976a07

Update co.py

Browse files
Files changed (1) hide show
  1. co.py +4 -4
co.py CHANGED
@@ -2,14 +2,14 @@ import torch
2
  from safetensors.torch import load_file, save_file
3
 
4
  # Load all three models
5
- model_1 = load_file("merged_model_06.safetensors")
6
- model_2 = load_file("merged_model_6.safetensors")
7
- model_3 = load_file("merged_model_26.safetensors")
8
 
9
  # Combine the models into a single dictionary
10
  combined_model = {**model_1, **model_2, **model_3}
11
 
12
  # Save the combined model as flowgram.safetensors
13
- save_file(combined_model, "midflow_f16_low.safetensors")
14
 
15
  print("Successfully merged the models into flowgram.safetensors")
 
2
  from safetensors.torch import load_file, save_file
3
 
4
  # Load all three models
5
+ model_1 = load_file("diffusion_pytorch_model-00001-of-00003.safetensors")
6
+ model_2 = load_file("diffusion_pytorch_model-00002-of-00003.safetensors")
7
+ model_3 = load_file("diffusion_pytorch_model-00003-of-00003.safetensors")
8
 
9
  # Combine the models into a single dictionary
10
  combined_model = {**model_1, **model_2, **model_3}
11
 
12
  # Save the combined model as flowgram.safetensors
13
+ save_file(combined_model, "midflow_high.safetensors")
14
 
15
  print("Successfully merged the models into flowgram.safetensors")