pranavajay
commited on
Update co.py
Browse files
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("
|
6 |
-
model_2 = load_file("
|
7 |
-
model_3 = load_file("
|
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, "
|
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")
|