Commit graph

1201 commits

Author SHA1 Message Date
Colombo
ce95af9068 SAEHD: write_preview_history now works faster
The frequency at which the preview is saved now depends on the resolution.
For example 64x64 – every 10 iters. 448x448 – every 70 iters.
2020-07-18 11:03:13 +04:00
Colombo
58670722dc fix 2020-07-17 17:40:32 +04:00
Colombo
b9b97861e1 fix mask for style losses 2020-07-17 17:34:07 +04:00
Colombo
0efebe6bc5 upd deepfake_progress.png 2020-07-17 15:56:35 +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
dd21880ecd fix 2020-07-16 23:39:56 +04:00
Colombo
6c7bb74ad4 README: update deepfake_progress, 448 pix 2020-07-16 22:26:43 +04:00
Colombo
e8b04053e4 SAEHD:
Changed help for “Learning rate dropout” option:

When the face is trained enough, you can enable this option to get extra sharpness and reduce subpixel shake for less amount of iterations.

Enabled it before “disable random warp” and before GAN. n disabled. y enabled

cpu enabled on CPU. This allows not to use extra VRAM, sacrificing 20% time of iteration.

 Changed help for GAN option:

Train the network in Generative Adversarial manner.

Forces the neural network to learn small details of the face.

Enable it only when the face is trained enough and don't disable.

Typical value is 0.1

improved GAN. Now it produces better skin detail, less patterned aggressive artifacts, works faster.
https://i.imgur.com/Nbh3mw1.png
2020-07-16 22:19:17 +04:00
Colombo
aacd29269a fix 2020-07-16 22:11:23 +04:00
Colombo
c963703395 fix 2020-07-08 18:16:29 +04:00
Colombo
5a40f537cc . 2020-07-04 07:58:53 +04:00
Colombo
9a540e644c upd leras ops 2020-07-03 19:32:14 +04:00
Colombo
11dc7d41a0 upd SampleProcessor 2020-07-03 19:31:21 +04:00
Colombo
b0ad36de94 upd cv2ex 2020-07-03 19:30:52 +04:00
Colombo
3283dce96a interact: change to waitKeyEx 2020-07-03 18:43:18 +04:00
Colombo
c58d2e8fb3 fix cv2.resize interpolation 2020-07-03 18:41:42 +04:00
Colombo
770da74a9b fix cv2.resize interpolation 2020-07-03 18:40:35 +04:00
Colombo
55c51578e5 fix bicubic interpolation in xsegeditor 2020-07-03 18:38:53 +04:00
Colombo
57ea3e61b7 fix extractor 2020-07-03 16:06:06 +04:00
Colombo
4ce4997d1a fix 2020-07-03 15:19:12 +04:00
Colombo
81ed7c0a2a fix 2020-07-03 15:18:15 +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
e5e9f1689c readme: change second headswap example 2020-07-03 13:11:20 +04:00
Colombo
e6aa996814 leras: add ability to save sub layers in a dict 2020-07-01 22:17:35 +04:00
Colombo
e0a1d52d78 upd readme 2020-07-01 17:43:25 +04:00
Colombo
bef8403e39 added r/RUdeepfakes to readme 2020-07-01 17:41:39 +04:00
Colombo
44e6970dc5 changed help for gan_power 2020-06-30 12:37:12 +04:00
Colombo
3b71ecafa1 upd DFLJPG.py 2020-06-28 21:45:20 +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
d78ec338c6 fix Subprocessor now writes an error if it fails to process the data 2020-06-24 11:44:58 +04:00
Colombo
ddb6bcf416 fix 2020-06-24 11:44:24 +04:00
Colombo
f0508287f0 added de-age the face example 2020-06-24 10:15:44 +04:00
Colombo
4e998aff93 . 2020-06-24 10:06:31 +04:00
Colombo
29b1050637 Sorter: improved sort by blur, and sort by best faces 2020-06-23 21:02:38 +04:00
Colombo
669935c9e6 XSegEditor: changed hotkey for xseg overlay mask 2020-06-22 13:13:27 +04:00
Colombo
d0ded46b51 XSegEditor: overlay xseg mask now works in polygon mode https://i.imgur.com/wDV6PY2.jpg 2020-06-22 11:12:24 +04:00
Colombo
f90723c9f9 SAEHD: ‘uniform_yaw’ now always enabled in pretrain mode. 2020-06-21 00:57:48 +04:00
Colombo
27f219fec7 XSegEditor: fixed incorrect count of labeled images. 2020-06-21 00:56:25 +04:00
Colombo
2b8e8f0554 . 2020-06-20 22:05:30 +04:00
Colombo
53222839c6 SAEHD: for -d archis resolution should be divided by 32 2020-06-19 14:21:41 +04:00
Colombo
05606b5e15 Subprocessor: now should write an error if failed to start 2020-06-19 14:20:22 +04:00
Colombo
0c2e1c3944 SAEHD:
Maximum resolution is increased to 640.

‘hd’ archi is removed. ‘hd’ was experimental archi created to remove subpixel shake, but ‘lr_dropout’ and ‘disable random warping’ do that better.

‘uhd’ is renamed to ‘-u’
dfuhd and liaeuhd will be automatically renamed to df-u and liae-u in existing models.

Added new experimental archi (key -d) which doubles the resolution using the same computation cost.
It is mean same configs will be x2 faster, or for example you can set 448 resolution and it will train as 224.
Strongly recommended not to train from scratch and use pretrained models.

New archi naming:
'df' keeps more identity-preserved face.
'liae' can fix overly different face shapes.
'-u' increased likeness of the face.
'-d' (experimental) doubling the resolution using the same computation cost
Examples: df, liae, df-d, df-ud, liae-ud, ...

Improved GAN training (GAN_power option).  It was used for dst model, but actually we don’t need it for dst.
Instead, a second src GAN model with x2 smaller patch size was added, so the overall quality for hi-res models should be higher.

Added option ‘Uniform yaw distribution of samples (y/n)’:
	Helps to fix blurry side faces due to small amount of them in the faceset.

Quick96:
	Now based on df-ud archi and 20% faster.

XSeg trainer:
	Improved sample generator.
Now it randomly adds the background from other samples.
Result is reduced chance of random mask noise on the area outside the face.
Now you can specify ‘batch_size’ in range 2-16.

Reduced size of samples with applied XSeg mask. Thus size of packed samples with applied xseg mask is also reduced.
2020-06-19 09:45:55 +04:00
Colombo
9fd3a9ff8d add meme 2020-06-18 22:15:25 +04:00
Colombo
38573473da added youtube channel 2020-06-18 14:19:58 +04:00
Colombo
9994f1512e added third head swap example 2020-06-18 13:56:42 +04:00
Colombo
11327cb0c5 upd face examples 2020-06-17 10:51:11 +04:00
Colombo
70182f8c65 upd face examples 2020-06-17 10:49:41 +04:00