修改图片关键字生成图像
torch.manual_seed(0)
image = pipe(
prompt="二次元,一个白色长发红瞳小女孩,在家中沙发上坐着,双手托着腮,很无聊,全身,粉色连衣裙",
negative_prompt="丑陋、变形、嘈杂、模糊、低对比度",
cfg_scale=4,
num_inference_steps=50, height=1024, width=1024,
)
image.save("1.jpg")
修改图片关键字生成图像
torch.manual_seed(0)
image = pipe(
prompt="二次元,一个白色长发红瞳小女孩,在家中沙发上坐着,双手托着腮,很无聊,全身,粉色连衣裙",
negative_prompt="丑陋、变形、嘈杂、模糊、低对比度",
cfg_scale=4,
num_inference_steps=50, height=1024, width=1024,
)
image.save("1.jpg")