Class: TencentCloud::Aiart::V20221229::Filter
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Aiart::V20221229::Filter
- Defined in:
- lib/v20221229/models.rb
Overview
训练图像质量过滤开关配置。 支持开启或关闭对训练图像分辨率下限、脸部区域大小、脸部遮挡、脸部角度的过滤,默认开启以上过滤。 如果训练图像内包含多人脸或无人脸、和 Base 人像不为同一人也将被过滤,不可关闭该过滤条件。 建议:关闭以上过滤可能导致写真生成效果受损,建议使用单人、正脸、脸部清晰、无遮挡、无夸张表情、脸部区域占比较大的图像进行训练。
Instance Attribute Summary collapse
-
#Occlusion ⇒ Object
1:开启过滤 0:关闭过滤.
-
#Resolution ⇒ Object
1:开启过滤 0:关闭过滤.
-
#Size ⇒ Object
1:开启过滤 0:关闭过滤.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(resolution = nil, size = nil, occlusion = nil) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize(resolution = nil, size = nil, occlusion = nil) ⇒ Filter
Returns a new instance of Filter.
123 124 125 126 127 |
# File 'lib/v20221229/models.rb', line 123 def initialize(resolution=nil, size=nil, occlusion=nil) @Resolution = resolution @Size = size @Occlusion = occlusion end |
Instance Attribute Details
#Occlusion ⇒ Object
1:开启过滤 0:关闭过滤
121 122 123 |
# File 'lib/v20221229/models.rb', line 121 def Occlusion @Occlusion end |
#Resolution ⇒ Object
1:开启过滤 0:关闭过滤
121 122 123 |
# File 'lib/v20221229/models.rb', line 121 def Resolution @Resolution end |
#Size ⇒ Object
1:开启过滤 0:关闭过滤
121 122 123 |
# File 'lib/v20221229/models.rb', line 121 def Size @Size end |
Instance Method Details
#deserialize(params) ⇒ Object
129 130 131 132 133 |
# File 'lib/v20221229/models.rb', line 129 def deserialize(params) @Resolution = params['Resolution'] @Size = params['Size'] @Occlusion = params['Occlusion'] end |