Skip to content

Commit

Permalink
Docker: fix missing libnvinfer7
Browse files Browse the repository at this point in the history
  • Loading branch information
Trojaner authored May 1, 2023
1 parent 6a7ca53 commit 1daafcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ RUN . ./venv/bin/activate && \
python3 -m pip install --use-pep517 --no-deps -U triton==2.0.0 torch>=2.0.0+cu121 xformers \
--extra-index-url https://download.pytorch.org/whl/cu121

# Fix missing libnvinfer7
USER root
RUN ln -s /usr/lib/x86_64-linux-gnu/libnvinfer.so /usr/lib/x86_64-linux-gnu/libnvinfer.so.7 && \
ln -s /usr/lib/x86_64-linux-gnu/libnvinfer_plugin.so /usr/lib/x86_64-linux-gnu/libnvinfer_plugin.so.7

USER appuser
COPY --chown=appuser . .

# https://github.com/kohya-ss/sd-scripts/issues/405#issuecomment-1509851709
RUN sed -i 's/import library.huggingface_util/# import library.huggingface_util/g' train_network.py && \
sed -i 's/import library.huggingface_util/# import library.huggingface_util/g' library/train_util.py

Expand Down
1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ services:
context: .
ports:
- 127.0.0.1:7860:7860
stdin_open: true
tty: true
ipc: host
environment:
Expand Down

0 comments on commit 1daafcc

Please sign in to comment.