Commit graph

271 commits

Author SHA1 Message Date
leno3003
a3de74223f added sumbmodules 2022-03-30 15:53:17 +02:00
leno3003
c131eb692f added sumbmodules 2022-03-30 15:42:12 +02:00
leno3003
675c10a758 added sumbmodules 2022-03-30 15:39:45 +02:00
leno3003
c40d7ee52f added sumbmodules 2022-03-30 15:28:08 +02:00
leno3003
6d68692e74 added sumbmodules 2022-03-30 14:10:30 +02:00
leno3003
3dc9366d18 check if pkl exist to apply modifications 2022-03-29 14:12:12 +02:00
leno3003
5b04cc047e check if pkl exist to apply modifications 2022-03-29 13:07:07 +02:00
leno3003
b3134a99d0 automatized arguments with pickle 2022-03-29 12:26:54 +02:00
leno3003
d132667138 automatized arguments with pickle 2022-03-29 09:23:26 +02:00
leno3003
dee168e5a6 automatized arguments with pickle 2022-03-28 22:43:24 +02:00
iperov
f64b2495d9 dev_misc: code to extract microsoft/FaceSynthetics dataset 2021-10-12 17:23:57 +04:00
iperov
91f0f30a78 fix save in trainer 2021-10-11 15:02:41 +04:00
iperov
9ad9728b40 fix 2021-07-17 22:04:34 +04:00
iperov
8b71b83c94 fix 2021-07-17 22:03:59 +04:00
iperov
63c794b3d0 rename dump_dflive to export_dfm 2021-06-28 18:26:54 +04:00
iperov
c43b3b161b _ 2021-06-27 20:43:44 +04:00
iperov
714234bce4 missing file 2021-06-26 18:03:04 +04:00
iperov
5783191849 AMP: code refactoring, fix preview history
added dumpdflive command
2021-06-26 10:44:41 +04:00
iperov
1981ed0ca8 _ 2021-06-01 00:21:27 +04:00
iperov
757283d10e Trainer now saves every 25 min instead of 15 2021-05-25 14:23:25 +04:00
iperov
8b90ca0dac XSegUtil apply xseg now checks model face type 2021-05-12 09:41:53 +04:00
iperov
b15cdd96a1 fix FacesetResizer 2021-05-09 20:07:36 +04:00
iperov
aa26089032 FacesetResizer now supports changing face type 2021-05-06 10:52:04 +04:00
iperov
7a08c0c1d3 Extractor: extract from dflimg is now the same as from any image 2021-04-20 16:45:20 +04:00
iperov
1652bffeb0 change in xseg apply and fetch 2021-03-24 13:42:57 +04:00
iperov
b7245d888b missing file 2021-03-24 13:00:47 +04:00
iperov
b333fcea4b dump_ckpt 2021-03-23 15:00:24 +04:00
iperov
554217d026 added "Windows 10 users IMPORTANT notice" on training start 2020-12-20 16:55:25 +04:00
iperov
b21bce458f Sorter: added sort by motion blur 2020-12-13 09:49:32 +04:00
Colombo
573ab6c22c . 2020-11-25 12:20:15 +04:00
Colombo
3930073e32 Merger: added option “Number of workers?”
Specify the number of threads to process.
A low value may affect performance.
A high value may result in memory error.
The value may not be greater than CPU cores.
2020-07-17 15:46:01 +04:00
Colombo
c58d2e8fb3 fix cv2.resize interpolation 2020-07-03 18:41:42 +04:00
Colombo
57ea3e61b7 fix extractor 2020-07-03 16:06:06 +04:00
Colombo
f56df85f78 fix manual extractor 2020-07-03 15:07:42 +04:00
Colombo
e5ed29bd76 fix continue extraction 2020-07-03 14:05:34 +04:00
Colombo
b6dd482e05 . 2020-06-27 19:08:14 +04:00
Colombo
bb8d2b5b2c max faces from image 2020-06-27 19:07:55 +04:00
Colombo
7da28b283d Extractor:
added ‘Image size’ option.
The higher image size, the worse face-enhancer works. Use higher than 512 value only if the source image is sharp enough and the face does not need to be enhanced.

