Морозов Андрей ed4d5f6c1b | ||
---|---|---|
.vscode | ||
Python39 | ||
scripts | ||
.gitignore | ||
README.md | ||
gen_mindalle.bat | ||
gen_stable_diff.bat | ||
get_dependencies.bat | ||
login.bat | ||
prompt.txt | ||
rem_dependencies.bat | ||
run_all.bat |
README.md
MinDalle_StableDiff
Create pictures with Mindalle and stable diffusion. Python script with dependencies installation bat file.
How to set up dalle mini + stable diffusion:
- Run "get_dependencies.bat"
- if you see connections errors, just run the script again to be shure everything is installed.
- Run "login.bat" to login to your HuggingFace profile.
a. Go to https://huggingface.co/CompVis/stable-diffusion-v1-4 and make sure to accept the terms.
b. Go to Your Profile > Settings > Access Tokens
c. Create a write token/Copy an existing Token key and enter in the cmd window.
- It can be done once and forever untill you delete token from C:\Users\%YOUR_USERNAME%\.huggingface
- You are redy to go.
How to run
- Write your promt to "promt.txt"
- Run "run_all.bat"
- First run will be slow due to downloading weights.
- When amount is asked, enter any number you want.
- Quantity of output pictures = amount * 60
- Just wait. It can be a long process.
- You can find output files in .\data\out\%Timestamp% folder. Jpeg contain commentaries in metadata with some settings used while generating.
Requirements
- 11GB of free space.
- Nvidia card with 8GB+ video memory.
- Currently min dalle can run in 6gb. Testing purpose
Additional info
Tested on RTX3070. One picture was making 12 - 14 seconds.