Upload safetensors-to-diffusers.py
Browse files
safetensors-to-diffusers.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import torch
|
2 |
+
import safetensors
|
3 |
+
import diffusers
|
4 |
+
|
5 |
+
pipe = diffusers.StableDiffusionXLPipeline.from_single_file("illustrious0.1-smoothftspo-v14t1s-rotate.safetensors")
|
6 |
+
pipe.save_pretrained("illustrious0.1-smoothftspo-v14t1s-rotate")
|