Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Guide] InvokeAI: A Stable Diffusion Toolkit - Docker

Featured Replies

No related to Invoke AI docker in community app

(Still Works as of April 2026)

This is a simple unofficial Docker for Unraid (with most data stored in appdata and uses git pull, this helps base image to not need constant updates) for InvokeAI: A Stable Diffusion Toolkit, on start it will check for updates from git, update python venv if changes are needed and auto start the web ui

 

This Docker is using the main branch of InvokeAI, as it is getting updated all the time, things might break every now and then

 

check out their hard work @ https://github.com/invoke-ai/InvokeAI  - Changelog 

or join the InvokeAI discord https://discord.gg/ZmtBAhwWhy

 

https://github.com/invoke-ai/InvokeAI/releases

 

I Know only a small amount about making a docker so this is probably not the right way as I just used google to work it all out, but it worked for me, thought others might find it useful.

 

My Opinion For best Experience (may or may not run on other hardware):

  • Minimal Requirements: A Nvidia GPU with at least 6gb Vram, at least a Pascal based cards, 12gb free system ram, 20gb storage space

  • Recommended requirements:  A Nvidia GPU with 8gb+ Vram, Turing based cards+, 16gb+ free system ram,  40gb+ storage space

 

There is now 2 Options to make the docker container:

 

Option 1 - Simplified Install (using Docker Hub)

1. building the docker container  

  • make a file called my-invokeai.xml or my-invokeai_prenodes.xml in \config\plugins\dockerMan\templates-user (on your unraid flash drive)

  • add the text below from one of the options below to it and save

  • then go to your unraid gui and then the docker tab, click "add container", in template dropdown box select your user template "invokeai"

  • change port/host paths if required

  • add your hugging face access token if you wish to have auto download of some models/concepts/diffusers

 

<?xml version="1.0"?>
<Container version="2">
  <Name>InvokeAI</Name>
  <Repository>mickr777/invokeai_unraid_main</Repository>
  <Registry>https://hub.docker.com/r/mickr777/invokeai_unraid_main</Registry>
  <Network>bridge</Network>
  <MyIP/>
  <Shell>bash</Shell>
  <Privileged>false</Privileged>
  <Support>https://forums.unraid.net/topic/130913-guide-invokeai-a-stable-diffusion-toolkit-docker/</Support>
  <Project>https://github.com/invoke-ai/InvokeAI/</Project>
  <Overview>Simplified Docker with auto update for InvokeAI and Unraid.</Overview>
  <Category>Other: Status:Beta</Category>
  <WebUI>http://[IP]:[PORT:9090]/</WebUI>
  <TemplateURL/>
  <Icon>https://i.ibb.co/N2c008N/invokeai.png</Icon>
  <ExtraParams>--gpus all</ExtraParams>
  <PostArgs/>
  <CPUset/>
  <DateInstalled/>
  <DonateText/>
  <DonateLink/>
  <Requires/>

  <Config Name="InvokeAI" Target="/home/invokeuser/InvokeAI/" Default="/mnt/cache/appdata/invokeai/invokeai/" Mode="rw" Description="InvokeAI source code path" Type="Path" Display="always" Required="true" Mask="false">/mnt/cache/appdata/invokeai/invokeai/</Config>

  <Config Name="userfiles" Target="/home/invokeuser/userfiles/" Default="/mnt/cache/appdata/invokeai/userfiles/" Mode="rw" Description="Persistent storage for models, configs, and outputs" Type="Path" Display="always" Required="true" Mask="false">/mnt/cache/appdata/invokeai/userfiles/</Config>

  <Config Name="venv" Target="/home/invokeuser/venv/" Default="/mnt/cache/appdata/invokeai/venv/" Mode="rw" Description="Python virtual environment storage" Type="Path" Display="always" Required="true" Mask="false">/mnt/cache/appdata/invokeai/venv/</Config>

  <Config Name="cache" Target="/home/invokeuser/.cache" Default="/mnt/user/appdata/invokeai/cache" Mode="rw" Description="Cache directory (e.g., Hugging Face models)" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/invokeai/cache</Config>

  <Config Name="Webui Port" Target="9090" Default="9090" Mode="tcp" Description="WebUI port" Type="Port" Display="always" Required="true" Mask="false">9090</Config>
