bmaltais / kohya_ss

Apache License 2.0
9.4k stars 1.22k forks source link

Docker Compose not functional #2687

Open NickDevoctomy opened 1 month ago

NickDevoctomy commented 1 month ago

Following the instructions in the readme,

git clone --recursive https://github.com/bmaltais/kohya_ss.git
cd kohya_ss
docker compose up -d --build

I get the following error,

 => ERROR [kohya-ss-gui build 5/6] RUN --mount=type=cache,id=pip-amd64,sharing=locked,target=/root/  0.5s
------
 > [kohya-ss-gui build 5/6] RUN --mount=type=cache,id=pip-amd64,sharing=locked,target=/root/.cache/pip     --mount=source=requirements_linux_docker.txt,target=requirements_linux_docker.txt     --mount=source=requirements.txt,target=requirements.txt     --mount=source=setup/docker_setup.py,target=setup.py     --mount=source=sd-scripts,target=sd-scripts,rw     pip install -r requirements_linux_docker.txt -r requirements.txt:
0.460 Obtaining file:///app/sd-scripts (from -r requirements.txt (line 35))
0.473 ERROR: file:///app/sd-scripts (from -r requirements.txt (line 35)) does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
------
failed to solve: process "/bin/sh -c pip install -r requirements_linux_docker.txt -r requirements.txt" did not complete successfully: exit code: 1

Any ideas? (probably something i'm doing wrong).

I'm using the latest master

NickDevoctomy commented 1 month ago

Just found the following,

https://github.com/bmaltais/kohya_ss/issues/1051

Although the solution suggested seems to be old as things have changed since. I seem to have got it working by commenting out the last line of requirements.txt,

#-e ./sd-scripts # no_verify leave this to specify not checking this a verification stage

No idea if it's all working correctly but i can access the GUI, so it's a start. My apologies if I've asked a question many people ask repeatedly, I done a quick search prior but didn't find anything, my query must have been off.

MorrisLu-Taipei commented 1 month ago

oh my god , seems too hard to install via Docker compose. quit and user original way to install