Create pictures with Mindalle and stable diffusion. Python script with dependencies installation bat file.
Go to file
Морозов Андрей 630d701d65 Изменил(а) на 'README.md' 2022-10-09 13:37:52 +00:00
.vscode Preparations for diffusers update 2022-10-09 15:41:45 +04:00
Python310 BIG UPDATE 2022-10-09 17:27:10 +04:00
scripts BIG UPDATE 2022-10-09 17:27:10 +04:00
.gitignore Added more libs 2022-09-17 16:34:37 +04:00
README.md Изменил(а) на 'README.md' 2022-10-09 13:37:52 +00:00
gen_mindalle.bat mindalle fix 2022-10-09 17:34:27 +04:00
gen_stable_diff.bat BIG UPDATE 2022-10-09 17:27:10 +04:00
get_dependencies.bat BIG UPDATE 2022-10-09 17:27:10 +04:00
get_dependencies_global.bat BIG UPDATE 2022-10-09 17:27:10 +04:00
login.bat BIG UPDATE 2022-10-09 17:27:10 +04:00
prompt.txt Disabled nsfw filter and updated some scripts 2022-09-20 12:40:25 +04:00
rem_dependencies.bat BIG UPDATE 2022-10-09 17:27:10 +04:00
rem_dependencies_global.bat BIG UPDATE 2022-10-09 17:27:10 +04:00
run_all.bat BIG UPDATE 2022-10-09 17:27:10 +04:00

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

  1. Run "get_dependencies.bat";
    • if you see connections errors, just run the script again to be shure everything is installed;
  2. Run "login.bat" to login to your HuggingFace profile; 2.1 Go to https://huggingface.co/CompVis/stable-diffusion-v1-4 and make sure to accept the terms. 2.2 Go to Your Profile > Settings > Access Tokens; 2.3 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
  3. You are redy to go.

How to run

  1. Clone this repo;
  2. Write your promt to "promt.txt";
  3. Run "run_all.bat";
    • First run will be slow due to downloading weights
  4. When amount is asked, enter any number you want;
    • Quantity of output pictures = amount * 60
  5. Just wait. It can be a long process;
  6. You can find output files in .\data\out\%Timestamp% folder. Jpeg contain commentaries in metadata with some settings used while generating.

How to update

Small update

  1. Get new scripts from this repo;
  2. Run "rem_dependencies.bat";
  3. Run "get_dependencies.bat".

Big update

  1. Delete old files;
    • Don't forget to save your fenerated pictures
  2. Clone this repo from scratch;
  3. Run "get_dependencies.bat".

Requirements

  • 10GB of free space.
  • Nvidia card with 4GB+ video memory.

Tests

  • RTX3070: 12 - 14 seconds per picture.
  • RTX2060_Laptop: 21 - 25 seconds per picture.