Skip to content

Commit

Permalink
moved the notebook files into their own directory
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Sep 11, 2022
1 parent 878ef2e commit 4f72cb4
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 13 deletions.
19 changes: 14 additions & 5 deletions docs/features/OTHER.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
## **Google Colab**

Stable Diffusion AI Notebook: <a href="https://colab.research.google.com/github/lstein/stable-diffusion/blob/main/Stable_Diffusion_AI_Notebook.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> <br>
Open and follow instructions to use an isolated environment running Dream.<br>
Stable Diffusion AI Notebook: <a
href="https://colab.research.google.com/github/lstein/stable-diffusion/blob/main/notebooks/Stable_Diffusion_AI_Notebook.ipynb"
target="_parent"><img
src="https://colab.research.google.com/assets/colab-badge.svg"
alt="Open In Colab"/></a> <br> Open and follow instructions to use an
isolated environment running Dream.<br>

Output Example:
![Colab Notebook](../assets/colab_notebook.png)
Expand All @@ -10,8 +14,10 @@ Output Example:

## **Seamless Tiling**

The seamless tiling mode causes generated images to seamlessly tile with itself. To use it, add the `--seamless` option when starting the
script which will result in all generated images to tile, or for each `dream>` prompt as shown here:
The seamless tiling mode causes generated images to seamlessly tile
with itself. To use it, add the `--seamless` option when starting the
script which will result in all generated images to tile, or for each
`dream>` prompt as shown here:

```
dream> "pond garden with lotus by claude monet" --seamless -s100 -n4
Expand All @@ -21,7 +27,10 @@ dream> "pond garden with lotus by claude monet" --seamless -s100 -n4

## **Reading Prompts from a File**

You can automate `dream.py` by providing a text file with the prompts you want to run, one line per prompt. The text file must be composed with a text editor (e.g. Notepad) and not a word processor. Each line should look like what you would type at the dream> prompt:
You can automate `dream.py` by providing a text file with the prompts
you want to run, one line per prompt. The text file must be composed
with a text editor (e.g. Notepad) and not a word processor. Each line
should look like what you would type at the dream> prompt:

```
a beautiful sunny day in the park, children playing -n4 -C10
Expand Down
11 changes: 8 additions & 3 deletions docs/installation/INSTALL_MAC.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ Requirements

\*I haven't tested any of this on Intel Macs but I have read that one person got it to work, so Apple Silicon might not be requried.

Things have moved really fast and so these instructions change often and are often out-of-date. One of the problems is that there are so many different ways to run this.
Things have moved really fast and so these instructions change often
and are often out-of-date. One of the problems is that there are so
many different ways to run this.

We are trying to build a testing setup so that when we make changes it doesn't always break.
We are trying to build a testing setup so that when we make changes it
doesn't always break.

How to (this hasn't been 100% tested yet):

Expand Down Expand Up @@ -88,7 +91,9 @@ The original scripts should work as well.
python scripts/orig_scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms
```

Note, `export PIP_EXISTS_ACTION=w` is a precaution to fix `conda env create -f environment-mac.yaml` never finishing in some situations. So it isn't required but wont hurt.
Note, `export PIP_EXISTS_ACTION=w` is a precaution to fix `conda env
create -f environment-mac.yaml` never finishing in some situations. So
it isn't required but wont hurt.

After you follow all the instructions and run dream.py you might get several errors. Here's the errors I've seen and found solutions for.

Expand Down
20 changes: 15 additions & 5 deletions docs/installation/INSTALL_WINDOWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@

## **Notebook install (semi-automated)**

We have a [Jupyter notebook](https://github.com/lstein/stable-diffusion/blob/main/Stable-Diffusion-local-Windows.ipynb) with cell-by-cell installation steps. It will download the code in this repo as one of the steps, so instead of cloning this repo, simply download the notebook from the link above and load it up in VSCode (with the appropriate extensions installed)/Jupyter/JupyterLab and start running the cells one-by-one.

Note that you will need NVIDIA drivers, Python 3.10, and Git installed beforehand - simplified
[step-by-step instructions](https://github.com/lstein/stable-diffusion/wiki/Easy-peasy-Windows-install) are available in the wiki (you'll only need steps 1, 2, & 3 ).
We have a [Jupyter
notebook](https://github.com/lstein/stable-diffusion/blob/main/notebooks/Stable-Diffusion-local-Windows.ipynb)
with cell-by-cell installation steps. It will download the code in
this repo as one of the steps, so instead of cloning this repo, simply
download the notebook from the link above and load it up in VSCode
(with the appropriate extensions installed)/Jupyter/JupyterLab and
start running the cells one-by-one.

Note that you will need NVIDIA drivers, Python 3.10, and Git installed
beforehand - simplified [step-by-step
instructions](https://github.com/lstein/stable-diffusion/wiki/Easy-peasy-Windows-install)
are available in the wiki (you'll only need steps 1, 2, & 3 ).

## **Manual Install**

Expand Down Expand Up @@ -43,7 +51,8 @@ conda env create -f environment.yaml (step 6a)
conda activate ldm (step 6b)
```

This will install all python requirements and activate the "ldm" environment which sets PATH and other environment variables properly.
This will install all python requirements and activate the "ldm"
environment which sets PATH and other environment variables properly.

7. Run the command:

Expand Down Expand Up @@ -97,6 +106,7 @@ This distribution is changing rapidly. If you used the `git clone` method (step

```
git pull
conda env update -f environment.yaml
```

This will bring your local copy into sync with the remote one.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4f72cb4

Please sign in to comment.