Skip to content

Commit

Permalink
Default to nvcr.io/nvidia/tensorflow:20.10-tf1-py3 base image (#10)
Browse files Browse the repository at this point in the history
This works out of the box on newer NVIDIA GPUs such as RTX 3090.
Note that an NVIDIA driver release r455.23 or later is required to
run this image.

See README for instructions on how to build for older drivers.
  • Loading branch information
jannehellsten committed Oct 26, 2020
1 parent 9b78595 commit 8c3fd8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# distribution of this software and related documentation without an express
# license agreement from NVIDIA CORPORATION is strictly prohibited.

FROM tensorflow/tensorflow:1.14.0-gpu-py3
ARG BASE_IMAGE=nvcr.io/nvidia/tensorflow:20.10-tf1-py3
FROM $BASE_IMAGE

RUN pip install scipy==1.3.3
RUN pip install requests==2.22.0
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ docker run --gpus all -it --rm -v `pwd`:/scratch --user $(id -u):$(id -g) styleg
--outdir=out --network=https://nvlabs-fi-cdn.nvidia.com/stylegan2-ada/pretrained/metfaces.pkl)"
```

**Note**: The above defaults to a container base image that requires NVIDIA driver release `r455.23` or later. To build an image for older drivers and GPUs, run:

```.bash
docker build --build-arg BASE_IMAGE=tensorflow/tensorflow:1.14.0-gpu-py3 --tag stylegan2ada:latest .
```

## Projecting images to latent space

To find the matching latent vector for a given image file, run:
Expand Down

0 comments on commit 8c3fd8b

Please sign in to comment.