Qwen-Image
Collection
19 items • Updated • 5
import torch
from diffusers import DiffusionPipeline
# 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_edit_2dCartoonAvatar_lora")
prompt = "2davat0r,转换成2D卡通头像"
image = pipe(prompt).images[0]



通过qwen edit,将一张人物肖像图片转换成充满卡通的质感的头像照片 可以直接在comfyui中使用,提示词就只用填“2davat0r,转换成2D卡通头像” 推荐权重 1.0
You should use 2davat0r to trigger the image generation.
You should use 转换成2D卡通头像 to trigger the image generation.
Download them in the Files & versions tab.
Base model
Qwen/Qwen-Image-Edit