FaceFusion
3.2.0
3.2.0
  • Introduction
    • Changelog
    • Disclaimer
    • Licenses
  • Installation
    • Platform
      • Linux
      • macOS
      • Windows
    • Accelerator
      • Linux
      • Windows
  • Usage
    • CLI Commands
      • General
      • Job Manager
      • Job Runner
    • CLI Arguments
      • Paths
      • Patterns
      • Face Detector
      • Face Landmarker
      • Face Selector
      • Face Masker
      • Frame Extraction
      • Output Creation
      • Processors
        • Age Modifier
        • Deep Swapper
        • Expression Restorer
        • Face Debugger
        • Face Editor
        • Face Enhancer
        • Face Swapper
        • Frame Colorizer
        • Frame Enhancer
        • Lip Syncer
      • UIs
      • Execution
      • Download
      • Memory
      • Misc
    • Deepfake Webcam
    • Platform Benchmark
    • Run With Docker
  • Troubleshooting
    • macOS
    • Windows
  • Workshop
    • Processor
    • UI Layout
    • UI Component
  • Knowledgebase
    • Face Vocabulary
    • Error Codes
    • GPU Capabilities
  • Donation
  • FAQ
  • Project
    • GitHub
    • Shop
  • COMMUNITY
    • Discord
    • Reddit
  • Partner
    • RunDiffusion
    • Pinokio
Powered by GitBook
On this page
  • CLI Arguments
  • Face Occluder Model
  • Face Parser Model
  • Face Mask Types
  • Face Mask Blur
  • Face Mask Padding
  • Face Mask Regions
  • Default Overrides
  1. Usage
  2. CLI Arguments

Face Masker

CLI Arguments

Face Occluder Model

Choose the model responsible for the occlusion mask.

Argument: --face-occluder-model

Default: xseg_1

Choices:

  • xseg_1

  • xseg_2

  • xseg_3

Example: --face-occluder-model xseg_2

Face Parser Model

Choose the model responsible for the region mask.

Argument: --face-parser-model

Default: bisenet_resnet_34

Choices:

  • bisenet_resnet_18

  • bisenet_resnet_34

Example: --face-parser-model bisenet_resnet_18

Face Mask Types

Mix and match different face mask types.

Argument: --face-mask-types

Default: box

Choices:

  • box

  • occlusion

  • region

Example: --face-mask-types occlusion

Face Mask Blur

Specify the degree of blur applied to the box mask.

Argument: --face-mask-blur

Default: 0.3

Range: 0 to 1 at 0.05

Example: --face-mask-blur 0.5

Face Mask Padding

Apply top, right, bottom and left padding to the box mask.

Argument: --face-mask-padding

Default: 0 0 0 0

Example: --face-mask-padding 10 20

Face Mask Regions

Choose the facial features used for the region mask.

Argument: --face-mask-regions

Default: All

Choices:

  • skin

  • left-eyebrow

  • right-eyebrow

  • left-eye

  • right-eye

  • glasses

  • nose

  • mouth

  • upper-lip

  • lower-lip

Example: --face-mask-regions left-eye right-eye eye-glasses

Default Overrides

Modify the facefusion.ini file to override the defaults.

[face_masker]
face_occluder_model = xseg_2
face_parser_model = bisenet_resnet_18
face_mask_types = occlusion
face_mask_blur = 0.5
face_mask_padding = 10 20
face_mask_regions = left-eye right-eye glasses

Last updated 3 months ago