Open blx0102 opened 4 months ago
hi @blx0102 thanks for the issue! can you provide a reproducible script?
YiYi
@yiyixuxu Sorry for the late reply, here's parts of my code:
pipe_img2img = StableDiffusionImg2ImgPipeline.from_pretrained(base_model_path, torch_dtype=torch.float16, vae=vae)
pipe_img2img.scheduler = LCMScheduler.from_config(pipe_img2img.scheduler.config)
pipe_img2img.load_ip_adapter("./resource/IP-Adapter/", subfolder="models", weight_name="ip-adapter-plus-face_sd15.bin")
pipe_img2img.load_lora_weights(lcm_lora, adapter_name="lcm")
pipe_img2img.set_adapters(["lcm"], adapter_weights=[1.0])
pipes_img2img.set_ip_adapter_scale(scale)
pipe_img2img.to("cuda")
image = Image.open("face.png") # local image for ip-adapter
imgs_resize = [img1, img2] # I have a list of images need to do img2img
images_hires = pipes_img2img(ip_adapter_image=image, image=imgs_resize, prompt=prompt, negative_prompt=n_prompt_default, num_inference_steps=steps, guidance_scale=0.0, strength=0.7).images
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
In my case, I need to do img2img on multiple images, I saw the parameter "image" can be a list of PIL.image.iamge but when I used a list of images as input, I got an error like below.
How should I do this correctly? If I can do multi img2img at the same time, that would be great. HELP, thank you!