File size: 2,437 Bytes
d54d67e
f60e9d8
 
 
 
 
 
 
 
 
 
6df73fa
f60e9d8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a148894
 
 
 
 
 
 
 
 
 
 
f60e9d8
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
license: bsd
language:
- es
- en
pipeline_tag: text-to-image
tags:
- code
- art
- stable diffusion
---

<br>
  <center>
    <h1>
      I hope it is of total help, you can support me on my networks, to continue bringing more tools for SD    </h1>
  </center>  
<br>

# Stable Diffusion in Colab - Code Base
[![Twitter](https://badgen.net/badge/icon/twitter?icon=twitter&label)](https://twitter.com/Luminesco_) 
[Version en Español](https://huggingface.co/GeneralGost/monitor/blob/main/README-ESP.md)
## Resources included
- Python script to automate the download of Stable DIffusion with extensions and dependencies already packaged
- Folder intended for Version Testing
- Folder Updated ControlNet Models

## Upcoming Updates
- Automated script to download Models and other files from websites like HuggingFace and Civitai
- Implementation of downloading Extensions for SD
- Connection with Google Drive to export results

## How to use this repository

1. Copy the code below into a new Google Colab Notebook like this: Menu - File/New Notebook
2. Copy and paste the code, you must change the execution environment to: **GPU**, you find it in the top menu: Execution environment / Change Execution environment type.
   ``` python
    # @title Ejecuta la celda no preguntes nada mas {display-mode: "form"}
    #@markdown ## Espera el enlace
    from IPython.utils import capture
    with capture.capture_output() as cap:
      %cd /content
      !wget --header='Authorization: Bearer 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' https://huggingface.co/GeneralGost/monitor/resolve/main/testVersion/dist.zip
      !unzip -u dist.zip -d /content/dist
      !rm -rf /content/dist.zip
    del cap
    print("🚀 Descargando SD modificado por Generalgost... Por favor, no detengas este proceso bajo ninguna circunstancia...\n", end='')
    !python /content/dist/engine.py
    ```
3. In the tests carried out, the Colab lasted more than an hour, keep that in mind.

### If you need to use a new account for Colab, please repeat the previous process. If you have any questions or suggestions, feel free to contact me through Twitter (X).

## Recommendations
1. You should copy the code to a new Colab Notebook to avoid tracking issues.
2. Partial or complete reproduction of the code is prohibited, since doing so would generate massive detection of the shared code.
3. Use this code sparingly, taking care of execution times to avoid tracebacks