Setup devcontainers in a fresh VM and train :hugging_face: Hugging Face sdxl example.
##Â Overview
Files added from the examples:
- .devcontainer/devcontainer.json is the key file that describes the devcontainer for VS code.
- setup-env.sh creates the python env with
venvand installs the python dependencies - examples/text_to_image/train-sdxl.sh just calls the instructions from the original examples/text_to_image/README_sdxl.md
- Download repo and
cdinto itgit clone github.com/gee-gendo/diffusers-dev-container - In VS code, Reopen with dev container. Install the extension if needed.
cmd + shift + P
Reopen in container
You can click show logs to follow the build
- Run setup script
# Setup python env and dependencies
./setup-env.sh- Select python interpreter (in
.venvfolder). - Run training script
cd examples/text_to_image
./train-sdxl.shYou can then check the logs to confirm everything is running. GPU usage available as usual with the nvidia-smi cli.