</Container>

 

2. Last steps

  • after container build, on first run the python venv will be created and the preload of some models/weights/diffusers (this can take a while and will download 20gb+ of data, open docker log for progress)

  • once this is done load up any web browser and point it to [Your Unraid IP]:9090 (or the port you set)

 

---------------------------------------------------------------------------------------------

 

Option 2 - Full Manual Install - Main Branch (or just want to see what i did to get it to work)

1. First we will create the needed files

  • create a folder on one of the drive's on you unraid server (I named mine invokeai)

  • inside that folder create a text file called Dockerfile (make sure you remove the txt extension if it has one)

  • add this info in to it and save:

 

FROM ubuntu:24.04

RUN apt-get update \ 
  && DEBIAN_FRONTEND="noninteractive" \ 
  apt-get install -y \
  git \
  dos2unix \
  python3-pip \
  python3-venv \
  libopencv-dev \
  sudo \
  && apt-get clean

RUN apt-get install -y curl sudo
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && sudo apt-get install -y nodejs
RUN npm install -g pnpm

RUN useradd --create-home -u 99 -g 100 invokeuser && \
    chown -R 99:100 /home/invokeuser
WORKDIR /home/invokeuser
ADD start.sh .
RUN dos2unix start.sh
RUN chmod +x start.sh
USER invokeuser
WORKDIR /home/invokeuser
ADD invokeai.yaml .
ENTRYPOINT ["/bin/bash", "start.sh"]

 

  • then create a text file called start.sh

  • add this info in to it and click save:

 

#!/bin/bash

# Sets a variable for the home directory
HOMEDIR="/home/invokeuser"

# Checks if the git repo has been cloned and clones it if needed
if [ -f "$HOMEDIR/InvokeAI/pyproject.toml" ]; then
    git config --global --add safe.directory "$HOMEDIR/InvokeAI"
    cd "$HOMEDIR/InvokeAI" || exit
else
    echo "Cloning Git Repo into Local Folder..."
    git config --global --add safe.directory "$HOMEDIR/InvokeAI"
    git clone -b main https://github.com/invoke-ai/InvokeAI.git InvokeAI
    cd "$HOMEDIR/InvokeAI" || exit
fi

# Checks if Python Environment has been made and creates it if it has not
if [ -f "$HOMEDIR/venv/pyvenv.cfg" ]; then
    source "$HOMEDIR/venv/bin/activate"
else
    echo "Creating Python Environment...."
    python3 -m venv "$HOMEDIR/venv/"
    source "$HOMEDIR/venv/bin/activate"
    pip install --use-pep517 --no-cache-dir . --extra-index-url https://download.pytorch.org/whl/cu126
fi

# Checks if the git repo has had any changes and updates if needed
echo "Checking if The Git Repo Has Changed...."
git fetch
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse "$UPSTREAM")
BASE=$(git merge-base @ "$UPSTREAM")

if [ "$LOCAL" = "$REMOTE" ]; then
    echo "Local Files Are Up to Date"
elif [ "$LOCAL" = "$BASE" ]; then
    echo "Updates Found, Updating the local Files...."
    git stash
    git config pull.rebase true
    git pull
    git stash pop
fi

# Gets date modified for upcoming if statements
current=$(date +%s)
last_modified_env=$(stat -c "%Y" "$HOMEDIR/InvokeAI/pyproject.toml")

# Updates Python Environment if changes have been made to the pyproject.toml file
if [ -f "$HOMEDIR/venv/pyvenv.cfg" ] && [ $((current - last_modified_env)) -lt 60 ]; then
    echo "Updates Found, Updating Python Environment...."
    pip install --use-pep517 --no-cache-dir --upgrade -e .
fi

# Check for changes in the frontend and build if necessary
cd "$HOMEDIR/InvokeAI/invokeai/frontend/web/" || exit

# Get the latest commit hash for the frontend directory
FRONTEND_COMMIT=$(git log -n 1 --pretty=format:"%H" -- .)

# Path to commit hash file
COMMIT_HASH_FILE="$HOMEDIR/userfiles/frontend_commit_hash.txt"
FRONTEND_DIR="$HOMEDIR/InvokeAI/invokeai/frontend/web"
DIST_DIR="$FRONTEND_DIR/dist"

