2022-09-17 12:59:44 +03:00
|
|
|
# MinDalle_StableDiff
|
|
|
|
|
2022-09-17 13:44:01 +03:00
|
|
|
Create pictures with Mindalle and stable diffusion.
|
2022-09-17 13:25:17 +03:00
|
|
|
Python script with dependencies installation bat file.
|
|
|
|
|
2022-10-09 16:27:10 +03:00
|
|
|
## How to set up dalle mini + stable diffusion
|
2022-09-17 13:25:17 +03:00
|
|
|
|
2022-10-09 16:35:34 +03:00
|
|
|
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;
|
2022-10-09 16:37:20 +03:00
|
|
|
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.
|
2022-10-09 16:35:34 +03:00
|
|
|
- It can be done once and forever untill you delete token from C:\\Users\\%YOUR_USERNAME%\\.huggingface
|
2022-09-17 13:44:01 +03:00
|
|
|
3. You are redy to go.
|
|
|
|
|
|
|
|
## How to run
|
2022-10-09 16:27:10 +03:00
|
|
|
|
|
|
|
0. Clone this repo;
|
|
|
|
1. Write your promt to "promt.txt";
|
|
|
|
2. Run "run_all.bat";
|
|
|
|
- First run will be slow due to downloading weights
|
|
|
|
3. When amount is asked, enter any number you want;
|
|
|
|
- Quantity of output pictures = amount * 60
|
|
|
|
4. Just wait. It can be a long process;
|
2022-09-17 16:06:23 +03:00
|
|
|
5. You can find output files in .\\data\\out\\%Timestamp% folder. Jpeg contain commentaries in metadata with some settings used while generating.
|
2022-10-09 16:27:10 +03:00
|
|
|
|
|
|
|
## How to update
|
|
|
|
|
|
|
|
### Small update
|
|
|
|
|
|
|
|
1. Get new scripts from this repo;
|
|
|
|
2. Run "rem_dependencies.bat";
|
2022-10-09 16:31:50 +03:00
|
|
|
3. Run "get_dependencies.bat".
|
2022-10-09 16:27:10 +03:00
|
|
|
|
|
|
|
### Big update
|
|
|
|
|
2022-10-09 16:31:50 +03:00
|
|
|
1. Delete old files;
|
|
|
|
- Don't forget to save your fenerated pictures
|
|
|
|
2. Clone this repo from scratch;
|
2022-10-09 16:28:53 +03:00
|
|
|
3. Run "get_dependencies.bat".
|
2022-10-09 16:27:10 +03:00
|
|
|
|
2022-09-17 15:14:39 +03:00
|
|
|
## Requirements
|
2022-10-09 16:27:10 +03:00
|
|
|
|
|
|
|
- 10GB of free space.
|
|
|
|
- Nvidia card with 4GB+ video memory.
|
2022-09-24 11:03:40 +03:00
|
|
|
|
|
|
|
## Tests
|
2022-10-09 16:27:10 +03:00
|
|
|
|
|
|
|
- RTX3070: 12 - 14 seconds per picture.
|
|
|
|
- RTX2060_Laptop: 21 - 25 seconds per picture.
|