Create fix.py
Browse files
fix.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from safetensors.torch import load_file
|
2 |
+
|
3 |
+
# Step 1: Load the safetensors file
|
4 |
+
checkpoint_path = 'flowgram.safetensors' # Replace with your actual file path
|
5 |
+
checkpoint = load_file(checkpoint_path)
|
6 |
+
|
7 |
+
# Step 2: Print the size (shape) of each tensor
|
8 |
+
for tensor_name, tensor in checkpoint.items():
|
9 |
+
print(f"Tensor Name: {tensor_name}, Size: {tensor.shape}")
|