Faice_text2face / test /test_inference.py
Ngene787's picture
refactor: change structure
4d24ceb
raw
history blame contribute delete
578 Bytes
# -*- coding: UTF-8 -*-
"""
@Time : 28/05/2025 15:22
@Author : xiaoguangliang
@File : test_inference.py
@Project : Faice_text2face
"""
from inference_models.stable_diffusion_inference import inference_sd
from utils import timer
prompt = "Portrait of a young woman with long wavy hair, soft studio lighting, high contrast, 4k resolution, professional headshot"
# prompt = "Close-up of a smiling man with sharp jawline, cinematic lighting, shallow depth of field, bokeh background"
with timer("Test inference"):
image, seed = inference_sd(prompt)
image.save("test.png")