mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-21 22:13:20 -07:00
doc: background power
This commit is contained in:
parent
38ded2b5b8
commit
6b2ca797bb
3 changed files with 32 additions and 0 deletions
32
doc/features/background-power/README.md
Normal file
32
doc/features/background-power/README.md
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# Background Power option
|
||||||
|
|
||||||
|
Allows you to train the model to include the background, which may help with areas around the mask.
|
||||||
|
Unlike **Background Style Power**, this does not use any additional VRAM, and does not require lowering the batch size.
|
||||||
|
|
||||||
|
- [DESCRIPTION](#description)
|
||||||
|
- [USAGE](#usage)
|
||||||
|
- [DIFFERENCE WITH BACKGROUND STYLE POWER](#difference-with-background-style-power)
|
||||||
|
|
||||||
|
*Examples trained with background power `0.3`:*
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## DESCRIPTION
|
||||||
|
|
||||||
|
Applies the same loss calculation used for the area *inside* the mask, to the area *outside* the mask, multiplied with
|
||||||
|
the chosen background power value.
|
||||||
|
|
||||||
|
E.g. (simplified): Source Loss = Masked area image difference + Background Power * Non-masked area image difference
|
||||||
|
|
||||||
|
## USAGE
|
||||||
|
|
||||||
|
`[0.0] Background power ( 0.0..1.0 ?:help ) : 0.3`
|
||||||
|
|
||||||
|
## DIFFERENCE WITH BACKGROUND STYLE POWER
|
||||||
|
|
||||||
|
**Background Style Power** applies a loss to the source by comparing the background of the dest to that of the
|
||||||
|
predicted src/dest (5th column). This operation requires additional VRAM, due to the face that the predicted src/dest
|
||||||
|
outputs are not normally used in training (other then being viewable in the preview window).
|
||||||
|
|
||||||
|
**Background Power** does *not* use the src/dest images whatsoever, instead comparing the background of the predicted
|
||||||
|
source to that of the original source, and the same for the background of the dest images.
|
BIN
doc/features/background-power/example.jpeg
Normal file
BIN
doc/features/background-power/example.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 129 KiB |
BIN
doc/features/background-power/example2.jpeg
Normal file
BIN
doc/features/background-power/example2.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 121 KiB |
Loading…
Add table
Add a link
Reference in a new issue