Closed KRSHH closed 3 weeks ago
This PR introduces significant UI improvements and new features for face swapping functionality. The changes include a modernized dropdown menu, persistent switch states, enhanced face opacity controls, and mouth masking capabilities. The UI has been reorganized into a two-column layout for better organization of controls, and new visualization features have been added for debugging purposes.
No diagrams generated as the changes look simple and do not need a visual representation.
Change | Details | Files |
---|---|---|
Added a modern dropdown menu component for camera selection |
|
modules/ui.py |
Implemented persistent switch states for user preferences |
|
modules/ui.py modules/globals.py |
Enhanced face swapping with new masking and opacity features |
|
modules/processors/frame/face_swapper.py |
Reorganized UI layout and improved controls |
|
modules/ui.py |
Updated documentation and media references |
|
README.md modules/metadata.py |
Awesome work @KRSHH but there's still frame dips on the new theme.
https://github.com/user-attachments/assets/23495085-1d90-4497-8d92-c6b7416174cc
https://github.com/user-attachments/assets/9b127668-97fe-4028-bf12-8ce4e4b62eb5
See comparison video on the push
Thanks, Looking into it.
what is mask size and mask feather pls
what is mask size and mask feather pls
This PR is still not there. use main
i don't get what you mean by main but bro i used yours/pulled yours into my project and its working very well, in terms of performance with my GPU i was having performance issues with the main one and also some issues with the slider but this one is working perfectly, but i don't know what mask size and mask feather is so i wanted to know if its something that will help me, the "show fps" button really helped me out honestly thansk
i don't get what you mean by main but bro i used yours/pulled yours into my project and its working very well, in terms of performance with my GPU i was having performance issues with the main one and also some issues with the slider but this one is working perfectly, but i don't know what mask size and mask feather is so i wanted to know if its something that will help me, the "show fps" button really helped me out honestly thansk
Mask size is the size of the cropping of mouth region from faceswap and feather is the smoothening of it. you can see it by enabling show mouth box
How much FPS are you getting on main compared to this?
thanks, I'm getting at least 4 times more fps when I use this one with CUDA or tensorrt when i was using main I was getting max 0.8 fps with my NVIDIA RTX 6GB graphics card(on main CUDA isnt working so i could only use CPU), when i used this I'm getting from 2.9 to 6fps on CUDA and tensorrt, using CPU gives me like 1.8, now the difference between 0.8 and 2.9 fps is very big and its more than enough for me i just need to find a good webcam because some webcams slow it down so thanks a lot
Summary by Sourcery
Enhance the UI with a new dropdown menu and reorganize layout for better usability. Add features for saving and loading switch states, and implement face opacity and mouth mask in face swapping. Update documentation with new media paths and additional guidance.
New Features:
Enhancements:
Documentation: