Instructions to use Alissonerdx/BFS-Best-Face-Swap-Video with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Alissonerdx/BFS-Best-Face-Swap-Video with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Lightricks/LTX-2.3,ByteDance/Bernini-R", torch_dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Alissonerdx/BFS-Best-Face-Swap-Video") prompt = "A man with short gray hair plays a red electric guitar." input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png") image = pipe(image=input_image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
ltx 2.3 vs wan 2.2 bernini model?
what's the difference between ltx 2.3 vs wan 2.2 bernini model? are they both v3?
The problem with LTX is that it works but produces ghosting effects, but on the other hand, it allows you to generate videos with higher resolutions and longer durations. Now, Wan Bernini is a full FineTune built on top of Wan 2.2, focused on editing, so in that case, it manages to be more consistent and without ghosting effects. The problem is that its resolution is lower, the FPS is 16, and the duration is also shorter.
also noticed that bernini doesn't keep the identity as well. Is that expected?
One important thing is to maintain the same resolution as the one used in the Bernini training, which in this case is a 640x640 resolution. It won't be square, but the maximum resolution of one of the sides should be that. Bernini is very sensitive to resolution. But I just saw that this was your case. Another thing would be to try describing the details of the face in the prompt. And as you can see, Bernini tends to copy the shape of the head and other characteristics more, so it won't always turn out well.
bernini is weaker