# Get the latest commit hash for the frontend directory
FRONTEND_COMMIT=$(git -C "$HOMEDIR/InvokeAI" log -n 1 --pretty=format:"%H" -- invokeai/frontend/web)

# Function to build frontend
build_frontend() {
    echo "Running pnpm install and build..."
    cd "$FRONTEND_DIR" || exit
    pnpm install
    pnpm build
    echo "$FRONTEND_COMMIT" > "$COMMIT_HASH_FILE"
	cp -r /home/invokeuser/InvokeAI/invokeai/frontend/web/dist \
    /home/invokeuser/venv/lib/python3.12/site-packages/invokeai/frontend/web/
}

# Check if build is needed
if [ ! -f "$COMMIT_HASH_FILE" ]; then
    echo "No previous frontend build detected. Building the frontend..."
    build_frontend
else
    PREV_FRONTEND_COMMIT=$(cat "$COMMIT_HASH_FILE")
    if [ "$FRONTEND_COMMIT" != "$PREV_FRONTEND_COMMIT" ]; then
        echo "Frontend changes detected. Rebuilding the frontend..."
        build_frontend
    elif [ ! -f "$DIST_DIR/index.html" ]; then
        echo "Build output missing. Rebuilding the frontend..."
        build_frontend
    else
        echo "Frontend is up to date. No rebuild necessary."
    fi
fi

CONFIG_FILE="$HOMEDIR/userfiles/invokeai.yaml"
LINE_TO_CHECK="host: 0.0.0.0"

mkdir -p "$HOMEDIR/userfiles"

if [ ! -f "$CONFIG_FILE" ]; then
    echo "Config file missing. Copying new one..."
    cp "$HOMEDIR/invokeai.yaml" "$CONFIG_FILE"
elif ! grep -qF "$LINE_TO_CHECK" "$CONFIG_FILE"; then
    echo "Line not found. Overwriting config file..."
    cp "$HOMEDIR/invokeai.yaml" "$CONFIG_FILE"
else
    echo "Config file already contains the line. No action needed."
fi

# Start the web UI and the backend
echo "Loading InvokeAI WebUI....."
cd "$HOMEDIR/InvokeAI"
python scripts/invokeai-web.py --root="$HOMEDIR/userfiles/"

Create a file called invokeai.yaml

# Internal metadata - do not edit:
schema_version: 4.0.2

# Put user settings here - see https://invoke-ai.github.io/InvokeAI/configuration/:
host: 0.0.0.0

2. Building the docker image

  • Open the Unraid Terminal

  • cd to folder where the 2 files we just created are stored

  • run this command and wait for it to be done:

docker build . -t invokeai_docker_main

 

3. building the docker container 

  • make a file called my-invokeai.xml in \config\plugins\dockerMan\templates-user (on your unraid flash drive)

  • add the text below to it and save

  • then go to your unraid gui and then the docker tab, click "add container", in template dropdown box select your user template "invokeai"

  • change port/host paths if required

 

<?xml version="1.0"?>
<Container version="2">
  <Name>InvokeAI</Name>
  <Repository>invokeai_docker_main</Repository>
  <Registry>https://hub.docker.com/r/mickr777/invokeai_unraid_main</Registry>
  <Network>bridge</Network>
  <MyIP/>
  <Shell>bash</Shell>
  <Privileged>false</Privileged>
  <Support>https://forums.unraid.net/topic/130913-guide-invokeai-a-stable-diffusion-toolkit-docker/</Support>
  <Project>https://github.com/invoke-ai/InvokeAI/</Project>
  <Overview>Simplified Docker with auto update for InvokeAI and Unraid.</Overview>
  <Category>Other: Status:Beta</Category>
  <WebUI>http://[IP]:[PORT:9090]/</WebUI>
  <TemplateURL/>
  <Icon>https://i.ibb.co/N2c008N/invokeai.png</Icon>
  <ExtraParams>--gpus all</ExtraParams>
  <PostArgs/>
  <CPUset/>
  <DateInstalled/>
  <DonateText/>
  <DonateLink/>
  <Requires/>

  <Config Name="InvokeAI" Target="/home/invokeuser/InvokeAI/" Default="/mnt/cache/appdata/invokeai/invokeai/" Mode="rw" Description="InvokeAI source code path" Type="Path" Display="always" Required="true" Mask="false">/mnt/cache/appdata/invokeai/invokeai/</Config>

  <Config Name="userfiles" Target="/home/invokeuser/userfiles/" Default="/mnt/cache/appdata/invokeai/userfiles/" Mode="rw" Description="Persistent storage for models, configs, and outputs" Type="Path" Display="always" Required="true" Mask="false">/mnt/cache/appdata/invokeai/userfiles/</Config>

  <Config Name="venv" Target="/home/invokeuser/venv/" Default="/mnt/cache/appdata/invokeai/venv/" Mode="rw" Description="Python virtual environment storage" Type="Path" Display="always" Required="true" Mask="false">/mnt/cache/appdata/invokeai/venv/</Config>

  <Config Name="cache" Target="/home/invokeuser/.cache" Default="/mnt/user/appdata/invokeai/cache" Mode="rw" Description="Cache directory (e.g., Hugging Face models)" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/invokeai/cache</Config>

  <Config Name="Webui Port" Target="9090" Default="9090" Mode="tcp" Description="WebUI port" Type="Port" Display="always" Required="true" Mask="false">9090</Config>
