(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| from diffusers import DiffusionPipeline, StableDiffusionXLImg2ImgPipeline | |
| import torch | |
| model = "stabilityai/stable-diffusion-xl-base-1.0" | |
| pipe = DiffusionPipeline.from_pretrained( | |
| model, | |
| torch_dtype=torch.float16, | |
| ) | |
| pipe.to("cuda") | |
| pipe.load_lora_weights("model/", weight_name="pytorch_lora_weights.safetensors") |
Long ago, the first time I read "The Pragmatic Programmer", I read some advice that really stuck with me.
"Don't Use Manual Procedures".
This in the chapter on Ubiquitous Automation. To summarize, they want you to automate all the things.
The trouble was that I hadn't much of an idea how to actually go