Skip to content

Commit

Permalink
WIP attempt to fix streamdiffusion
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Oct 9, 2024
1 parent eee88a7 commit ef43f91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ ENV PYENV_ROOT /root/.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH

# Install your desired Python version
ARG PYTHON_VERSION=3.11
ARG PYTHON_VERSION=3.10
RUN pyenv install $PYTHON_VERSION && \
pyenv global $PYTHON_VERSION && \
pyenv rehash

# Upgrade pip and install your desired packages
ARG PIP_VERSION=23.3.2
RUN pip install --no-cache-dir --upgrade pip==${PIP_VERSION} setuptools==69.5.1 wheel==0.43.0
RUN pip install --no-cache-dir --upgrade pip==${PIP_VERSION} setuptools==69.5.1 wheel==0.43.0

# Set environment variables
ENV MAX_WORKERS=1
Expand All @@ -41,4 +41,4 @@ ENV MODEL_DIR=/models
# - Setting the init system to runit

# We're keeping the WORKDIR /app here as it's a good default
WORKDIR /app
WORKDIR /app
3 changes: 2 additions & 1 deletion runner/docker/Dockerfile.stream-diffusion
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ RUN git clone https://github.com/cumulo-autumn/StreamDiffusion.git /streamdiffus
WORKDIR /streamdiffusion

# Install StreamDiffusion
RUN pip install streamdiffusion[tensorrt]
RUN pip install git+https://github.com/cumulo-autumn/StreamDiffusion.git@main#egg=streamdiffusion[tensorrt]

# Install TensorRT extension
RUN python -c "import platform; print(platform.system())"
RUN python -m streamdiffusion.tools.install-tensorrt

# Set environment variables for NVIDIA drivers
Expand Down

0 comments on commit ef43f91

Please sign in to comment.