Upscaling In Comfy UI Done Easy!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video we are going to be doing upscaling with comfy UI and creating really really large images we're going to have some fun with this cuz we're actually going to create our own workflows today um and we're just going to have fun with it so if you love our tutorials make sure to click that Thumbs Up Click the Subscribe button and hit the Bell notification so you don't miss any of our tutorials so we're going to jump right into it today we need just a couple things for this video what we're going to do is we're going to be downloading a upscale model and we're actually going to grab a XL model from civit I know I said I don't use them that often um but in this case we're going to use this one today because it's made to work without the refiner and then using a Laura so it's a little bit more compact of a workflow so we're going to do that just to make sure you guys see exactly what's happening it's also really really good model um I've been very very impressed with it uh the model's name is New Dawn Excel so if you go over to Civ and download it I'll have the links Down Below in the description as always for everything we do today but you can download that is 6.46 gigs so it is a big file and we can have that model ready to go the other model we're going to need is an upscale model and in this case we're over at upscale Wiki and we're going to use 4X Ultra sharp this is my favorite upscaler of all time so go ahead and download that and we'll get right to installing it into comfy UI okay here we are on my a diff Fusion hard drive and you can see that I have the two files already here so we have New Dawn and 4x Ultra now you guys if you been following my tutorials already know how to put a checkpoint into the checkpoint folder so we're going to move just the 4X Ultra sharp and we're going to go into the comfy UI comfy UI models and upscale models and you can see I already have it here if you are running com UI when you make these changes you can refresh the screen and if you refresh the screen you're going to be able to see any of the changes that you made as far as the new models you've put in if you're adding custom nodes or something like that you do have to restart comy UI but in this case we don't have to okay so what we're going to do is we're going to start with our load checkpoint we're going to switch to newon XL this an XL so we need to be a laye image of 1024 by 1024 there we go and then we need an image that we're going to generate and I'm actually going to use a prompt from their examples this robot now this is kind of a neat idea to go and get ideas of how to prompt or if somebody style you like how to get an idea of how they're prompting you can notice we have the sampler here this is the sampler and the scheduler if we want to change it to DPM 2++ crass we could do that we're not going to do that in the in this case because they're running 100 steps we're only going to run 20 we might as well run it on UL in that case but if you're running higher steps and you need to change it DPM 2++ or DPM Plus+ 2 m is right here and carass is the scheduler we're just going to leave it as you learn normal for now 20 steps is more than fine we have our size here and we're going to go ahead and we're going to generate our image just make sure everything's working before we go and change and add some more noes okay there we go we have our test image look and snazzy perfect I love it okay so now we need an upscaler cuz let's say right now this is not big enough cuz right now we're looking at a 1024 x 1024 so let's say you posted this on social media a friend comes to a family member comes to you or somebody comes to you and says can you print me off a poster of that well not really this is too small an image so what we're going to do is we're going to upscale but we're going to do it within our workflow here I'll show you how to upscale an image after the fact after this because we can create our own workflow to have our own upscaler so what we're going to do is we're going to start here we're going to just type upscale image upscale with model and you'll notice that we need a upscale model so what we can do is drag out and this is really neat with comfy UI it knows what can work with this so we need the upscale model loader there we go if your says null just click here and choose 4X Ultra sharp now we need the image to come from the VA code because what it's going to do is it's going to generate the image vae decode is going to create the final image and then we want that final image to be upscaled and output to the saved so there we go we have our new workflow and if we hit Q prompt again it's going to go ahead and create that prompt now if we look here you'll see that we have some information here we have how long for this image to finish rendering how long it's taken how many steps are remaining and then it's gone into the upscaler here and we can see that it doesn't take very long to upscale at all and there we go now we have a new image so if we go ahead and open this image and zoom in you can see we have a much larger image we haven't lost any detailer because of the way the upscaler works the way the upscaler works is it breaks this image into little tiles in this case it would be about 36 little tiles and it upscales those tiles just a little bit when you upscale only a little bit you don't lose any quality or sharpness you don't create artifacts so what you're doing is breaking this up into a bunch of little images upscaling them a tiny bit and then bringing them all back together and stitching them all back together to create the final image and because of that we can run that scaler multiple times so what I'm going to do is I'm going to generate a image based off their settings which was 100 steps so we're going to get a very detailed image and you'll see why we need this in a minute and we're going to do a CFG scale of seven and DPM 2++ and harass and there we go we have exactly how theirs was set so this is going to give us a very very large image I'm going to remove the upscaler now because what we're going to do is we're going to upscale after the fact and I'm just going to cue that prompt and you can see because we're doing 100 steps you can see that the total image generation is going to be about a minute it was 50 seconds is um so I will come back when that completes okay our image is completed let's take a look very cool this one's going to upscale really well now you'll notice that there's a lot more detail uh you can even tell just on the smaller image but you can see we're only running 1024 x 1024 so let's say you had shared this one out and you need to upscale it after the fact what we're going to do is we're actually going to create an upscale workflow so we're going to clear our entire workflow and what we're going to do is we're going to have a image loader so load image here we go then we're going to have our upscale perfect so image to image we don't need to use the mask image out to a save image there we go and then we need to choose the image that we want to upscale we're going to take that one that we created earlier which is this one right here now we need our upscale model so upscale model here we go 4X Ultra sharp now if I run the queue it's going to upscale the image I loaded so I'm going to go ahead and hit q and you can see how fast the initial upscale works on a 1024x 1024 it's just creating those 36 little blocks and scaling them up and here's our output that we can take a look at and you can see it is upscaled it a lot so our new image size is 4096 x496 and that should be pretty good for print so let's say you need to go even bigger not sure why you'd want to but let's say you want to you can actually stack another scaler in here so what we do is we can create another up scaler there we go we're going to image in upscale model to the upscale model and the image to the save and now I'm going to run this this is going to look like it's going to mess up but I'll have to come back to you when it's done because what it's going to do is it's going to forx the image and then it's going to 4X that image we're going to get a massive file that should be around 250 260 megabytes in size and we'll click q and I'll be back okay we're back it's still running through the upscaler but I had a question for you guys I can actually save these workflows and share them with you if you wish I just need to find a place to host them for you but if you would like the workflows from the videos that I do let me know in the comments down below and that way I can start saving uh any of the workflows and that way you can just load them if you wanted to follow along and learn uh that that would probably be the better way of doing it I know some people might just want the end result so let me know in the comments down below okay our scaler is almost completed now this is still going to take a while because it needs to save this file I'll be back when it's saved okay and we're back you will notice that I am not in the browser anymore and this is because this image has gone too large for to load within the browser it is absolutely massive this is a view at about 6% of the Total Image scale so once again what we've done is we have scaled up not only 4X but then once that 4X was complete we 4 xed it again so it's a factor of two and check this out if I go if I go one to one we can come right in we can find the sharp points in the image we can see all the detail down to these tiny little eyelashes absolutely insane and that would give you a monstrous image you can see here if I go to the properties 304 megab total in size and a resolution of 16 384 by 16 384 with a bit depth of 24 this is a monster of a file so it shows you if you do a couple upscales it get pretty wild pretty fast now we could use a different model if we only needed a little bit more of an upscale from the original point of upscale but I thought it' be fun to show you that we can keep stocking these over and over and over again until the computer gives up uh if I added a third one it would definitely give up at that point U my graphics card wouldn't be able to handle it I know that for sure uh maybe if you had 12 gigs of RAM it might push it even further but we are talking ridiculous size files that you would never need the size of so if we take a look at it overall just a standard upscaler it's right there uh we can load any image that we want uh so we know this one's not a uh large image we can go ahead we can say hey make this a larger image it's going to run through the upscale process that was a 512 x 512 I can tell by the speed uh we can go ahead and open that image and you can see it has upscaled it four times from 52 um absolutely incredible it's it's a great way to upscale and even if you're just a photographer and you're looking upscale this is a great way to have a AI powered upscaler anyways that's it for the upscaling video I hope this helps you guys see how you can add upscaling directly within your workflow or upscale something after once again if you want me to save these workflows as we start creating our own I can do that for you and then you're going to be able to download it just let me know in the comments down below if you have any questions once again put them down below and if you liked this video hit that thumbs up subscribe so you don't miss any more of our tutorials I'll see you guys next time
Info
Channel: AI Made Easier
Views: 11,048
Rating: undefined out of 5
Keywords: AI made simple, AI for creatives, AI for artists, AI for non-technical people, AI for everyone 2023, AI tutorial 2023, how to use stable diffusion, stable diffusion tips and tricks, stable diffusion tutorials, stable diffusion for non-technical people, AI image generation, AI art, Install Comfy UI, How to Install Comfy UI, Comfy UI for beginners, comfyui sdxl upscale, comfyui upscale workflow, comfyui upscale model, stable diffusion upscale, stable diffusion upscale image
Id: or2xaftZXvE
Channel Id: undefined
Length: 13min 12sec (792 seconds)
Published: Sun Oct 01 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.