latent-diffusion icon indicating copy to clipboard operation
latent-diffusion copied to clipboard

Add dockerfile and update pytorch-lightning

Open ss32 opened this issue 3 years ago • 1 comments

Adds a working Dockerfile.

Example usage:

docker run --rm -it --gpus all\ 
-v $(pwd)/outputs:/outputs diffusion:latest\
 python scripts/txt2img.py --prompt "red water bottle floating in a pool"\
 --ddim_eta 0.0 --n_samples 1 --n_iter 1\
 --scale 5.0  --ddim_steps 50 --W 512 --H 512\
 --outdir /outputs

Update to conda env file closes #49

ss32 avatar Apr 17 '22 19:04 ss32

NVIDIA seems to have broken their docker images, resulting in the following error message:

W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC                                                    
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease' is not signed.

Contxt:

  • https://github.com/NVIDIA/nvidia-container-toolkit/issues/257
  • https://gitlab.com/nvidia/container-images/cuda/-/issues/158#note_934064306

I replaced the first line of the Dockerfile with

FROM nvidia/cuda:11.6.0-base-ubuntu20.04

which made it work again.

99991 avatar Jun 23 '22 06:06 99991