</Container>

 

4. Last steps

  • after container build, on first run the python venv will be created

  • once this is done load up any web browser and point it to [Your Unraid IP]:9090 (or the port you set)

Last Notes:

  • if you run in to errors after updates, cleaning out the /invokeai/invokeai/ folder and/or deleting the file /invokeai/venv/pyvenv.cfg and rerunning the docker can force a part rebuild and fix a lot of issues

 

 

Feel free to comment with any suggestions

Edited by mickr777

  • Replies 142
  • Views 88.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

Posted Images

This is awesome!!!  Thank you

  • mickr777 changed the title to [Guide] InvokeAI: A Stable Diffusion Toolkit - Docker (updated to Support V2.2.4 of InvokeAI)

Can you tell me what i need to do to get it running with a FirePro W4100 ?

  • Author
8 hours ago, LittelD said:

Can you tell me what i need to do to get it running with a FirePro W4100 ?

If I am not mistaken that gpu only has 2gb vram, You need to have a gpu with at least 4gb vram (8gb is highly recommended)

1 hour ago, mickr777 said:

If I am not mistaken that gpu only has 2gb vram, You need to have a gpu with at least 4gb vram (8gb is highly recommended)

argh damm.... is it without gpu possible :D?

  • Author
2 hours ago, LittelD said:

argh damm.... is it without gpu possible :D?

Yes you can run from cpu, but is extremely slow, to do this in my-invokeai.xml from the guide

change

<ExtraParams>--gpus all</ExtraParams>

to

<ExtraParams>--gpus 0</ExtraParams>

 

Edited by mickr777

1 hour ago, mickr777 said:

Yes you can run from cpu, but is extremely slow, to do this in my-invokeai.xml from the guide

change

<ExtraParams>--gpus all</ExtraParams>

to

<ExtraParams/>

 

sorry not working 

 

getting following error then docker stops suddenly

 

venv/lib/python3.10/site-packages/torch/cuda/__init__.py:88: UserWarning: HIP initialization: Unexpected error from hipGetDeviceCount(). Did you run some cuda functions before calling NumHipDevices() that might have already set an error? Error 101: hipErrorInvalidDevice (Triggered internally at ../c10/hip/HIPFunctions.cpp:110.)
  return torch._C._cuda_getDeviceCount() > 0

 

  • Author
28 minutes ago, LittelD said:

sorry not working 

 

getting following error then docker stops suddenly

 

venv/lib/python3.10/site-packages/torch/cuda/__init__.py:88: UserWarning: HIP initialization: Unexpected error from hipGetDeviceCount(). Did you run some cuda functions before calling NumHipDevices() that might have already set an error? Error 101: hipErrorInvalidDevice (Triggered internally at ../c10/hip/HIPFunctions.cpp:110.)
  return torch._C._cuda_getDeviceCount() > 0

 

Ok I Updated the script, try building again you will need to remove the docker, delete the img and the folders made and start the guide again try 

<ExtraParams>--gpus 0</ExtraParams>

 

Edited by mickr777

I got it all set up but when I start it, it does this...

 

