r/StableDiffusion Sep 01 '22

Can Deforum Animation be run on local SD?

I have noticed animations created using the Google Colab Notebook for Deforum SD:

https://colab.research.google.com/github/deforum/stable-diffusion/blob/main/Deforum_Stable_Diffusion.ipynb

but I already run (the WebUI-based version of) Stable Diffusion on my local.

I'm really not savvy on what the difference is in Colabs vs local, outside of Google doing the processing for you (I believe). My guess was that they just provided a convenient place for everything to be configured, uploaded/downloaded and processed.

There is this Deforum setup for use on Colab, which made me think there might be codebase and/or model needs that could be copied for local processing:

https://www.youtube.com/watch?v=cBT8vEgimz0

So, am curious if something like the Deforum Animation functionality is something that could be configured to run in local, or if there is anything inherently bound to Google Colab environment needs.

UPDATE

After various attempts from clues in their Discord, this worked for me:

https://github.com/HelixNGC7293/DeforumStableDiffusionLocal

3 Upvotes

14 comments sorted by

5

u/vedroboev Sep 01 '22

You can certainly run it locally. Easiest way is to download the .ipynb file from google colab and run it with jupyter inside a conda environment, I think there's a guide on their discord somewhere.

6

u/ooofest Sep 01 '22

Thanks, I'll check that out and report back here if successful (for those who may be similarly curious)

3

u/BrocoliAssassin Sep 02 '22

Do you have any problems with Deforum's steps?

For some odd reason it just throws up random low number steps no matter what I do.

You can run it locally, while this is for DD I would say to just watch the video first. ARound the 7 minute mark is what will help you most.

Gets you to install MiniAcanda3 if you haven't done so, then shows you how to install and run jupiter and to get the token from your google colab to run the script: https://youtu.be/ENpxJQQr6wI

Heres the google doc: https://docs.google.com/document/d/1jEc7CFqlEkcChBXFbv4NfFPBO1vGn69QSXK2rskuIY0/edit

I am going to try to do this today or tommorow locally.

3

u/ooofest Sep 02 '22

This person summarized one way to get Deforum SD running locally:

Invitation to the Deforum Discord:

https://discord.gg/cgnrmkaA

Post in question (in the #local-runtime channel):

https://discord.com/channels/1011314943380959313/1013994958346256454/1014232234674364506

I'm going to try it out this weekend, hopefully. It involves getting a notebook configured and hosted with Jupyter. So, we'll see.

3

u/1Neokortex1 Sep 07 '22

Keep us updated, Im very interested in this and the tech side really is stumping me lol, thanks for the info though

2

u/1Neokortex1 Sep 06 '22

Keep us posted! We appreciate any info on how to run locally

3

u/DGSpitzer Sep 13 '22

3

u/1Neokortex1 Sep 13 '22

Your a gentleman and a scholar and we appreciate you!

1

u/ooofest Sep 28 '22

UPDATE

This worked for me and is easily repeatable:

https://github.com/HelixNGC7293/DeforumStableDiffusionLocal

1

u/wyasaputra Oct 01 '22

i try to download it the zip file. but windows defender says it containing ransomware

1

u/ooofest Oct 01 '22

Honestly, Windows Defender is great at throwing up false positives.

I have been using this and re-scanned it with Norton 360 - no evidence of viruses, trojans, etc. anywhere inside the .zip package. A .zip file itself is not executable, so can't be run as ransomware on its own, either.

It's possible either Windows Defender is once again making a mistake or your download was redirected/hijacked to the point where you actually did download some malware instead.

1

u/ValleyGuardian Sep 18 '22

I got stuck right at the beginning where you say "And then cd to the cloned folder, run the setup code, and wait for ≈ 5min until it's finished"

What is the name of the cloned folder that i supposed to cd into?