Open bent1e opened 8 months ago
I tried it and it didn't work, How do you use it. @xiaohu2015 @bent1e
Hi! I tried the same thing but got an error that i could not fix.
RuntimeError: cannot reshape tensor of 0 elements into shape [0, -1, 1, 512] because the unspecified dimension size -1 can be any value and is ambiguous
Here's a notebook about it:
https://colab.research.google.com/drive/1KpluifUCOxJbVl4rC4BoEBSRsyYfaDDh?usp=sharing
If anyone stumbles upon this error, i fixed it by using both pil_image and image parameters while generating images.
images = ip_model.generate(
prompt=prompt, negative_prompt=negative_prompt, pil_image=image_resized, image=image_resized, face_image=face_image, guidance_scale=5,
faceid_embeds=faceid_embeds, shortcut=True, s_scale=1.0,
num_samples=4, width=512, height=512, num_inference_steps=40, seed=[1511,1621,1713,1814 ]
)
yes, it should can