How To Install New DREAMBOOTH & Torch 2 On Automatic1111 Web UI PC For Epic Performance Gains Guide #279
FurkanGozukara
announced in
Tutorials
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How To Install New DREAMBOOTH & Torch 2 On Automatic1111 Web UI PC For Epic Performance Gains Guide
Full tutorial: https://www.youtube.com/watch?v=pom3nQejaTs
Discord : https://bit.ly/SECoursesDiscord. Torch 2 / Pytorch 2 is now supported along with new DreamBooth Automatic1111 Web UI extension. If I have been of assistance to you and you would like to show your support for my work, please consider becoming a patron on 🥰 https://www.patreon.com/SECourses
In this video, I am explaining how you can manually install any extension of the Automatic1111 Web UI. I will demonstrate how to install the DreamBooth extension manually if automatic installation fails. Moreover, I am showing you how to upgrade Torch version 2 for awesome, fantastic image generation and training speed gains.
Playlist of #StableDiffusion Tutorials, #Automatic1111 and Google Colab Guides, DreamBooth, Textual Inversion / Embedding, LoRA, AI Upscaling, Pix2Pix, Img2Img:
https://www.youtube.com/playlist?list=PL_pbwdIyffsmclLl0O144nQRnezKlNdx3
Torch installation commands:
https://github.com/d8ahazard/sd_dreambooth_extension/releases/tag/1.0.13
DreamBooth extension repo link:
https://github.com/d8ahazard/sd_dreambooth_extension
How to install requirements manually:
https://i.imgur.com/r7yQdCG.mp4
Easiest Way to Install & Run Stable Diffusion Web UI on PC by Using Open Source Automatic Installer:
https://youtu.be/AZg6vzWHOTA
How To Install New DreamBooth Extension On RunPod - Automatic1111 Web UI - Stable Diffusion:
https://youtu.be/oI0GEnrySS0
Git install link:
https://github.com/git-for-windows/git/releases/download/v2.39.2.windows.1/Git-2.39.2-64-bit.exe
00:00:00 How to install Automatic1111 Web UI extensions manually intro
00:00:34 How to install Web UI DreamBooth extension on RunPod
00:00:50 How to install extensions on Automatic1111 Web UI
00:01:13 Where the extensions are getting installed in Automatic1111 Web UI
00:01:23 How to manually install DreamBooth extension and where to install it
00:01:53 How to change requirements to prevent library version confliction
00:03:10 If it is still not working delete venv folder
00:03:20 How to update web UI or any extension manually via git pull
00:03:47 How to install and activate xformers in Automatic1111 Web UI
00:04:22 What you should see in your CMD when starting Automatic111 Web UI
00:05:03 How to install Torch 2 / Pytorch 2 for incredible speed and performance gains
00:07:13 Web UI versions after Installing Torch 2 and latest Cuda
In recent years, the field of artificial intelligence (AI) has seen tremendous growth in developing generative models that can create realistic images from text input. One such model is the Stable Diffusion Torch, a mid-journey text-to-image generative AI based on the PyTorch framework. This article will provide a comprehensive exploration of the Stable Diffusion Torch, including its underlying principles, training methodologies, and potential applications.
I. Principles of the Stable Diffusion Torch
A. Diffusion Models
The Stable Diffusion Torch leverages diffusion models, a class of generative models that simulate the process of diffusion to create realistic images. Diffusion models work by starting with a target image and then gradually adding noise until the image is no longer recognizable. To generate an image from this noisy version, the model learns to reverse the diffusion process by gradually denoising the image until it reaches a clear and realistic representation.
B. Text-to-Image Generation
To generate images from text input, the Stable Diffusion Torch combines diffusion models with a transformer architecture, which is known for its exceptional capabilities in natural language processing tasks. The transformer extracts semantic information from the input text and uses this information to guide the diffusion process, resulting in an image that corresponds to the text description.
II. Training the Stable Diffusion Torch
B. Transformer Training
The transformer model is trained using the text descriptions from the dataset, with the aim of learning to extract semantic information from input text effectively. This is achieved using self-attention mechanisms and extensive pre-training on large-scale text corpora.
C. Diffusion Model Training
The diffusion model is trained using the images from the dataset. The model learns to generate realistic images by reversing the diffusion process, starting from a noisy version of the image and progressively denoising it.
III. Applications of the Stable Diffusion Torch
A. Content Creation
The Stable Diffusion Torch can be used to generate original images for various purposes, such as art, advertising, or entertainment. By providing text descriptions, users can create custom images tailored to their needs.
Video Transcription
00:00:00 Greetings, everyone.
00:00:01 In this video, I will show you how you can install extensions manually if the automatic
00:00:05 installation of them fails, especially for DreamBooth extension.
00:00:09 Moreover, DreamBooth extension just released another version and now it is supporting Torch
00:00:14 version 2.
00:00:15 In this video, I will also explain how you can install Torch version 2.
00:00:18 Torch version 2 is supposed to increase image speed generation and training speed significantly
00:00:23 in the new cards, so you will be also able to use Torch version 2 after watching this
00:00:27 video.
00:00:28 I have been getting asked numerous times recently that their extension installation is failing.
00:00:33 I already shown how to install DreamBooth extension manually on RunPod in this particular
00:00:38 video.
00:00:39 So if your automatic installation fails on RunPod, you can watch this how to install
00:00:43 DreamBooth on RunPod.
00:00:44 So let's say automatic installation is failed for you on Automatic1111 Web UI in your PC.
00:00:49 Normally, we are going extensions tab in our interface, go to the available click load
00:00:54 from, then search for the extension that we are looking for, for example, DreamBooth and
00:00:59 click install.
00:01:00 Then after we restart our web UI, it is supposed to install everything automatically for us.
00:01:05 However, sometimes it is failing.
00:01:07 So therefore, in this video, I will show you how you can manually install it.
00:01:10 The extensions of Automatic1111 Web UI are installed inside extensions folder directly.
00:01:16 So you will see SD DreamBooth extension inside this folder.
00:01:20 Let's say your automatic installation has failed.
00:01:22 So I suggest you to delete this folder first, then go to the extensions tab in web UI go
00:01:27 to the available click load from if installed is checked you can uncheck this to show DreamBooth
00:01:32 extension, then click DreamBooth in here it will open the link of the DreamBooth on your
00:01:37 browser, copy it.
00:01:38 Inside your extensions folder type CMD.
00:01:41 It will open the command line interface beginning inside your folder like this, then type git
00:01:46 clone and paste the URL with right click hit enter.
00:01:49 It will clone the extension for you.
00:01:51 Then what we are going to do is changing the requirements.
00:01:54 The library dependencies.
00:01:56 Go to the inside your extension DreamBooth extension: you will see requirements txt file
00:02:00 here right.
00:02:01 Click requirements click edit: it will open it like this in a notepad file, then go back
00:02:06 to the main installation web UI folder inside here you will see requirements versions txt
00:02:12 file.
00:02:13 This is really important.
00:02:14 Requirements versions txt.
00:02:16 Right click it edit and it will get opened like this.
00:02:19 So you need to compare the web UI requirements versions, and requirements versions of the
00:02:24 DreamBooth extension.
00:02:25 You will notice that there are some conflictions.
00:02:27 For example: Accelerate version of SD DreamBooth extension is bigger than the Accelerate version
00:02:33 of the web UI.
00:02:34 Therefore, replace Accelerate version of the web UI and make it same as the DreamBooth
00:02:38 extension Like this.
00:02:40 You will also see that the transformers versions are conflicting between web UI and the DreamBooth
00:02:44 extension.
00:02:45 So change the transformers version of the web UI make it same as the DreamBooth extension.
00:02:51 If you also notice any other conflicting versions also change them.
00:02:54 Then save the requirements versions txt file with save or control s in windows.
00:03:00 Close them after that, close your running web UI instance: if it is running and restart
00:03:04 your web UI.
00:03:05 So after you restart your web UI if the DreamBooth extension is still not working, delete this
00:03:11 venv folder and restart again.
00:03:12 It will install everything from beginning and it will reinstall all of the requirements
00:03:17 and then you should see the DreamBooth extension is installed.
00:03:19 Also, let's say you want to update your web UI then type CMD in.
00:03:23 Here you will see that CMD started in your folder, type git pull and it will update your
00:03:29 web UI or it will update your extensions.
00:03:31 This is the way it works.
00:03:33 Git pull will update your extensions or web UI basically any git repository.
00:03:38 For this to work, you need to install git.
00:03:39 Also, after you updated your web UI make sure that your command line arguments are there.
00:03:44 If you don't have a big graphic card, then you should use --xformers as your command
00:03:49 line argument.
00:03:50 So it will start your web UI with xformers, it will also install the xformers.
00:03:54 This is really, really important one.
00:03:56 You don't have to downgrade your xformers version anymore because the DreamBooth extension
00:04:01 is now installing the latest development version that is working with training.
00:04:05 Okay, I have restarted my web UI and I will show you the messages that I am getting.
00:04:09 You see it is saying that checking DreamBooth requirements then it is collecting the necessary
00:04:14 packages that are necessary for DreamBooth extension they are getting installed.
00:04:18 You will see the installation messages like this and in here this is really important.
00:04:22 You should see all of these requirements have plus icon.
00:04:26 These are necessary for DreamBooth extension to work and if any of these are negative then
00:04:31 you should try deleting venv folder this folder and restart your web UI to see whether it
00:04:36 is fixing or not.
00:04:38 Changing the requirements versions will also help you significantly to fix your possible
00:04:42 errors.
00:04:43 So now our web UI has started.
00:04:44 I can see the url.
00:04:46 It is also displaying the cuda setup loading binary and other messages.
00:04:49 There are no errors.
00:04:50 When I refresh my url I will see the DreamBooth extension has been installed and it is available
00:04:55 to use.
00:04:56 It is also showing the change log.
00:04:58 You can also read them release notes and then you can start using DreamBooth as I have shown
00:05:03 in my other videos.
00:05:04 Now I will show you how you can install Torch version 2.
00:05:07 For installing Torch version 2.
00:05:09 First we need to enter inside venv folder and activate.
00:05:13 To do that, go to your installation folder inside here.
00:05:16 Enter venv folder inside here, enter scripts folder then start a CMD.
00:05:22 So for starting a CMD inside this folder you can click the navigation bar in the top type
00:05:27 CMD and hit enter and it will start like this.
00:05:31 Alternatively, you can navigate here.
00:05:33 Let me show you.
00:05:34 Open a new CMD window like this, then inside scripts folder right, click one of the files
00:05:39 click properties.
00:05:40 It will display you the location like here.
00:05:43 Select it, copy it, then go to your new CMD window type cd.
00:05:48 Put a quotation mark right, click, paste it, put another quotation mark and hit enter and
00:05:52 then CMD will be inside that folder.
00:05:55 Then type activate like this and hit enter.
00:05:58 Once you type activate, you have to see this venv in the beginning of the line.
00:06:03 Like this, that means that you have activated the virtual environment of your installation
00:06:07 and now whatever the command you execute will be executed inside this virtual environment.
00:06:13 Then go back to this page.
00:06:14 I will put the link of this page into the description.
00:06:17 Copy the first command here like I am doing.
00:06:20 I have copied the first line.
00:06:21 Right, click, copy, then right, click and paste and hit enter.
00:06:25 Make sure that you are executing this command while you are seeing these parentheses inside
00:06:30 venv, otherwise it won't work.
00:06:32 It will download the latest version of Cuda Torch and it will start installing them.
00:06:36 This may take some time based on your installation.
00:06:38 Also, if you see it is frozen like this, this is a thing of CMD window.
00:06:43 Just hit enter and it will continue.
00:06:44 You are going to see a message like this: installing collected packages and then it
00:06:48 will display found existing installation.
00:06:51 Torch version 1.13 it will uninstall those and then it will install the latest version.
00:06:55 Okay, the first command installation has been completed.
00:06:58 These are the messages it is displaying now.
00:07:00 Time to execute the second command so I am copying it, then right, click and paste it
00:07:05 and hit enter.
00:07:06 The second one was also completed.
00:07:08 Now time to restart our web ui to see whether it is working or not.
00:07:11 Okay, when I am starting my web ui now, it is displaying the newest version as you can
00:07:15 see: Torch version 2: Torch version 0.15 xformers version 00.17 plus b6 and these are the other
00:07:23 versions that it is displaying.
00:07:25 The web ui has been restarted now.
00:07:27 In the bottom I see that python version Torch version is 2.2.0 and plus CUDA 11.7 xformers
00:07:34 is 00.17 b6 and these are the gradio and the checkpoints.
00:07:39 I generated an image and it works and I can see that it is significantly increased.
00:07:44 So I can say that the Torch version 2 is very good.
00:07:47 My graphic card is RTX 3060.
00:07:49 Currently, there are also other applications open so I can't say that this is the best
00:07:53 speed, but I can see that it is increased.
00:07:56 The image generation speed is increased.
00:07:58 Very well.
00:07:59 So if you don't know how to use stable diffusion, how to install and run Automatic1111 Web UI.
00:08:03 I have an excellent playlist.
00:08:05 In the comment section of the video, you will see playlist link, just click it, then this
00:08:08 playlist page will be opened.
00:08:10 The third video will show you how to install and run Automatic1111 Web UI instance.
00:08:15 The fourth video will show you how to use custom models especially version 2.1 version.
00:08:19 And then I have excellent DreamBooth tutorial, textual inversion tutorial, LoRA tutorial,
00:08:23 and other tutorials.
00:08:24 You can look all of them.
00:08:26 They are all useful.
00:08:27 They are all related to Stable Diffusion.
00:08:29 Please also like subscribe and if you support us on Patreon or via joining our youtube channel,
00:08:34 I would appreciate that very much.
00:08:35 Hopefully my next video will be about how to teach an excellent style to your model
00:08:41 and use it for free.
00:08:42 It will be like MidJourney level I believe.
00:08:44 I believe that you will like it.
00:08:45 Hopefully see you in another awesome video.
Beta Was this translation helpful? Give feedback.
All reactions