Replies: 1 comment 2 replies
-
Hi, it is practically impossible to get the same results. ComfyUI uses There's multiple factors that affect this, you can read some of them in this issue: #7432 If you're having problems with converting workflows to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently, I want to migrate comfyui workflows to huggingface code. First I test a simple examples from diffusers DOC, code is:
`from diffusers import AutoPipelineForText2Image
from diffusers.utils import load_image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16).to("cuda")
pipeline.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter_sdxl.bin")
pipeline.set_ip_adapter_scale(0.6)
image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/ip_adapter_diner.png")
generator = torch.Generator(device="cpu").manual_seed(0)
images = pipeline(
prompt="a polar bear sitting in a chair drinking a milkshake",
ip_adapter_image=image,
negative_prompt="deformed, ugly, wrong proportion, low res, bad anatomy, worst quality, low quality",
num_inference_steps=100,
generator=generator,
).images
images[0]`
My system is :
In my compute, I run the code, and i got a result like this:
which is different from official reslut, official result like this:
Then I build a workflow with comfyui, and I got a result like this:
I got three different result, and i don't know what wrong with that. My question is:
By the way, comfyui workflow is:
workflow.json
Beta Was this translation helpful? Give feedback.
All reactions