forked from vladmandic/automatic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vladimir Mandic <[email protected]>
- Loading branch information
1 parent
880f6f6
commit 8d50661
Showing
8 changed files
with
71 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# defaults | ||
.history | ||
.vscode/ | ||
/__pycache__ | ||
/.ruff_cache | ||
/cache | ||
/cache.json | ||
/config.json | ||
/extensions/* | ||
/html/extensions.json | ||
/html/themes.json | ||
/metadata.json | ||
/node_modules | ||
/outputs/* | ||
/package-lock.json | ||
/params.txt | ||
/pnpm-lock.yaml | ||
/styles.csv | ||
/tmp | ||
/ui-config.json | ||
/user.css | ||
/venv | ||
/webui-user.bat | ||
/webui-user.sh | ||
/*.log.* | ||
/*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,4 +74,3 @@ dist/ | |
!/models/VAE-approx/model.pt | ||
!/models/Reference | ||
!/models/Reference/**/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# SD.Next Dockerfile | ||
FROM pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime | ||
# TBD add org info | ||
LABEL org.opencontainers.image.authors="vladmandic" | ||
WORKDIR / | ||
COPY . . | ||
# stop pip and uv from caching | ||
ENV PIP_NO_CACHE_DIR=true | ||
ENV UV_NO_CACHE=true | ||
# disable model hashing for faster startup | ||
ENV SD_NOHASHING=true | ||
# set data directories | ||
ENV SD_DATADIR="/mnt/data" | ||
ENV SD_MODELSDIR="/mnt/models" | ||
# install dependencies | ||
RUN ["apt-get", "-y", "update"] | ||
RUN ["apt-get", "-y", "install", "git"] | ||
# sdnext will run all necessary pip install ops and then exit | ||
RUN ["python", "launch.py", "--debug", "--uv", "--use-cuda", "--log", "sdnext.log", "--test"] | ||
# preinstall additional packages to avoid installation during runtime | ||
RUN ["uv", "pip", "install", "-r", "requirements-extra.txt"] | ||
# actually run sdnext | ||
CMD ["python", "launch.py", "--debug", "--skip-all", "--listen", "--quick", "--api-log", "--log", "sdnext.log"] | ||
# expose port | ||
EXPOSE 7860 | ||
# TBD add healthcheck function | ||
HEALTHCHECK NONE | ||
STOPSIGNAL SIGINT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters