AIGC:python 文生图代码(python + stable-diffusion+ cuda) - 文章中心
AIGC:python 文生图代码(python + stable-diffusion+ cuda)
2024-12-31

搭建一个文生图环境 + python文生图代码,通过输入prompt,生成图片

AIGC:python 文生图代码(python + stable-diffusion+ cuda)

文生图的代码比较简易,主要是搭建环境+下载文生图大模型

步骤一:
创建虚拟环境(用python 3.10版本,起得名字最好可以一看就知道Python的版本)
conda create -n text2img3.10 python==3.10.4

  I   II   III   IV