Checking if The Git Repo Has Changed....
Local Files Are Up to Date
Loading InvokeAI WebUI.....
>> Patchmatch initialized
* Initializing, be patient...
>> InvokeAI runtime directory is "/userfiles"
>> GFPGAN Initialized
>> CodeFormer Initialized
>> ESRGAN Initialized
>> Using device_type cuda
>> Initializing safety checker
>> Current VRAM usage:  1.22G
>> Scanning Model: stable-diffusion-1.5
>> Model Scanned. OK!!
>> Loading stable-diffusion-1.5 from /userfiles/models/ldm/stable-diffusion-v1/v1-5-pruned-emaonly.ckpt
   | LatentDiffusion: Running in eps-prediction mode
   | DiffusionWrapper has 859.52 M params.
   | Making attention of type 'vanilla' with 512 in_channels
   | Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
   | Making attention of type 'vanilla' with 512 in_channels
   | Using faster float16 precision
   | Loading VAE weights from: /userfiles/models/ldm/stable-diffusion-v1/vae-ft-mse-840000-ema-pruned.ckpt
>> Model loaded in 7.57s
>> Max VRAM used to load the model: 3.38G 
>> Current VRAM usage:3.38G
>> Current embedding manager terms: *
>> Setting Sampler to k_lms

* Initialization done! Awaiting your command (-h for help, 'q' to quit)
invoke> goodbye!

  • Author
2 hours ago, VonHex said:

I got it all set up but when I start it, it does this...

 

Checking if The Git Repo Has Changed....
Local Files Are Up to Date
Loading InvokeAI WebUI.....
>> Patchmatch initialized
* Initializing, be patient...
>> InvokeAI runtime directory is "/userfiles"
>> GFPGAN Initialized
>> CodeFormer Initialized
>> ESRGAN Initialized
>> Using device_type cuda
>> Initializing safety checker
>> Current VRAM usage:  1.22G
>> Scanning Model: stable-diffusion-1.5
>> Model Scanned. OK!!
>> Loading stable-diffusion-1.5 from /userfiles/models/ldm/stable-diffusion-v1/v1-5-pruned-emaonly.ckpt
   | LatentDiffusion: Running in eps-prediction mode
   | DiffusionWrapper has 859.52 M params.
   | Making attention of type 'vanilla' with 512 in_channels
   | Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
   | Making attention of type 'vanilla' with 512 in_channels
   | Using faster float16 precision
   | Loading VAE weights from: /userfiles/models/ldm/stable-diffusion-v1/vae-ft-mse-840000-ema-pruned.ckpt
>> Model loaded in 7.57s
>> Max VRAM used to load the model: 3.38G 
>> Current VRAM usage:3.38G
>> Current embedding manager terms: *
>> Setting Sampler to k_lms

* Initialization done! Awaiting your command (-h for help, 'q' to quit)
invoke> goodbye!

Looks like their build script makes the invokeai.init file now on start,  so I needed to change my script a little, but if you edit and delete everything in the userfiles/invokeai.init file and just add --web --host="0.0.0.0" to it should fix it

Edited by mickr777

Thanks so much!

now it just does this.

Checking if The Git Repo Has Changed....
Local Files Are Up to Date
Loading InvokeAI WebUI.....
>> Initialization file /userfiles/invokeai.init found. Loading...
>> Initialization file /userfiles/invokeai.init found. Loading...
 

nevermind I guess it started working haha

On 12/17/2022 at 12:56 AM, mickr777 said:

Ok I Updated the script, try building again you will need to remove the docker, delete the img and the folders made and start the guide again try 

<ExtraParams>--gpus 0</ExtraParams>

 

Thanks alot, somehow didnt work. 

But i ordered a Tesla M40. I will wait and try then :)

  • mickr777 changed the title to [Guide] InvokeAI: A Stable Diffusion Toolkit - Docker (updated to Support V2.2.5 of InvokeAI)

My M40 arrived... but im still getting an error :D

