Skip to content

Commit

Permalink
Add open-clip-torch dependency and fix import in degradations.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashx committed Feb 17, 2024
1 parent 01c6201 commit 0323468
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ RUN --mount=type=cache,target=/root/.cache/pip \
pip install --upgrade -r /requirements.txt --no-cache-dir && \
rm /requirements.txt

RUN pip install open-clip-torch==2.20.0

RUN sed -i 's/from torchvision.transforms.functional_tensor import rgb_to_grayscale/from torchvision.transforms.functional import rgb_to_grayscale/g' /usr/local/lib/python3.10/site-packages/basicsr/data/degradations.py

ADD src .
Expand Down

0 comments on commit 0323468

Please sign in to comment.