How to Install Stable Diffusion on AMD GPUs (NEW)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey it's Trent from the AI Kingdom and in today's tutorial I'll be showing you guys how to install and run stable diffusion on any AMD GPU probably watching this video right now because of how frustrating it is that stable diffusion isn't really supported on AMD devices whereas Nvidia everything just works fantastically but we do have a workaround today and unfortunately there isn't much tutorials online on how to actually install stable diffusion and use it using AMD gpus that aren't an offense to the other tutorials but really bad tutorials so I'm going to be breaking it down as easily as possible and if at any point you guys do run into some air but hopefully you won't please do comment down below or you can join my Discord server or I'll hopefully be able to help you as I've run into similar errors in the past all I ask in return is if you guys go down and leave a like on this video And subscribe to the channel as I post daily AI content that I'm sure you guys will enjoy with that being said let's get into this tutorial so there's going to be a link down below to this GitHub page right here and this is going to be the fork that we're using but before we get into actually installing this Fork you will need to install python now I'll have the link down below to download python the version that you want to install is going to be at 3.10.6 which you can find right here on August the 2nd 2022 however I'm using a 3.10.9 and that appears to work as well but if you don't already have python installed just go with the 3.10.6 version the next thing you'll need installed is git I'll have the link down below to install git as well it's pretty simple you just download and then it's a simple installer and it works exactly the same as installing python just keep hitting next let it install alrighty so once you have both Python and git installed on your computer you're ready to install this Fork now what you want to do next is actually create a folder on on your computer I'm just going to create my folder in here but you can literally put it wherever you want and I'm going to call it SD or stable diffusion then I'm going to make another folder called Web UI once I create this folder I'm going to go inside of it and then go to the bar at the top here click that and then type in CMD and hit enter gonna bring up this command prompt here and I'm going to paste in the following text I'll have the link down below so that you guys can go and copy this text and paste it in you just want to hit enter and it's going to clone and install stable diffusion to your device the next thing you want to do is actually download a model the model we're going to be using today is the newest version of dream shaper which is dreamshaper 5 and man some of the art that you can create with this model is absolutely stunning however there's multiple other models that you guys can download and try out if dreamshaper isn't working for you or you just want to test out other models there are models that perfect different types of art so let's say you really want to focus on I don't know Anime styled art well you would download an anime based model and today's tutorial we'll be using dream shaper I'll have the link down below to install it alrighty so link down below I'll actually have this website right here which goes over some of the best models that you can use within stable diffusion the one we'll be using in today's example is honestly my favorite however there is some phenomenal models out there that you can definitely utilize and try out they all have their different niches and quirks and what they're better at so I'll go over a few of the most popular in this page will also include the download links to all the models so you can download whatever model you want to try out and try it on your own computer so some of the ones I've used is f222 fantastic at creating really realistic imagery anything V3 is a fantastic model at creating some really good anime art style I've definitely used this the most along with I believe it was like waifu diffusion I think it's below in this article if I am thinking correctly yes it is so we have waifu diffusion which is also a fantastic anime model generator realistic Vision V2 is also another one of my favorites creates a really realistic humans I mean as you can see from this model right here other than maybe the eye kind of looks a little interesting but the rest of the image just looks very real the Libra V2 is another fantastic option at creating more realistic like illustrations so it kind of looks like the video game character but super high resolution as you can see in this example and obviously dream shaper which is the model that we're using in today's video it's just so good at creating these really crisp like fantasy worlds and another one that I wanted to discusses Modi diffusion or mode diffusion however you want to say it and it's probably one of my favorites because you can literally create like pixar-like Generations that look exactly like the characters you see within Pixar movies as you can see from the examples here it's really fun to do like image to image with this model and make yourself into like a Pixar character and there's also in Punk diffusion which is fantastic for like profile pictures on social media these work out really well but yeah I'll have the link down below to this article where you can go and check out the models that you're interested in and then also download them as well alrighty with our model downloaded we can go back to the folder that we installed go click and web UI stable diffusion and then you want to find the web UI bat file which is going to be this one right here you can verify by going to properties and it should be a DOT bat now you want to right click that bat file and select edit in these command lines you want to do one of two things either a you want to copy this text which will be linked down below and paste it in right here this will only be for people who have four to six gigabytes of vram so like lower vram can actually check your vram by going into your search and finding dxdiag running that then you can see in your display the amount of vram you have as you guys can see I have way more than four to six so I will not be needing those command line arguments however if you do have more I still recommend running the following text and saving just in case you run into any errors okay now that that's edited and saved we just want to double click on that bat file and if you do run into any errors run it as administrator because of where I decided to install my stable diffusion it already has administrator access but you let's say tried installing it on your desktop and your desktop doesn't have administrator access all you have to do is right click and run as administrator instead of double clicking so we're just going to let this all install and I'll be back once it's done installing no actually in the meantime while it is installing what you can do is go and paste in your models or model that you downloaded so just go back to that web UI folder the stable diffusion folder go to models stable diffusion and then in here you can drag in that model that you downloaded already and if everything's installed correctly you should see a IP address like so at the bottom of your screen so you can just copy that paste it into your browser and Bam as you can see we've pasted it in our browser and we have stable diffusion working on an AMD GPU wasn't too complicated as you can see at the top we have our model we only have one because we only downloaded one model but obviously the more models you download the more you'll be able to choose from there's all these different features within stable diffusion I'm sure you have seen them online already so I'm not going to go through them all but just to show that it works we're going to generate a wiener dog eating a hot dog foreign there you go we got a wiener dog eating a hot dog so guys I hope you enjoyed this easy tutorial on how to install stable diffusion on AMD gpus there's honestly not that many tutorials out there on how to do it especially for AMD gpus so I felt like I had to put one out and if you did enjoy this tutorial or it helped you out make sure to leave a like subscribe to the channel if you have any errors leave them down in the comment section and I'll be sure to help you out have yourselves a fantastic day guys
Info
Channel: Trent Kingdom
Views: 87,024
Rating: undefined out of 5
Keywords: tutorial, ai, ai tutorial, AI Tutorial, Stable Diffusion Installation, AMD GPU, Radeon 9700 Pro, 7900 XTX, Machine Learning, Deep Learning, AMD Graphics Card, Stable Diffusion Guide, GPU Acceleration, AMD Radeon Installation, AI on AMD, Stable Diffusion Tutorial, Radeon 9700 Setup, Radeon 7900 Setup, AI Programming, AMD Drivers, AI Models, AI Hardware Setup, GPU for AI, Radeon for AI, Stable Diffusion on Radeon, AMD GPU AI Tutorial, stable diffusion for amd
Id: 8xR0vms0e0U
Channel Id: undefined
Length: 8min 49sec (529 seconds)
Published: Thu May 11 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.