Thought I should do this if other people want to do this kind of stuff.
So this is how to use Disco Diffusion 5.
First you wanna search it up on Google or click this link:
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwiZu6i3n6_2AhUsU98KHayQCy8QFnoECAYQAQ&url=https://colab.research.google.com/github/alembics/disco-diffusion/blob/main/Disco_Diffusion.ipynb&usg=AOvVaw1DGrjjRabdLpbwFl5WnPTF Once you see the link, click it and it will open Google Colab.
You should see this.
Now you can either make a copy, or use it like this. I made a copy since using the Colab like this doesn't actually save your previous prompts or settings.
If you want to make a copy go to file and click save a copy in drive.
Once you do you should have this.
As you can see on the top it saves the Colab will not save anything.
You can change this by clicking Notebook Settings in yellow.
Which will open this, uncheck the Omit code part.
And then press save, don't do anything else. It will now save your prompts and images.
After that you want to go to the set up cell.
You will see two checkmarked boxes called google_drive and save_models_to_google_drive.
If your using a free google drive account with 15 gb. Uncheck these two, cause it will fill up your drive account, or you can just buy some more storage.
But if you don't want to buy storage, uncheck these two.
Now go down till you see this section called prompts.
You can see something called text_prompts, there's already a prompt there, but you change it.
Like say this:
Then go down to the diffuse section and you'll see this thing called n_batches.
These batches seem to be how many images the ai generates, since it says 50 it will generate 50 images.
Now you can do this, but since we aren't saving anything to google drive you'll probably lose them, plus this is a good way to exhaust your gpu limits.
So just change it to 1.
Now you can go up to runtime and press run all.
If you did everything correctly the play buttons on each cell should start running till they become green checks. it will go down until it starts generating the image.
Then you should see this.
It's the ai making the image, and it shows the time it's taking to make it.
You can also use init_images, which is making the AI generate a image based off another image.
So I'll just get an image off the internet like this:
And download it.
After that i'll open the google colab which you should find in your google drive in a folder called Colab Notebooks and upload it to the Notebook.
To do this press the file button on the side.
And press the upload button. The upload button is the paper icon with the up arrow.
When you upload the image you should see the image in the file section like this.
Then go down to the settings cell and at the bottom you should see this part called init settings.
In the init_images setting it says none, because there is no image.
So then go to the image you uploaded.
And hover your mouse, you should see three checkmarks on the side.
Click them and press copy path.
Once you do that go to init_images and delete the none and paste the path there.
It should look like this.
Now your gonna wanna change the skip_steps setting. Since it says to be 50% of the image steps change it to that.
You can find the steps above, it should be 250. So 50% of 250 is 125. So change the skip_steps setting to 125.
Now go to your text_prompt and change it.
And then press run all.
Now it should generate the image but based of the init_image.
Now one thing you should be wary of is hitting your GPU limit.
What is a GPU limit? Well if you are following this tutorial you should have gotten pop-ups saying that the colab uses high ram.
Don't worry, it isn't using your ram or GPU but Google's. However as google states in it's faq it's resources are not infinite.
Because of this if your running GPU heavy programs like DD5 that require a GPU if you hit a GPU limit you won't be able to run DD5.
However GPU limits are temporary, usually it takes about a day for it to disappear.
But if you don't want to hit a GPU limit you can either get pro versions of Colab, or only generate around 1-3 images a day. As that seems to be the highest I can go before hitting a limit.
If you want to generate more images but hit a gpu limit you can go to Nightcafe.
Nightcafe is an art generation site that uses DD and VQGAN+CLIP as well. However the images it generates seem to be a lower quality, but faster only taking a minute or two compared to the 1 hour to 10 minutes DD5 takes.
Nightcafe also requires credits, each image generation requires 1 credit. Though the site gives credits out freely, so you should have no problem not running out of credits.
And that's it, that's how I use DD5.
It should be noted that I don't own this, these things I learned are stuff that I had learned thanks to Baughn:
https://forums.sufficientvelocity.c...art-thread.92461/?post=20770699#post-20770699 there's also stuff like tags, if you want more information you can go to the reddit page or Discord or message the creator on twitter, you should find links in the colab.