docker run
  -d
  --name='InvokeAI'
  --net='bridge'
  -e TZ="Europe/Berlin"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="UnraidTower"
  -e HOST_CONTAINERNAME="InvokeAI"
  -e 'HUGGING_FACE_HUB_TOKEN'='xxxxxxxxxxxxxxxxxxx'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:7790]/'
  -l net.unraid.docker.icon='https://i.ibb.co/LPkz8X8/logo-13003d72.png'
  -p '7790:7790/tcp'
  -v '/mnt/cache/appdata/invokeai/invokeai/':'/InvokeAI/':'rw'
  -v '/mnt/cache/appdata/invokeai/userfiles/':'/userfiles/':'rw'
  -v '/mnt/user/appdata/invokeai/venv':'/venv':'rw'
  --gpus all 'invokeai_docker'
7db9xxxxxxxxxxxxx0eb5327xxxxxx
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

 

ay ay seems not to be easy with my config :D

  • Author
2 hours ago, LittelD said:

My M40 arrived... but im still getting an error :D

docker run
  -d
  --name='InvokeAI'
  --net='bridge'
  -e TZ="Europe/Berlin"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="UnraidTower"
  -e HOST_CONTAINERNAME="InvokeAI"
  -e 'HUGGING_FACE_HUB_TOKEN'='xxxxxxxxxxxxxxxxxxx'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:7790]/'
  -l net.unraid.docker.icon='https://i.ibb.co/LPkz8X8/logo-13003d72.png'
  -p '7790:7790/tcp'
  -v '/mnt/cache/appdata/invokeai/invokeai/':'/InvokeAI/':'rw'
  -v '/mnt/cache/appdata/invokeai/userfiles/':'/userfiles/':'rw'
  -v '/mnt/user/appdata/invokeai/venv':'/venv':'rw'
  --gpus all 'invokeai_docker'
7db9xxxxxxxxxxxxx0eb5327xxxxxx
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

 

ay ay seems not to be easy with my config :D

Did you install the unraid nvidia driver plug in?

plus it is a good idea to install NVTOP and GPU Statistics plugins with it too

 

 

Also in your my-invokeai.xml only change the port like this leave the rest 9090, if your using a different default port

<Config Name="Webui Port" Target="9090" Default="9090" Mode="tcp" Description="" Type="Port" Display="always" Required="true" Mask="false">7790</Config>

 

Edited by mickr777

35 minutes ago, mickr777 said:

Did you install the unraid nvidia driver plug in?

Also good to install NVTOP and GPU Statistics plugins with it too

 

 

Also in your my-invokeai.xml only change the port like this leave the rest 9090, if your using a different default port

<Config Name="Webui Port" Target="9090" Default="9090" Mode="tcp" Description="" Type="Port" Display="always" Required="true" Mask="false">7790</Config>

 

