# Kohya SS on Fedora 38 I clone `git@github.com:bmaltais/kohya_ss.git` And then `podman build -t dougbtv/kohyass` ``` screen -S kohya podman run \ -e SAFETENSORS_FAST_GPU=1 \ -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix \ -v /home/doug/ai-ml/kohya_ss/dataset:/dataset:rw \ -v /home/doug/ai-ml/automatic/models/Stable-diffusion/:/models:rw \ -v /home/doug/ai-ml/kohya_ss/.cache/user:/app/appuser/.cache:rw \ -v /home/doug/ai-ml/kohya_ss/.cache/triton:/app/appuser/.triton:rw \ -v /home/doug/ai-ml/kohya_ss/.cache/config:/app/appuser/.config:rw \ -v /home/doug/ai-ml/kohya_ss/.cache/nv:/app/appuser/.nv:rw \ -v /home/doug/ai-ml/kohya_ss/.cache/keras:/app/appuser/.keras:rw \ -p 7860:7860 \ --gpus all \ -i \ --tty \ --shm-size=512m \ --user root \ localhost/dougbtv/kohyass:latest ``` NOTE: I needed to run this from a place that has a display, there's GUI stuff in the python, so I ran it from inside a gnome session in screen, then I could access it elsewhere. I tried to run captioning... but, I didn't have the right path to import the library... I needed to add to `finetune/make_captions.py`: ``` import sys sys.path.append('/app') ``` I also filed [this issue on kohya_ss](https://github.com/bmaltais/kohya_ss/issues/816)