Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
maxells
maksim717
Follow
0 followers
·
1 following
AI & ML interests
None yet
Recent Activity
updated
a bucket
21 days ago
maksim717/NSFW_Wan_1.3b-bucket
published
a bucket
21 days ago
maksim717/NSFW_Wan_1.3b-bucket
replied
to
Norod78
's
post
over 2 years ago
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
View all activity
Organizations
None yet
maksim717
's datasets
None public yet