AI绘图模型
Stable Diffusion模型具有以下几个优点:
import cv2
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
pipe = pipeline(Tasks.text_to_image_synthesis, model='AI-ModelScope/stable-diffusion-GhostMix-V1-1', model_revision='v1.0.0')
output = pipe({'text': 'girl, Design a sorcerer who can communicate with animals, showcasing their magical talents and deep connection to the natural world.'})
cv2.imwrite('result.png', output['output_imgs'][0])
git clone https://www.modelscope.cn/AI-ModelScope/stable-diffusion-GhostMix-V1-1.git