Class: TencentCloud::Aiart::V20221229::SubmitTrainPortraitModelJobRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20221229/models.rb

Overview

SubmitTrainPortraitModelJob请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(modelid = nil) ⇒ SubmitTrainPortraitModelJobRequest

Returns a new instance of SubmitTrainPortraitModelJobRequest.



878
879
880
# File 'lib/v20221229/models.rb', line 878

def initialize(modelid=nil)
  @ModelId = modelid
end

Instance Attribute Details

#ModelIdObject

每个 AI 写真模型自训练完成起1年内有效,有效期内可使用模型生成图片,期满后需要重新训练模型。

Parameters:

  • ModelId:

    在上传写真训练图片时指定的写真模型 ID。



876
877
878
# File 'lib/v20221229/models.rb', line 876

def ModelId
  @ModelId
end

Instance Method Details

#deserialize(params) ⇒ Object



882
883
884
# File 'lib/v20221229/models.rb', line 882

def deserialize(params)
  @ModelId = params['ModelId']
end