reoe commited on
Commit
26f104e
1 Parent(s): 3d2df7c

Upload safetensors-to-diffusers.py

Browse files
Files changed (1) hide show
  1. safetensors-to-diffusers.py +6 -0
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")