yeah well, as far as i found out Tesla cards are not supported by the plugin. trying to find some other way :(

  • Author
10 minutes ago, LittelD said:

yeah well, as far as i found out Tesla cards are not supported by the plugin. trying to find some other way :(

Ah I just saw you purchased a Telsa m40, worse case you might have to create a windows or linux vm and passthrough the gpu and install the gpu driver in the vm and then InvokeAI in it using there installer. (but that is outside the scope of my guide)

 

https://github.com/invoke-ai/InvokeAI/releases/tag/v2.2.5

Edited by mickr777

1 minute ago, mickr777 said:

Ah I just saw you purchased a Telsa m40, worse case you might have to create a windows or linux vm and passthrough the gpu and install the gpu driver in the vm and then InvokeAI in it using there installer.

 

https://github.com/invoke-ai/InvokeAI/releases/tag/v2.2.5

nooooo passing through the card seems not to be that easy also hahahaha

germans would say... vom regen in die taufe :D

Hi, thanks for this, after clearing the persistent store a couple times I am still having this crash:

 

You may download the recommended models (about 10GB total), select a customized set, or
completely skip this step.

Download <r>ecommended models, <a>ll models, <c>ustomized list, or <s>kip this step? [r]: 
A problem occurred during initialization.
The error was: "EOF when reading a line"
Traceback (most recent call last):
  File "/InvokeAI/ldm/invoke/CLI.py", line 96, in main
    gen = Generate(
  File "/InvokeAI/ldm/generate.py", line 160, in __init__
    mconfig             = OmegaConf.load(conf)
  File "/venv/lib/python3.10/site-packages/omegaconf/omegaconf.py", line 189, in load
    with io.open(os.path.abspath(file_), "r", encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/userfiles/configs/models.yaml'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/InvokeAI/scripts/configure_invokeai.py", line 780, in main
    errors.add(download_weights(opt))
  File "/InvokeAI/scripts/configure_invokeai.py", line 597, in download_weights
    choice = user_wants_to_download_weights()
  File "/InvokeAI/scripts/configure_invokeai.py", line 127, in user_wants_to_download_weights
    choice = input('Download <r>ecommended models, <a>ll models, <c>ustomized list, or <s>kip this step? [r]: ')
EOFError: EOF when reading a line

 

I was able to resolve this by

 

mkdir /userfiles/configs

 

, rebuilding the container (error again - missing file) then,

 

cp -r /invokeai/configs/stable-diffusion /userfiles/configs/.

 

Appears there is an expectation that configs exists pre, ready for the models.yaml file and stable-diffusion prefs.

 

Newb to this so more than likely this is a hack.

 

Cheers!

 

Ref: https://github.com/invoke-ai/InvokeAI/issues/1420

  • Author
3 hours ago, neurocis said:

Hi, thanks for this, after clearing the persistent store a couple times I am still having this crash:

 

You may download the recommended models (about 10GB total), select a customized set, or
completely skip this step.

Download <r>ecommended models, <a>ll models, <c>ustomized list, or <s>kip this step? [r]: 
A problem occurred during initialization.
The error was: "EOF when reading a line"
Traceback (most recent call last):
  File "/InvokeAI/ldm/invoke/CLI.py", line 96, in main
    gen = Generate(
  File "/InvokeAI/ldm/generate.py", line 160, in __init__
    mconfig             = OmegaConf.load(conf)
  File "/venv/lib/python3.10/site-packages/omegaconf/omegaconf.py", line 189, in load
    with io.open(os.path.abspath(file_), "r", encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/userfiles/configs/models.yaml'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/InvokeAI/scripts/configure_invokeai.py", line 780, in main
    errors.add(download_weights(opt))
  File "/InvokeAI/scripts/configure_invokeai.py", line 597, in download_weights
    choice = user_wants_to_download_weights()
  File "/InvokeAI/scripts/configure_invokeai.py", line 127, in user_wants_to_download_weights
    choice = input('Download <r>ecommended models, <a>ll models, <c>ustomized list, or <s>kip this step? [r]: ')
EOFError: EOF when reading a line

 

I was able to resolve this by

 

mkdir /userfiles/configs

 

, rebuilding the container (error again - missing file) then,

 

cp -r /invokeai/configs/stable-diffusion /userfiles/configs/.

 

Appears there is an expectation that configs exists pre, ready for the models.yaml file and stable-diffusion prefs.

 

Newb to this so more than likely this is a hack.

 

Cheers!

 

Ref: https://github.com/invoke-ai/InvokeAI/issues/1420

thanks you, it looks like when no hugginface token is given, the folders are not created I have updated start.sh and made some notes at bottom of first post

  • Author

If anyone gets a crash and docker exits after the diffuser update today, delete the contents of the folder \userfiles\models\hub\ and rerun the docker

  • mickr777 changed the title to [Guide] InvokeAI: A Stable Diffusion Toolkit - Docker (updated to Support Diffuser Update of InvokeAI)

Im getting this error after following the instructions, when creating the container with my XML file: 

 

docker: Error response from daemon: pull access denied for invokeai_docker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

 

Edit: in the docker template screen i changed the repo from "invokeai_docker" to "invokeai" and now it works. Maybe it has something to do with the fact that i had another "invokeai_docker" container previously.

Edited by YourNightmar3

  • Author
6 minutes ago, YourNightmar3 said:

Im getting this error after following the instructions, when creating the container with my XML file: 

 

docker: Error response from daemon: pull access denied for invokeai_docker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

that normally happens if the docker image doesn't exist locally.

 

when making the docker image did you use this

docker build . -t invokeai_docker

as the name there needs to match the repo in the xml, as we are only making a local image not an online one

Edited by mickr777

33 minutes ago, mickr777 said:

that normally happens if the docker image doesn't exist locally.

 

when making the docker image did you use this

docker build . -t invokeai_docker

as the name there needs to match the repo in the xml, as we are only making a local image not an online one

 

Ah thank you, i'm not very experienced with Docker and i must have changed the name when i executed the docker build command. It's working now.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.