mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 05:22:06 -07:00
With interactive converter you can change any parameter of any frame and see the result in real time. Converter: added motion_blur_power param. Motion blur is applied by precomputed motion vectors. So the moving face will look more realistic. RecycleGAN model is removed. Added experimental AVATAR model. Minimum required VRAM is 6GB (NVIDIA), 12GB (AMD) Usage: 1) place data_src.mp4 10-20min square resolution video of news reporter sitting at the table with static background, other faces should not appear in frames. 2) process "extract images from video data_src.bat" with FULL fps 3) place data_dst.mp4 video of face who will control the src face 4) process "extract images from video data_dst FULL FPS.bat" 5) process "data_src mark faces S3FD best GPU.bat" 6) process "data_dst extract unaligned faces S3FD best GPU.bat" 7) train AVATAR.bat stage 1, tune batch size to maximum for your card (32 for 6GB), train to 50k+ iters. 8) train AVATAR.bat stage 2, tune batch size to maximum for your card (4 for 6GB), train to decent sharpness. 9) convert AVATAR.bat 10) converted to mp4.bat updated versions of modules
22 lines
No EOL
589 B
Python
22 lines
No EOL
589 B
Python
from .estimate_sharpness import estimate_sharpness
|
|
from .equalize_and_stack_square import equalize_and_stack_square
|
|
|
|
from .text import get_text_image, get_draw_text_lines
|
|
|
|
from .draw import draw_polygon, draw_rect
|
|
|
|
from .morph import morph_by_points
|
|
|
|
from .warp import gen_warp_params, warp_by_params
|
|
|
|
from .reduce_colors import reduce_colors
|
|
|
|
from .color_transfer import color_hist_match, reinhard_color_transfer, linear_color_transfer
|
|
|
|
from .DCSCN import DCSCN
|
|
|
|
from .common import normalize_channels, overlay_alpha_image
|
|
|
|
from .IEPolys import IEPolys
|
|
|
|
from .blur import LinearMotionBlur |