Skip to content

Commit a709f78

Browse files
committed
add docker, fix import
1 parent cd9d1d7 commit a709f78

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

DockerFile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM pytorch/pytorch:2.5.1-cuda11.8-cudnn9-devel
2+
3+
ENV DEBIAN_FRONTEND=noninteractive \
4+
PYTHONUNBUFFERED=1 \
5+
CUDA_HOME=/usr/local/cuda \
6+
PATH="$CUDA_HOME/bin:$PATH"
7+
8+
RUN apt-get update && apt-get install -y --no-install-recommends \
9+
git \
10+
curl \
11+
ffmpeg \
12+
libsm6 \
13+
libxext6 \
14+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
15+
16+
WORKDIR /workspace/
17+
18+
COPY requirements.txt /workspace/requirements.txt
19+
20+
RUN pip install --upgrade pip \
21+
&& pip install ninja \
22+
&& MAX_JOBS=1 pip install flash-attn --no-build-isolation \
23+
&& pip install -r requirements.txt \
24+
&& pip install opencv-fixer==0.2.5 \
25+
&& python -c "from opencv_fixer import AutoFix; AutoFix()"
26+
27+
CMD ["/bin/bash"]

infinity/models/infinity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from torch.utils.checkpoint import checkpoint
1717
from PIL import Image
1818
import numpy as np
19-
from torch.nn.attention.flex_attention import flex_attention
19+
# from torch.nn.attention.flex_attention import flex_attention
2020

2121
import infinity.utils.dist as dist
2222
from infinity.utils.dist import for_visualize

0 commit comments

Comments
 (0)