{
"$type": "site.standard.document",
"coverImage": {
"$type": "blob",
"ref": {
"$link": "bafkreif2c7r3hyeb3hstitbqtn4bqd6pweesfdbub5fbigei5n42odyr3e"
},
"mimeType": "image/jpeg",
"size": 40019
},
"description": "Rough notes and a Python script for running Stable Diffusion in a Singularity container with NVIDIA GPUs.",
"path": "/blog/2022/09/02/running-stable-diffusion-in-a-singularity-container",
"publishedAt": "2022-09-02T00:00:00.000Z",
"site": "at://did:plc:tevykrhi4kibtsipzci76d76/site.standard.publication/self",
"textContent": "singularity pull docker://nvcr.io/nvidia/pytorch:22.08-py3 git clone https://github.com/lstein/stable-diffusion.git SINGULARITYENVCUDAVISIBLEDEVICES=0 singularity shell --nv ../sifs/pytorch22.08-py3.sif source /opt/conda/etc/profile.d/conda.sh && conda activate ldm ffmpeg -framerate 30 -patterntype glob -i '.webp' -c:v libx264 -pixfmt yuv420p genesis.mp4 ffmpeg -framerate 5 -patterntype glob -i '-Joel-\\.webp' -c:v libx264 -pixfmt yuv420p Joel.mp4 ideas for actually packaging this stuff... https://stackoverflow.com/a/66598345",
"title": "Running stable diffusion in a singularity container"
}