o
    7yj/                     @   s   d dl Z d dlmZ d dlmZ dZdZdZe j	 rdndZ
e
dkr&e jne jZeed	Zed
Zejeeddde
Ze  dZdZeeeeddddjd  Zee ede dS )    N)Image) StableDiffusionXLImg2ImgPipelinezRunDiffusion/Juggernaut-XL-v9zinput/test1.pngzoutput/output.pngcudacpuRGB)   r   fp16T)torch_dtypevariantuse_safetensorsa/  
Ultra realistic high-end fashion ecommerce catalog product photo of a single apparel item.

Front view, perfectly centered composition.
Perfectly laid flat on a pure white studio background.
Perfectly flattened garment.
Ironed flat appearance.
Professionally pressed fabric.
Freshly ironed clothing surface.
Crisp and straight garment shape.
Evenly spread fabric.
Perfect left-right symmetry.
Balanced garment proportions.
Aligned sleeves and hem.

Full garment completely visible from top to bottom, uncropped.
Clean garment outline with tidy edges.

Professional ecommerce catalog photography.
Official online store product shot.
Clean softbox studio lighting, soft natural shadow, sharp focus.
Highly detailed textile texture, seams, and stitching.

Preserve the original garment color, fabric texture, material, stitching, seams,
existing logos, existing prints, existing patterns, and proportions.

Do not redesign or modify the garment.
No new logos, no new text, no new typography, no new branding.
Smooth wrinkle-free fabric.
Luxury shopping mall catalog style.
a  
human, person, mannequin, ghost mannequin, body, hands, hanger,
cropped, cut off, incomplete clothing,
tilted, twisted, asymmetrical,
distorted, deformed, warped,
uneven shape, misaligned sleeves, unbalanced proportions,
wrinkles, fabric creases, crumpled fabric, messy folds,
overlapping fabric, double layers,
extra logo, extra text, typography, new branding, symbols, letters,
low quality, blurry, noisy, bad lighting, background objects
gffffff?g      @#   )promptnegative_promptimagestrengthguidance_scalenum_inference_stepszSaved:)torchPILr   	diffusersr   MODEL_ID
INPUT_PATHOUTPUT_PATHr   is_availableDEVICEfloat16float32DTYPEopenconvertr   resizefrom_pretrainedtopipeenable_attention_slicingr   r   imagesresultsaveprint r)   r)   Bhtdocs/OOTD2/inpainting/stable_diffusion/stable_diffusion_test2.py<module>   sB    
 
