Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KintCark authored Sep 13, 2024
1 parent 43155d7 commit bda4136
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

#Mediapipe safetensors converter termux
LCM and Hyper SD1.5 Models Work!
Bf16 isn't supported
Bf16 is now Supported!!


Update:if u use a mediapipe converter you will sometimes get a complete conversion but it will have 3 files missing alpha_cumprod,alpha_cumprod_prev,and beta.bin
Expand All @@ -17,33 +18,7 @@ pkg updated && pkg upgrade -y && termux-setup-storage && pkg install wget -y &&

apt update && apt upgrade -y && apt-get install curl git gcc make build-essential python3 python3-dev python3-distutils python3-pip python3-venv python-is-python3 -y

3>

pip install torch typing_extensions numpy Pillow requests pytorch_lightning absl-py

4>

pip install torch safetensors diffusers

5>

first Navigate to termux ubuntu root folder.

next create 2 folders name one ckpt and the other output.

then copy the ckpt-convert.py and convert.py files to the ubuntu root folder.

next download any safetensors model and copy it to your ubuntu root folder,I like to use stargon browser Cuzco u can pick where u wanna download the file so I just save it in the ubuntu root folder.

next open the ckpt-convert.py and scroll down untill u see and safetensors model name it should be goddess etc safetensors copy the name of your downloaded safetensors and overwrite the name of the current model in the path.do not erase the root name just overwrite the model. then save. it with an text editor I use quick text editor pro it's 👍.

now run this command

python3 ckpt-convert.py && python3 convert.py --ckpt_path /root/ckpt/model.ckpt --output_path /root/output/

paste the whole thing in termux and the ull convert the safetensors to mediapipe then just download sdai full version select mediapipe local diffusion turn on load local model allow permission and then if u don't have SDAI folder in downloads just create it and then create model folder inside SDAI folder then go to ubuntu root open output copy all those files to SDAI/model folder.

now some conversions don't create the preview files like I mentioned above so just download them and paste them in the model folder if you don't your app will crash when load image.


enjoy:)

0 comments on commit bda4136

Please sign in to comment.