-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bc1627
commit f19ec10
Showing
2 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
FROM nvidia/cuda:11.4.2-cudnn8-runtime-ubuntu20.04 | ||
|
||
RUN apt-get update &&\ | ||
apt-get install -y --no-install-recommends \ | ||
python3 \ | ||
python3-pip \ | ||
python3-dev \ | ||
build-essential | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt update -y | ||
RUN apt upgrade -y | ||
RUN apt install -y software-properties-common | ||
RUN add-apt-repository ppa:deadsnakes/ppa | ||
RUN apt install -y curl python3.9 python3.9-distutils | ||
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.9 | ||
|
||
WORKDIR /rembg | ||
|
||
COPY . . | ||
RUN python3.9 -m pip install .[gpu] | ||
|
||
RUN ["pip3", "install", ".[gpu]"] | ||
RUN mkdir -p ~/.u2net | ||
RUN gdown https://drive.google.com/uc?id=1tNuFmLv0TSNDjYIkjEdeH1IWKQdUA4HR -O ~/.u2net/u2netp.onnx | ||
RUN gdown https://drive.google.com/uc?id=1tCU5MM1LhRgGou5OpmpjBQbSrYIUoYab -O ~/.u2net/u2net.onnx | ||
RUN gdown https://drive.google.com/uc?id=1ZfqwVxu-1XWC1xU1GHIP-FM_Knd_AX5j -O ~/.u2net/u2net_human_seg.onnx | ||
|
||
ENTRYPOINT ["rembg"] | ||
CMD [] | ||
CMD ["--help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters