Update sh.py
Browse files
sh.py
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
|
|
|
2 |
from safetensors.torch import load_file
|
3 |
|
|
|
4 |
# Load both models
|
5 |
-
model1 =
|
6 |
-
model2 =
|
7 |
|
8 |
# Iterate through the tensor names and shapes
|
9 |
for name in model1.keys():
|
|
|
1 |
|
2 |
+
import torch
|
3 |
from safetensors.torch import load_file
|
4 |
|
5 |
+
|
6 |
# Load both models
|
7 |
+
model1 = load_file('merged_model0.safetensors')
|
8 |
+
model2 = load_file('diffusion_pytorch_model-00001-of-00003.safetensors')
|
9 |
|
10 |
# Iterate through the tensor names and shapes
|
11 |
for name in model1.keys():
|