Commit Graph

83 Commits

Author SHA1 Message Date
iperov 407ce3b1ca Added interactive converter.
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
2019-08-24 12:57:29 +04:00
iperov 8484060e01 Trainer: added option for all models
Enable autobackup? (y/n ?:help skip:%s) :
Autobackup model files with preview every hour for last 15 hours. Latest backup located in model/<>_autobackups/01

SAE: added option only for CUDA builds:
Enable gradient clipping? (y/n, ?:help skip:%s) :
Gradient clipping reduces chance of model collapse, sacrificing speed of training.
2019-06-20 10:42:55 +04:00
iperov 615a999c68 added google drive download link 2019-05-14 09:33:10 +04:00
iperov 2239c8d9ab upd readme 2019-05-11 12:18:43 +04:00
iperov 3555801046 upd docs 2019-05-07 13:09:20 +04:00
iperov b50220a7d1 upd doc 2019-05-03 08:54:07 +04:00
iperov 2a8dd788dc SAE: added option 'Pretrain the model?',
Pretrain the model with large amount of various faces. This technique may help to train the fake with overly different face shapes and light conditions of src/dst data. Face will be look more like a morphed. To reduce the morph effect, some model files will be initialized but not be updated after pretrain: LIAE: inter_AB.h5 DF: both decoders.h5. The longer you pretrain the model the more morphed face will look. After that, save and run the training again.
2019-05-01 19:55:27 +04:00
iperov b16c745f1f upd manuals 2019-04-29 08:34:04 +04:00
iperov 836693d64f added option 'Choose image for the preview history? (y/n skip:' 2019-04-27 10:03:54 +04:00
iperov 9535a657d2 SAE: revert back CA weights option 2019-04-24 13:44:12 +04:00
iperov 33a45ec531 revert docs 2019-04-23 18:36:40 +04:00
iperov 2809d495c2 _ 2019-04-23 17:31:58 +04:00
iperov 046649e6be update == 04.20.2019 == (#242)
* superb improved fanseg

* _

* _

* added FANseg extractor for src and dst faces to use it in training

* -

* _

* _

* update to 'partial' func

* _

* trained FANSeg_256_full_face.h5,
new experimental models: AVATAR, RecycleGAN

* _

* _

* _

* fix for TCC mode cards(tesla), was conflict with plaidML initialization.

* _

* update manuals

* _
2019-04-20 08:23:08 +04:00
iperov 8561c1a931 fix MaskEditor, upd manual ru 2019-04-08 14:13:36 +04:00
iperov de8d75b4f7 fix mask editor,
upd manuals
2019-04-04 22:19:56 +04:00
iperov a885838363 make seamless great again!
fixed seamless face jitter
removed options Suppress seamless jitter, seamless erode mask modifier.
seamlessed face now properly uses blur modifier
added option 'FAN-prd&dst' - using multiplied FAN prd and dst mask,
2019-03-30 11:58:40 +04:00
iperov 7b5fb497f0 upd manual 2019-03-29 18:09:33 +04:00
iperov ec0c4d0128 upd readme 2019-03-26 09:15:22 +04:00
iperov 37505d88e3 old SAE model will not work with this update.
Fixed bug when SAE can be collapsed during a time.

SAE: removed CA weights and encoder/decoder dims.

added new options:

Encoder dims per channel (21-85 ?:help skip:%d)
More encoder dims help to recognize more facial features, but require more VRAM. You can fine-tune model size to fit your GPU.

Decoder dims per channel (11-85 ?:help skip:%d)
More decoder dims help to get better details, but require more VRAM. You can fine-tune model size to fit your GPU.

Add residual blocks to decoder? (y/n, ?:help skip:n) :
These blocks help to get better details, but require more computing time.

Remove gray border? (y/n, ?:help skip:n) :
Removes gray border of predicted face, but requires more computing resources.
2019-03-24 15:35:02 +04:00
iperov c4f41a7e76 Converter: added new mask modes: FAN-prd, FAN-dst 2019-03-21 21:19:03 +04:00
iperov 5d819e3e83 upd manual_ru 2019-03-18 11:49:01 +04:00
iperov f3b343c0e5 small fixed and refactorings 2019-03-16 20:55:51 +04:00
iperov da0fc2d2e1 update manual_ru 2019-03-13 20:03:46 +04:00
iperov aaf7ecd595 update manual_ru 2019-03-12 21:27:37 +04:00
iperov 52f149a570 update manual_ru 2019-03-11 09:34:47 +04:00
iperov fbf39d2727 added new extractor: S3FD,
all extractors now produce less false-positive faces
2019-03-10 23:18:10 +04:00
iperov 95e70d510f upd doc_prebuilt_windows_app.md 2019-03-09 10:09:27 +04:00
iperov f2de3b5ab7 upd manual_ru 2019-03-09 10:02:14 +04:00
iperov 9cc1a20255 update manual_ru 2019-03-08 20:15:00 +04:00
iperov 8f7b268376 upd manual_ru 2019-03-07 20:51:37 +04:00
iperov e625cfef0b upd doc/doc_prebuilt_windows_app.md 2019-03-07 20:39:53 +04:00
iperov 6094e5ead8 added Util.recover_original_aligned_filename 2019-03-04 10:57:44 +04:00
iperov 0448220f8f update manual_ru 2019-03-03 15:53:36 +04:00
iperov 31c2298b5f Converter: added option for seamless to supress jittering,
Lenx,leny region now averaged by grayscale gradients,
now uses all CPU.
SAE: multiscale_decoder option default = False
update readme and manual_ru.pdf
2019-03-03 15:33:52 +04:00
iperov 18d2c52d8c added manual_ru.pdf 2019-03-02 17:40:27 +04:00
iperov 5e474c3462 added sort by one face in images. it trashes all images in which more than 1 face is found 2019-02-22 11:32:27 +04:00
iperov d29b8fd469 update readme 2019-02-19 21:45:40 +04:00
iperov b939fe9d85 OpenCL support: fix bug, adding new requirements files 2019-02-19 20:48:39 +04:00
iperov 72ba6b103c added support of AMD videocards
added Intel's plaidML backend to use OpenCL engine. Check new requirements.
smart choosing of backend in device.py
env var 'force_plaidML' can be choosed to forced using plaidML
all tf functions transferred to pure keras
MTCNN transferred to pure keras, but it works slow on plaidML (forced to CPU in this case)
default batch size for all models and VRAMs now 4, feel free to adjust it on your own
SAE: default style options now ZERO, because there are no best values for all scenes, set them on your own.
SAE: return back option pixel_loss, feel free to enable it on your own.
SAE: added option multiscale_decoder default is true, but you can disable it to get 100% same as H,DF,LIAEF model behaviour.
fix converter output to .png
added linux fork reference to doc/doc_build_and_repository_info.md
2019-02-19 17:33:12 +04:00
iperov 642b88a8d3 upd doc/doc_sort_tool.md 2019-02-15 20:09:51 +04:00
TooMuchFun 22ccec7036 Clean language up docs (#147)
* clean up docs

* doc fixes as requested

* revert updates to sort tool documentation
2019-02-15 20:06:13 +04:00
iperov fbf6b5f25e upd readme 2019-02-13 21:24:55 +04:00
iperov 43d0282995 upd README.md 2019-02-13 21:10:29 +04:00
iperov 58991dd22f update DeepFaceLab_convertor_overview 2019-02-13 17:32:30 +04:00
iperov e759575060 update DeepFaceLab_convertor_overview 2019-02-13 17:29:26 +04:00
iperov 218a5cfd05 upd doc_ready_to_work_facesets.md 2019-02-13 13:45:14 +04:00
iperov 06fe1314d8 removing default yaw_value from DFLIMG files,
added better pitch/yaw estimator from 68 landmarks,
improving face yaw accuracy for sorting and trainers,
added sort by face-pitch
2019-02-12 21:31:37 +04:00
iperov e9313e29f6 update doc_tips_and_tricks.md 2019-02-11 22:10:31 +04:00
iperov e069b839f1 upd readme 2019-02-11 21:46:51 +04:00
iperov e5823097d5 upd rea 2019-02-07 19:44:48 +04:00