SemanticFilterConfig

Fields
filterClasses[] string

Specify object class text names to filter. Any detected object in the masked region bearing anyone of the class names will be checked.

filterEntities[] string

Specify object entity ids to filter, similar to filterClasses. The Final filter list is an union of filter classes and filter entities.

filterClassesOutpainting[] string

For outpainting case. Specify object class text names to filter. Any detected object in the masked region bearing anyone of the class names will be checked.

filterEntitiesOutpainting[] string

For outpainting case. Specify object entity ids to filter, similar to filterClasses. The Final filter list is an union of filter classes and filter entities.

filterClassesSpecialInit[] string

For special_init case. Specify object class text names to filter. Any detected object in the masked region bearing anyone of the class names will be checked.

filterEntitiesSpecialInit[] string

For special_init case. Specify object entity ids to filter, similar to filterClasses. The Final filter list is an union of filter classes and filter entities.

enableSemanticFilter boolean

Whether to enable semantic filtering mode, which enables the following parameters to apply semantic filter on image editing results.

intersectRatioThreshold number

A threshold value to decide what detected boxes should be included in semantic filter checking.

additionalSampleCount integer

Additional count of samples, expect a value between 0 and 4.

semanticFilterMode string

A string to specify semantic filter experimental mode. This allows semantic filter to change the default behavior to filter generated images.

detectionScoreThreshold number

A detection confidence score threshold to decide which detection boxes are considered as the valid detections for semantic filter checking.

intersectRatioThresholdOutpainting number

For outpainting case. A threshold value to decide what detected boxes should be included in semantic filter checking.

detectionScoreThresholdOutpainting number

For outpainting case. A detection confidence score threshold to decide which detection boxes are considered as the valid detections for semantic filter checking.

intersectRatioThresholdSpecialInit number

For special_init case. A threshold value to decide what detected boxes should be included in semantic filter checking.

detectionScoreThresholdSpecialInit number

For special_init case. A detection confidence score threshold to decide which detection boxes are considered as the valid detections for semantic filter checking.

JSON representation
{
  "filterClasses": [
    string
  ],
  "filterEntities": [
    string
  ],
  "filterClassesOutpainting": [
    string
  ],
  "filterEntitiesOutpainting": [
    string
  ],
  "filterClassesSpecialInit": [
    string
  ],
  "filterEntitiesSpecialInit": [
    string
  ],
  "enableSemanticFilter": boolean,
  "intersectRatioThreshold": number,
  "additionalSampleCount": integer,
  "semanticFilterMode": string,
  "detectionScoreThreshold": number,
  "intersectRatioThresholdOutpainting": number,
  "detectionScoreThresholdOutpainting": number,
  "intersectRatioThresholdSpecialInit": number,
  "detectionScoreThresholdSpecialInit": number
}