Realistic_Vision_V4.0

我要开发同款
匿名用户2024年07月31日
65阅读
所属分类ai、stable_diffusion、pytorch、Chinese、zh、text-to-image、stable-diffusion-dif、stable-diffusion、mm
开源地址https://modelscope.cn/models/AI-ModelScope/Realistic_Vision_V4.0
授权协议creativeml-openrail-m

作品详情

Realistic Vision V4.0 based on Stable Diffusion

From: https://civitai.com/models/4201/realistic-vision-v20

modelscope usage example

from modelscope.utils.constant import Tasks
from modelscope.pipelines import pipeline
import cv2

pipe = pipeline(task=Tasks.text_to_image_synthesis,
                model='AI-ModelScope/Realistic_Vision_V4.0',
                model_revision='v1.0.0')

prompt = 'beautiful woman, realistic, Dappled Light, analog style, cinematic light, sidelighting, ultra high res, best shadow, RAW, beautiful hair, designer jacket, fashionable pants, turtleneck shirt, fall forest, Looking over the shoulder pose, professional model photoshoot, hdr, sunset,'
negative_prompt = 'nsfw, nudity, plastic, Deformed, blurry, bad anatomy, bad eyes, crossed eyes, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, blender, doll, cropped, low-res, close-up, poorly-drawn face, out of frame double, two heads, blurred, ugly, disfigured, too many fingers, deformed, repetitive, black and white, grainy, extra limbs, bad anatomy'

output = pipe({'text': prompt, 'negative_prompt': negative_prompt, 'num_inference_steps': 20})
cv2.imwrite('/result.png', output['output_imgs'][0])

images1 images2 images3

from modelscope.utils.constant import Tasks
from modelscope.pipelines import pipeline
import cv2

pipe = pipeline(task=Tasks.text_to_image_synthesis,
                model='AI-ModelScope/Realistic_Vision_V4.0',
                model_revision='v1.0.0')

prompt = '1boy, muscled, t-shirt,  face details  <lora:Joaquim Lopes:1>'
negative_prompt = 'japanese, Watermark, Text, censored, deformed, bad anatomy, disfigured, poorly drawn face, mutated, extra limb, ugly, poorly drawn hands, missing limb, floating limbs, disconnected limbs, disconnected head, malformed hands, long neck, mutated hands and fingers, bad hands, missing fingers, cropped, worst quality, low quality, mutation, mutated hands, poorly drawn, huge calf, bad hands, fused hand, missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs, missing fingers, fused fingers, abnormal eye proportion, Abnormal hands, abnormal legs, abnormal feet, abnormal fingers, amputee, pussy, (((girl, women, female, long hair))).'

output = pipe({'text': prompt, 'negative_prompt': negative_prompt, 'num_inference_steps': 50})
cv2.imwrite('/result.png', output['output_imgs'][0])

images4 images5 images6

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论