added ‘Jpeg quality’ option in range 1-100. The higher jpeg quality the larger the output file size
2020-06-24 11:45:23 +04:00
Colombo
29b1050637 Sorter: improved sort by blur, and sort by best faces 2020-06-23 21:02:38 +04:00
Colombo
235315dd70 fix 2020-06-06 19:52:07 +04:00
Colombo
1e003170bd reduced chance of "The paging file is too small for this operation to complete." 2020-06-06 19:38:11 +04:00
Colombo
f91a604c6d Manual extractor: now you can specify face rectangle manually using ‘R Mouse button’.
It is useful for small, blurry, undetectable faces, animal faces.
https://i.imgur.com/8kmVgg8.jpg
Warning: such frames must be used only with XSeg workflow !
Landmarks cannot be placed on the face precisely, and they are actually used for positioning the red frame.
Try to keep the red frame the same as the adjacent frames.
2020-06-02 12:31:24 +04:00
Colombo
5b4d023712 added 5.XSeg) data_dst/data_src mask for XSeg trainer - remove.bat
removes labeled xseg polygons from the extracted frames
2020-04-06 21:45:46 +04:00
Colombo
8e9e346c9d Extractor: now face_type can be choosed in console dialog 2020-04-04 10:08:23 +04:00
Colombo
2b7364005d Added new face type : head
Now you can replace the head.
Example: https://www.youtube.com/watch?v=xr5FHd0AdlQ
Requirements:
	Post processing skill in Adobe After Effects or Davinci Resolve.
Usage:
1)	Find suitable dst footage with the monotonous background behind head
2)	Use “extract head” script
3)	Gather rich src headset from only one scene (same color and haircut)
4)	Mask whole head for src and dst using XSeg editor
5)	Train XSeg
6)	Apply trained XSeg mask for src and dst headsets
7)	Train SAEHD using ‘head’ face_type as regular deepfake model with DF archi. You can use pretrained model for head. Minimum recommended resolution for head is 224.
8)	Extract multiple tracks, using Merger:
a.	Raw-rgb
b.	XSeg-prd mask
c.	XSeg-dst mask
9)	Using AAE or DavinciResolve, do:
a.	Hide source head using XSeg-prd mask: content-aware-fill, clone-stamp, background retraction, or other technique
b.	Overlay new head using XSeg-dst mask

Warning: Head faceset can be used for whole_face or less types of training only with XSeg masking.

XSegEditor: added button ‘view trained XSeg mask’, so you can see which frames should be masked to improve mask quality.
2020-04-04 09:28:06 +04:00
Colombo
383d4d3736 fix 2020-04-03 16:24:34 +04:00
Colombo
6d3607a13d New script:
5.XSeg) data_dst/src mask for XSeg trainer - fetch.bat
Copies faces containing XSeg polygons to aligned_xseg\ dir.
Useful only if you want to collect labeled faces and reuse them in other fakes.

Now you can use trained XSeg mask in the SAEHD training process.
It’s mean default ‘full_face’ mask obtained from landmarks will be replaced with the mask obtained from the trained XSeg model.
use
5.XSeg.optional) trained mask for data_dst/data_src - apply.bat
5.XSeg.optional) trained mask for data_dst/data_src - remove.bat

Normally you don’t need it. You can use it, if you want to use ‘face_style’ and ‘bg_style’ with obstructions.

XSeg trainer : now you can choose type of face
XSeg trainer : now you can restart training in “override settings”
Merger: XSeg-* modes now can be used with all types of faces.

Therefore old MaskEditor, FANSEG models, and FAN-x modes have been removed,
because the new XSeg solution is better, simpler and more convenient, which costs only 1 hour of manual masking for regular deepfake.
2020-03-30 14:00:40 +04:00
Colombo
deb705ad53 _ 2020-03-21 11:11:52 +04:00
Colombo
efe3b56683 DFLIMG refactoring 2020-03-21 01:18:15 +04:00
Colombo
8a622428b1 _ 2020-03-16 23:15:13 +04:00