Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile #74

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# docker build . --tag alae:latest
# docker run --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 --gpus all -it --rm --env="DISPLAY" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --mount type=bind,source="/home/jp/Documents/styleganWorkspace",target=/styleganWorkspace \ -v `pwd`:/var alae:latest
#
FROM nvcr.io/nvidia/pytorch:20.12-py3
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8

RUN apt update -y
RUN apt-get upgrade -y
RUN apt-get install libgl1-mesa-glx -y

RUN pip install torch opencv-python torchvision tqdm scikit-image keras
COPY . .
RUN pip install -r requirements.txt
RUN python training_artifacts/download_all.py
RUN python interactive_demo.py