How to use joyfox/Qwen-Image-Edit-ARStandonScreen with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("joyfox/Qwen-Image-Edit-ARStandonScreen") prompt = "保持人物的高度一致性,图中的人物站在被人托起的智能手机屏幕上,营造从手机中站出的三维透视错觉。采用俯视视角,双手摆出俏皮可爱的剪刀手姿势。手机屏幕呈现为深色地板般的舞台效果,通过强制透视强调手、手机与人的比例差异。手机外的背景为干净灰色,柔和室内光线,浅景深,超现实写实风格。" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0]
The community tab is the place to discuss and collaborate with the HF community!