代码拉取完成,页面将自动刷新
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1 \
CUDA_HOME=/usr/local/cuda-11.8 TORCH_CUDA_ARCH_LIST="8.6"
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt-get update && apt-get install -y --no-install-recommends \
make \
wget \
tar \
build-essential \
libgl1-mesa-dev \
curl \
unzip \
git \
python3-dev \
python3-pip \
libglib2.0-0 \
&& apt clean && rm -rf /var/lib/apt/lists/* \
&& ln -s /usr/bin/python3 /usr/bin/python
RUN echo "export PATH=/usr/local/cuda/bin:$PATH" >> /etc/bash.bashrc \
&& echo "export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH" >> /etc/bash.bashrc \
&& echo "export CUDA_HOME=/usr/local/cuda-11.8" >> /etc/bash.bashrc
RUN pip3 install \
torch==2.1.0 \
torchvision==0.16.0 \
xformers \
--index-url https://download.pytorch.org/whl/cu118
COPY . /streamdiffusion
WORKDIR /streamdiffusion
RUN python setup.py develop easy_install streamdiffusion[tensorrt] \
&& python -m streamdiffusion.tools.install-tensorrt
WORKDIR /home/ubuntu/streamdiffusion
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。