Realistic_Vision_V4.0
  • 模型资讯
  • 模型资料

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