lekto
October 4, 2022, 7:25pm
1
Hi all,
I came up with a Dockerfile to run Stable Diffusion inside a contianer on Jetson.
Jetson AGX Orin and Jetson AGX Xavier with big VRAM space make it pretty straight forward to run Stable Diffusion, so have a try if you happen to have the hardware.
“Robots marching down a street in Japan”
1 Like
Really cool, thanks for sharing @lekto !
1 Like
lphung
October 6, 2022, 1:33pm
3
Hi @lekto . I tried this on my Jetson Nano but got the error bellow with “./docker/run.sh”. I am working on this now but it would be nice if you can point out what is wrong here.
1 Like
lekto
October 7, 2022, 9:59pm
4
With only 4GB for RAM, I think it is almost impossible to run Stable Diffusion on Jetson Nano.
lphung
October 9, 2022, 4:10am
5
Yes, thank you for your information @lekto . I just want to run some tests with it.
Hi @lekto and @dusty_nv Would it be possible to use the xformers to speedup your image generation on Orin in a Docker container? Xformers · AUTOMATIC1111/stable-diffusion-webui Wiki · GitHub
Hi @lphung , if you check @lekto ’s Dockerfile, that container image was built against JetPack 5.0:
So you would probably need to rebuild it against the version of JetPack you are on with Nano (JetPack 4.x)
Hi @seflands , I’m not entirely sure if this is applicable or not, but here’s also this optimized version of DALL-E Mini for PyTorch:
1 Like
what about Jetson TX2? Does anybody tried to run Stable Diffusion there?
1 Like
@dusty_nv how to rebuild the container for jetpack 5.1 , i am trying to run stable diffusion on xavier nx development kit
@lekto where u able to run the stable diffusion on xavier nx if so what are the packages and its version used can you please mention it here
@abhigoku10 you can find instructions for building containers from jetson-containers here:
# Building Containers
[`build.sh`](/build.sh) is a proxy launcher script for [`jetson_containers/build.py`](/jetson_containers/build.py). It can be run from any working directory (in the examples below, that's assumed to be your jetson-containers repo). Make sure you do the [system setup](/docs/setup.md) first.
To list the packages available to build for your version of JetPack/L4T, you can use `--list-packages` and `--show-packages`:
```bash
$ ./build.sh --list-packages # list all packages
$ ./build.sh --show-packages # show all package metadata
$ ./build.sh --show-packages ros* # show all the ros packages
```
To build a container that includes one or more packages:
```bash
$ ./build.sh pytorch # build a container with just PyTorch
$ ./build.sh pytorch jupyterlab # build container with PyTorch and JupyterLab
```
The builder will chain together the Dockerfiles of each of packages specified, and use the result of one build stage as the base image of the next. The initial base image defaults to `l4t-base`/`l4t-jetpack` (for JetPack 4 and JetPack 5, respectively) but can be changed by specifying the `--base-image` argument.
This file has been truncated. show original
The container images on DockerHub for stable-diffusion-webui are a month old: dustynv/stable-diffusion-webui:r35.4.1
@dusty_nv
Q1. thanks for sharing the link , i was able to setup the packages as mentioned by @lekto and was getting the following error
Is it related the the packages not downloading properly or something else ?
Q2. did u try running the GitHub - kuprel/min-dalle: min(DALL·E) is a fast, minimal port of DALL·E Mini to PyTorch at ur end was it successful ??
Q3 I am trying to any LLM and Stable diffusion models in Jetson Xavier , do u have any suggestions