可以的,没有 GUI(图形界面)也完全能装和运行 Stable Diffusion,常见有几种方式:
git clone + pip installpip install diffusers transformers accelerate torchfrom diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
image = pipe("a cat").images[0]
image.save("cat.png")tmux / nohup 挂着跑如果你说的是“树莓派 / 纯终端 / 云服务器”这类具体环境,可以告诉我,我可以直接给你一套安装命令。