How to turn on the backend server using Colab (simple version)

  1. Is this the link?

    1. Testing in Colab with Model
  2. Copy it to your Drive

    Untitled

  3. Go to Runtime in the menu and select “Run all” and then allow the Colab to interface with your GDrive

    Untitled

  4. Let them all run.

  5. At the end, if no errors, you’ll get a URL. You can go there to test it out, and then paste it into your ENV for the SD_API_ENDPOINT

    1. SD_API_ENDPOINT=https://2e0edead-2bac-4761.gradio.live/sdapi/v1/txt2img

NOTE: Make sure the prompt that you send into this endpoint is using the trained tokens!

In this case you want to make sure it’s “DnDDragonbornGeneral”! This is our new Premium!

<aside> đź’ˇ If any error related to import missing or file missing appears, The 1st troubleshooting step would be to go to your gdrive, go to the sd folder and move your outputs folder to some location outside sd folder. Then delete the sd folder and re-run the colab. If the problem persists, notify me so that I can have a look at the updates on the stable-diffusion-ui github repository

</aside>

Detailed but CONFUSING TUTORIAL BELOW

  1. Click on the colab link below

    1. https://colab.research.google.com/drive/1l--JPFDsQzrNCaPWu57_nMIG1V8_ihud?usp=sharing
    2. https://colab.research.google.com/drive/12wmJi_HJ0Bu99_c81qAR3_CLPYMgMrDT?usp=sharing
    3. https://colab.research.google.com/drive/1WJjudpRrYKJmqeC_o0rHNj-3bQUmee1D?usp=sharing (LATEST ONE - last updated Jan 23)
  2. Save a copy of colab in your Drive.

    Untitled

    https://lh5.googleusercontent.com/BMNGO6vBE-znMxMmZFi9T-NkAyPGNkMzIgy2am1WYzZDAyM6ErsQbXG-zb05_9z8MkNomOa7XZobe2dg2no3_O8qfV9ue2JJaxWEOiLgtsIkRwQE-J41fh43mOm7cy4ayAKPhWEBrtKlXGcCELc-aNMLGhGxkYgbyT9Ug1jMlcfxKMFHOBai-fd8-nczWw

  3. Start running the cells one by one by clicking on the play button, waiting for it to show you a green success message, and the completing up through Requirement. We’re going to connect to your Drive and let it save things in a folder or two there as well as loading the Automatic1111 github repo into the colab.

https://lh5.googleusercontent.com/36oXddNWH0XxUplP8VPD5ZWI7Ho0PYTiZNaeGAw1UBMS67F7s61exGbs3SRtpmCHf-zHcIXuvYnR0pJNhlHB1k5hLTnOivjhsEOrpkQPybR6z4tDBiVrYUop9w4MWuWtalYkfrvFNRQ_Cwq4ZdVWYnsNGzBwkA39zs2Qse823qL_XNNeJdEYu0Op3GUbCQ

Untitled

Untitled

  1. After playing the Requirements checkbox and seeing “Done, proceed”, choose the model in Model Download/Load. This cell loads our model from my google drive.

<aside> ⬇️ Pay close attention to the red boxes in the image below.

</aside>

Somya’s backend model set-up and location of our first trained model.

Somya’s backend model set-up and location of our first trained model.