text
I've prepared  a Google Colab notebook  which allows you to play with interpolating between different people using IP-Adapter SDXL Face-ID Plus. 
I've prepared  a Google Colab notebook  which allows you to play with interpolating between different people using IP-Adapter SDXL Face-ID Plus. 
new_line
new_line
code_fence
```

#Prepare a list t of num_of_results values between 0 and 1
t_space = torch.linspace(0, 1, num_of_results)
for t in tqdm(t_space):
    mix_factor = t.item()
    # interpolate between the two face images 
    image = (image1 * (1 - mix_factor) + image2 * mix_factor).astype(np.uint8)
    # interpolate between the two face embedding 
    faceid_embeds = torch.lerp(faceid_embeds1, faceid_embeds2, t)
   #generate interpolated result
    images = ip_model.generate(prompt=prompt, negative_prompt=negative_prompt, face_image=image, faceid_embeds=faceid_embeds, shortcut=v2, num_samples=2, scale=scale, s_scale=s_scale, guidance_scale=guidance_scale, width=width, height=height, num_inference_steps=steps, seed=seed)
    
```

#Prepare a list t of num_of_results values between 0 and 1
t_space = torch.linspace(0, 1, num_of_results)
for t in tqdm(t_space):
    mix_factor = t.item()
    # interpolate between the two face images 
    image = (image1 * (1 - mix_factor) + image2 * mix_factor).astype(np.uint8)
    # interpolate between the two face embedding 
    faceid_embeds = torch.lerp(faceid_embeds1, faceid_embeds2, t)
   #generate interpolated result
    images = ip_model.generate(prompt=prompt, negative_prompt=negative_prompt, face_image=image, faceid_embeds=faceid_embeds, shortcut=v2, num_samples=2, scale=scale, s_scale=s_scale, guidance_scale=guidance_scale, width=width, height=height, num_inference_steps=steps, seed=seed)
    
new_line
new_line
text
Link to notebook:
Link to notebook:
new_line
resource
https://colab.research.google.com/#fileId=https%3A//huggingface.co/datasets/Norod78/face_id_v2_test_code/blob/main/norod78_faceid_sdxl_plus_v2_test.ipynb
dataset
Norod78/face_id_v2_test_code
https://colab.research.google.com/#fileId=https%3A//huggingface.co/datasets/Norod78/face_id_v2_test_code/blob/main/norod78_faceid_sdxl_plus_v2_test.ipynb
new_line
new_line
text
Link to Face-ID Repo:
Link to Face-ID Repo:
new_line
resource
https://huggingface.co/h94/IP-Adapter-FaceID
model
h94/IP-Adapter-FaceID
https://huggingface.co/h94/IP-Adapter-FaceID
new_line
new_line
text
Link to all sorts of generated examples (Use the file tab):
Link to all sorts of generated examples (Use the file tab):
new_line
resource
https://huggingface.co/datasets/Norod78/face_id_v2_test_code/tree/main/sdxl_plus_v2_outputs
dataset
Norod78/face_id_v2_test_code
https://huggingface.co/datasets/Norod78/face_id_v2_test_code/tree/main/sdxl_plus_v2_outputs
new_line
new_line
I've prepared  a Google Colab notebook  which allows you to play with interpolating between different people using IP-Adapter SDXL Face-ID Plus. 

```

#Prepare a list t of num_of_results values between 0 and 1
t_space = torch.linspace(0, 1, num_of_results)
for t in tqdm(t_space):
    mix_factor = t.item()
    # interpolate between the two face images 
    image = (image1 * (1 - mix_factor) + image2 * mix_factor).astype(np.uint8)
    # interpolate between the two face embedding 
    faceid_embeds = torch.lerp(faceid_embeds1, faceid_embeds2, t)
   #generate interpolated result
    images = ip_model.generate(prompt=prompt, negative_prompt=negative_prompt, face_image=image, faceid_embeds=faceid_embeds, shortcut=v2, num_samples=2, scale=scale, s_scale=s_scale, guidance_scale=guidance_scale, width=width, height=height, num_inference_steps=steps, seed=seed)
    
```

Link to notebook:
https://colab.research.google.com/#fileId=https%3A//huggingface.co/datasets/Norod78/face_id_v2_test_code/blob/main/norod78_faceid_sdxl_plus_v2_test.ipynb

Link to Face-ID Repo:
https://huggingface.co/h94/IP-Adapter-FaceID

Link to all sorts of generated examples (Use the file tab):
https://huggingface.co/datasets/Norod78/face_id_v2_test_code/tree/main/sdxl_plus_v2_outputs


🤯
osanseviero linoyts clem merve HuggyMonkey tonyassi
❤️
s3nh clem kevinstonge samusenps tonyassi fahim1233
👍
abdd199719
https://cdn-avatars.huggingface.co/v1/production/uploads/61caeda441f9432649f03ab6/0UdRCrzIqhedZblgfpMBk.png
s3nh
s3nh
user
https://cdn-avatars.huggingface.co/v1/production/uploads/1671292294864-5e00e3bdcbfd036a99df0da3.jpeg
Doron Adler
Norod78
user
https://cdn-avatars.huggingface.co/v1/production/uploads/638f308fc4444c6ca870b60a/Q11NK-8-JbiilJ-vk2LAR.png
Linoy Tsaban
linoyts
user
https://cdn-avatars.huggingface.co/v1/production/uploads/1583857146757-5e67bdd61009063689407479.jpeg
Clem 🤗
clem
user
/avatars/3ae664485d8df12c9b0e7b91e8d0457b.svg
maxells
maksim717
user