tencentcloud-sdk-python-mps 3.1.181__py2.py3-none-any.whl → 3.1.187__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tencentcloud/__init__.py +1 -1
- tencentcloud/mps/v20190612/errorcodes.py +3 -0
- tencentcloud/mps/v20190612/models.py +428 -2
- {tencentcloud_sdk_python_mps-3.1.181.dist-info → tencentcloud_sdk_python_mps-3.1.187.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_mps-3.1.187.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_mps-3.1.181.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_mps-3.1.181.dist-info → tencentcloud_sdk_python_mps-3.1.187.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_mps-3.1.181.dist-info → tencentcloud_sdk_python_mps-3.1.187.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -125,6 +125,9 @@ INVALIDPARAMETER_MODELNOTSUPPORTED = 'InvalidParameter.ModelNotSupported'
|
|
|
125
125
|
# InvalidParameter.Name
|
|
126
126
|
INVALIDPARAMETER_NAME = 'InvalidParameter.Name'
|
|
127
127
|
|
|
128
|
+
# 未指定输入类型
|
|
129
|
+
INVALIDPARAMETER_NOINPUTSPECIFIED = 'InvalidParameter.NoInputSpecified'
|
|
130
|
+
|
|
128
131
|
# InvalidParameter.NotFound
|
|
129
132
|
INVALIDPARAMETER_NOTFOUND = 'InvalidParameter.NotFound'
|
|
130
133
|
|
|
@@ -7585,6 +7585,94 @@ class AiAnalysisTaskVideoRemakeResult(AbstractModel):
|
|
|
7585
7585
|
|
|
7586
7586
|
|
|
7587
7587
|
|
|
7588
|
+
class AiComposeConfig(AbstractModel):
|
|
7589
|
+
r"""图片处理图层融合配置
|
|
7590
|
+
|
|
7591
|
+
"""
|
|
7592
|
+
|
|
7593
|
+
def __init__(self):
|
|
7594
|
+
r"""
|
|
7595
|
+
:param _Switch: <p>能力配置开关。</p><li>ON:开启(默认值);</li><li>OFF:关闭。</li>
|
|
7596
|
+
:type Switch: str
|
|
7597
|
+
:param _Model: <p>合成模型。可选值:compose-1.0-lite(默认值,可不传)。</p>
|
|
7598
|
+
:type Model: str
|
|
7599
|
+
:param _Canvas: <p>画布定义。可省略:省略时取 ZIndex 最小的图层(底层图层)的自然尺寸。</p>
|
|
7600
|
+
:type Canvas: :class:`tencentcloud.mps.v20190612.models.ImageComposeCanvas`
|
|
7601
|
+
:param _Layers: <p>图层列表,图层的唯一来源。至少 1 层、最多 20 层。</p>
|
|
7602
|
+
:type Layers: list of ImageComposeLayer
|
|
7603
|
+
"""
|
|
7604
|
+
self._Switch = None
|
|
7605
|
+
self._Model = None
|
|
7606
|
+
self._Canvas = None
|
|
7607
|
+
self._Layers = None
|
|
7608
|
+
|
|
7609
|
+
@property
|
|
7610
|
+
def Switch(self):
|
|
7611
|
+
r"""<p>能力配置开关。</p><li>ON:开启(默认值);</li><li>OFF:关闭。</li>
|
|
7612
|
+
:rtype: str
|
|
7613
|
+
"""
|
|
7614
|
+
return self._Switch
|
|
7615
|
+
|
|
7616
|
+
@Switch.setter
|
|
7617
|
+
def Switch(self, Switch):
|
|
7618
|
+
self._Switch = Switch
|
|
7619
|
+
|
|
7620
|
+
@property
|
|
7621
|
+
def Model(self):
|
|
7622
|
+
r"""<p>合成模型。可选值:compose-1.0-lite(默认值,可不传)。</p>
|
|
7623
|
+
:rtype: str
|
|
7624
|
+
"""
|
|
7625
|
+
return self._Model
|
|
7626
|
+
|
|
7627
|
+
@Model.setter
|
|
7628
|
+
def Model(self, Model):
|
|
7629
|
+
self._Model = Model
|
|
7630
|
+
|
|
7631
|
+
@property
|
|
7632
|
+
def Canvas(self):
|
|
7633
|
+
r"""<p>画布定义。可省略:省略时取 ZIndex 最小的图层(底层图层)的自然尺寸。</p>
|
|
7634
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ImageComposeCanvas`
|
|
7635
|
+
"""
|
|
7636
|
+
return self._Canvas
|
|
7637
|
+
|
|
7638
|
+
@Canvas.setter
|
|
7639
|
+
def Canvas(self, Canvas):
|
|
7640
|
+
self._Canvas = Canvas
|
|
7641
|
+
|
|
7642
|
+
@property
|
|
7643
|
+
def Layers(self):
|
|
7644
|
+
r"""<p>图层列表,图层的唯一来源。至少 1 层、最多 20 层。</p>
|
|
7645
|
+
:rtype: list of ImageComposeLayer
|
|
7646
|
+
"""
|
|
7647
|
+
return self._Layers
|
|
7648
|
+
|
|
7649
|
+
@Layers.setter
|
|
7650
|
+
def Layers(self, Layers):
|
|
7651
|
+
self._Layers = Layers
|
|
7652
|
+
|
|
7653
|
+
|
|
7654
|
+
def _deserialize(self, params):
|
|
7655
|
+
self._Switch = params.get("Switch")
|
|
7656
|
+
self._Model = params.get("Model")
|
|
7657
|
+
if params.get("Canvas") is not None:
|
|
7658
|
+
self._Canvas = ImageComposeCanvas()
|
|
7659
|
+
self._Canvas._deserialize(params.get("Canvas"))
|
|
7660
|
+
if params.get("Layers") is not None:
|
|
7661
|
+
self._Layers = []
|
|
7662
|
+
for item in params.get("Layers"):
|
|
7663
|
+
obj = ImageComposeLayer()
|
|
7664
|
+
obj._deserialize(item)
|
|
7665
|
+
self._Layers.append(obj)
|
|
7666
|
+
memeber_set = set(params.keys())
|
|
7667
|
+
for name, value in vars(self).items():
|
|
7668
|
+
property_name = name[1:]
|
|
7669
|
+
if property_name in memeber_set:
|
|
7670
|
+
memeber_set.remove(property_name)
|
|
7671
|
+
if len(memeber_set) > 0:
|
|
7672
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7673
|
+
|
|
7674
|
+
|
|
7675
|
+
|
|
7588
7676
|
class AiContentReviewResult(AbstractModel):
|
|
7589
7677
|
r"""内容审核结果
|
|
7590
7678
|
|
|
@@ -8316,7 +8404,7 @@ class AiPosterSuiteConfig(AbstractModel):
|
|
|
8316
8404
|
:type PanelResolution: str
|
|
8317
8405
|
:param _CustomVariables: <p>用户自定义变量。</p>
|
|
8318
8406
|
:type CustomVariables: list of CustomVariable
|
|
8319
|
-
:param _Model: <p>模型名称。</p><p>枚举值:</p><ul><li>
|
|
8407
|
+
:param _Model: <p>模型名称。</p><p>枚举值:</p><ul><li>suite-1.0-flash: suite-1.0-flash</li></ul>
|
|
8320
8408
|
:type Model: str
|
|
8321
8409
|
"""
|
|
8322
8410
|
self._Mode = None
|
|
@@ -8407,7 +8495,7 @@ class AiPosterSuiteConfig(AbstractModel):
|
|
|
8407
8495
|
|
|
8408
8496
|
@property
|
|
8409
8497
|
def Model(self):
|
|
8410
|
-
r"""<p>模型名称。</p><p>枚举值:</p><ul><li>
|
|
8498
|
+
r"""<p>模型名称。</p><p>枚举值:</p><ul><li>suite-1.0-flash: suite-1.0-flash</li></ul>
|
|
8411
8499
|
:rtype: str
|
|
8412
8500
|
"""
|
|
8413
8501
|
return self._Model
|
|
@@ -55343,6 +55431,155 @@ class ImageAreaBoxInfo(AbstractModel):
|
|
|
55343
55431
|
|
|
55344
55432
|
|
|
55345
55433
|
|
|
55434
|
+
class ImageComposeCanvas(AbstractModel):
|
|
55435
|
+
r"""图片处理图层融合功能画布参数
|
|
55436
|
+
|
|
55437
|
+
"""
|
|
55438
|
+
|
|
55439
|
+
def __init__(self):
|
|
55440
|
+
r"""
|
|
55441
|
+
:param _Width: <p>画布宽度,取值范围 [1, 10240],需与 Height 同时设置。</p>
|
|
55442
|
+
:type Width: int
|
|
55443
|
+
:param _Height: <p>画布高度,取值范围 [1, 10240],需与 Width 同时设置。</p>
|
|
55444
|
+
:type Height: int
|
|
55445
|
+
:param _Background: <p>画布底色,统一为 8 位十六进制 #RRGGBBAA(含 alpha),原样作为画布底色。缺省 #00000000(全透明)。示例:#FFFFFFFF 不透明白、#FFFFFF80 半透明白。</p><p>输出格式不支持透明通道时(如 JPEG),透明区域按该底色的 RGB 塌陷;缺省值会得到黑底,需要白底请显式传 #FFFFFFFF。</p>
|
|
55446
|
+
:type Background: str
|
|
55447
|
+
"""
|
|
55448
|
+
self._Width = None
|
|
55449
|
+
self._Height = None
|
|
55450
|
+
self._Background = None
|
|
55451
|
+
|
|
55452
|
+
@property
|
|
55453
|
+
def Width(self):
|
|
55454
|
+
r"""<p>画布宽度,取值范围 [1, 10240],需与 Height 同时设置。</p>
|
|
55455
|
+
:rtype: int
|
|
55456
|
+
"""
|
|
55457
|
+
return self._Width
|
|
55458
|
+
|
|
55459
|
+
@Width.setter
|
|
55460
|
+
def Width(self, Width):
|
|
55461
|
+
self._Width = Width
|
|
55462
|
+
|
|
55463
|
+
@property
|
|
55464
|
+
def Height(self):
|
|
55465
|
+
r"""<p>画布高度,取值范围 [1, 10240],需与 Width 同时设置。</p>
|
|
55466
|
+
:rtype: int
|
|
55467
|
+
"""
|
|
55468
|
+
return self._Height
|
|
55469
|
+
|
|
55470
|
+
@Height.setter
|
|
55471
|
+
def Height(self, Height):
|
|
55472
|
+
self._Height = Height
|
|
55473
|
+
|
|
55474
|
+
@property
|
|
55475
|
+
def Background(self):
|
|
55476
|
+
r"""<p>画布底色,统一为 8 位十六进制 #RRGGBBAA(含 alpha),原样作为画布底色。缺省 #00000000(全透明)。示例:#FFFFFFFF 不透明白、#FFFFFF80 半透明白。</p><p>输出格式不支持透明通道时(如 JPEG),透明区域按该底色的 RGB 塌陷;缺省值会得到黑底,需要白底请显式传 #FFFFFFFF。</p>
|
|
55477
|
+
:rtype: str
|
|
55478
|
+
"""
|
|
55479
|
+
return self._Background
|
|
55480
|
+
|
|
55481
|
+
@Background.setter
|
|
55482
|
+
def Background(self, Background):
|
|
55483
|
+
self._Background = Background
|
|
55484
|
+
|
|
55485
|
+
|
|
55486
|
+
def _deserialize(self, params):
|
|
55487
|
+
self._Width = params.get("Width")
|
|
55488
|
+
self._Height = params.get("Height")
|
|
55489
|
+
self._Background = params.get("Background")
|
|
55490
|
+
memeber_set = set(params.keys())
|
|
55491
|
+
for name, value in vars(self).items():
|
|
55492
|
+
property_name = name[1:]
|
|
55493
|
+
if property_name in memeber_set:
|
|
55494
|
+
memeber_set.remove(property_name)
|
|
55495
|
+
if len(memeber_set) > 0:
|
|
55496
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
55497
|
+
|
|
55498
|
+
|
|
55499
|
+
|
|
55500
|
+
class ImageComposeLayer(AbstractModel):
|
|
55501
|
+
r"""图片处理图层融合功能图层数据结构
|
|
55502
|
+
|
|
55503
|
+
"""
|
|
55504
|
+
|
|
55505
|
+
def __init__(self):
|
|
55506
|
+
r"""
|
|
55507
|
+
:param _ZIndex: <p>图层堆叠顺序,必填。同一请求内不可重复,数值越大越靠上(建议从 0 开始连续编号)。</p>
|
|
55508
|
+
:type ZIndex: int
|
|
55509
|
+
:param _InputInfo: <p>图层图片来源,必填。支持 URL / COS / AWS-S3 / VOD。</p>
|
|
55510
|
+
:type InputInfo: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
|
55511
|
+
:param _BoundingBox: <p>图层在画布中的位置与尺寸,必填。长度为 4 的数组 [X1, Y1, X2, Y2]:左上角 + 右下角坐标,要求 X2 > X1、Y2 > Y1。</p><p>两种语义(与图片擦除能力的 BoundingBox 对齐):</p><ul><li>像素:坐标值,取值范围 [-10240, 10240],允许为负或超出画布(超出部分被裁掉);</li><li>比例:各值 ∈ [-1, 1],按画布宽高换算(x 乘画布宽、y 乘画布高)。</li></ul><p>图层会缩放填满该矩形;超出画布的部分一律裁掉,输出尺寸恒等于画布尺寸。</p>
|
|
55512
|
+
:type BoundingBox: list of float
|
|
55513
|
+
:param _BoundingBoxUnitType: <p>坐标单位,与图片擦除能力对齐。取值:</p><ul><li>0:自动判定(不传时的默认值);</li><li>1:比例;</li><li>2:像素。</li></ul><p>自动判定规则:四个值全部大于 1 按像素解释、全部不大于 1 按比例解释;混合取值会返回InvalidParameter,建议始终显式指定。</p>
|
|
55514
|
+
:type BoundingBoxUnitType: int
|
|
55515
|
+
"""
|
|
55516
|
+
self._ZIndex = None
|
|
55517
|
+
self._InputInfo = None
|
|
55518
|
+
self._BoundingBox = None
|
|
55519
|
+
self._BoundingBoxUnitType = None
|
|
55520
|
+
|
|
55521
|
+
@property
|
|
55522
|
+
def ZIndex(self):
|
|
55523
|
+
r"""<p>图层堆叠顺序,必填。同一请求内不可重复,数值越大越靠上(建议从 0 开始连续编号)。</p>
|
|
55524
|
+
:rtype: int
|
|
55525
|
+
"""
|
|
55526
|
+
return self._ZIndex
|
|
55527
|
+
|
|
55528
|
+
@ZIndex.setter
|
|
55529
|
+
def ZIndex(self, ZIndex):
|
|
55530
|
+
self._ZIndex = ZIndex
|
|
55531
|
+
|
|
55532
|
+
@property
|
|
55533
|
+
def InputInfo(self):
|
|
55534
|
+
r"""<p>图层图片来源,必填。支持 URL / COS / AWS-S3 / VOD。</p>
|
|
55535
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
|
55536
|
+
"""
|
|
55537
|
+
return self._InputInfo
|
|
55538
|
+
|
|
55539
|
+
@InputInfo.setter
|
|
55540
|
+
def InputInfo(self, InputInfo):
|
|
55541
|
+
self._InputInfo = InputInfo
|
|
55542
|
+
|
|
55543
|
+
@property
|
|
55544
|
+
def BoundingBox(self):
|
|
55545
|
+
r"""<p>图层在画布中的位置与尺寸,必填。长度为 4 的数组 [X1, Y1, X2, Y2]:左上角 + 右下角坐标,要求 X2 > X1、Y2 > Y1。</p><p>两种语义(与图片擦除能力的 BoundingBox 对齐):</p><ul><li>像素:坐标值,取值范围 [-10240, 10240],允许为负或超出画布(超出部分被裁掉);</li><li>比例:各值 ∈ [-1, 1],按画布宽高换算(x 乘画布宽、y 乘画布高)。</li></ul><p>图层会缩放填满该矩形;超出画布的部分一律裁掉,输出尺寸恒等于画布尺寸。</p>
|
|
55546
|
+
:rtype: list of float
|
|
55547
|
+
"""
|
|
55548
|
+
return self._BoundingBox
|
|
55549
|
+
|
|
55550
|
+
@BoundingBox.setter
|
|
55551
|
+
def BoundingBox(self, BoundingBox):
|
|
55552
|
+
self._BoundingBox = BoundingBox
|
|
55553
|
+
|
|
55554
|
+
@property
|
|
55555
|
+
def BoundingBoxUnitType(self):
|
|
55556
|
+
r"""<p>坐标单位,与图片擦除能力对齐。取值:</p><ul><li>0:自动判定(不传时的默认值);</li><li>1:比例;</li><li>2:像素。</li></ul><p>自动判定规则:四个值全部大于 1 按像素解释、全部不大于 1 按比例解释;混合取值会返回InvalidParameter,建议始终显式指定。</p>
|
|
55557
|
+
:rtype: int
|
|
55558
|
+
"""
|
|
55559
|
+
return self._BoundingBoxUnitType
|
|
55560
|
+
|
|
55561
|
+
@BoundingBoxUnitType.setter
|
|
55562
|
+
def BoundingBoxUnitType(self, BoundingBoxUnitType):
|
|
55563
|
+
self._BoundingBoxUnitType = BoundingBoxUnitType
|
|
55564
|
+
|
|
55565
|
+
|
|
55566
|
+
def _deserialize(self, params):
|
|
55567
|
+
self._ZIndex = params.get("ZIndex")
|
|
55568
|
+
if params.get("InputInfo") is not None:
|
|
55569
|
+
self._InputInfo = MediaInputInfo()
|
|
55570
|
+
self._InputInfo._deserialize(params.get("InputInfo"))
|
|
55571
|
+
self._BoundingBox = params.get("BoundingBox")
|
|
55572
|
+
self._BoundingBoxUnitType = params.get("BoundingBoxUnitType")
|
|
55573
|
+
memeber_set = set(params.keys())
|
|
55574
|
+
for name, value in vars(self).items():
|
|
55575
|
+
property_name = name[1:]
|
|
55576
|
+
if property_name in memeber_set:
|
|
55577
|
+
memeber_set.remove(property_name)
|
|
55578
|
+
if len(memeber_set) > 0:
|
|
55579
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
55580
|
+
|
|
55581
|
+
|
|
55582
|
+
|
|
55346
55583
|
class ImageDenoiseConfig(AbstractModel):
|
|
55347
55584
|
r"""图片降噪配置
|
|
55348
55585
|
|
|
@@ -57024,6 +57261,8 @@ class ImageTaskInput(AbstractModel):
|
|
|
57024
57261
|
:type UnderstandImageConfig: :class:`tencentcloud.mps.v20190612.models.UnderstandImageConfig`
|
|
57025
57262
|
:param _ImageQualityConfig: <p>图片质量评估配置</p>
|
|
57026
57263
|
:type ImageQualityConfig: :class:`tencentcloud.mps.v20190612.models.ImageQualityConfig`
|
|
57264
|
+
:param _AiComposeConfig: <p>图层融合配置。</p>
|
|
57265
|
+
:type AiComposeConfig: :class:`tencentcloud.mps.v20190612.models.AiComposeConfig`
|
|
57027
57266
|
"""
|
|
57028
57267
|
self._EncodeConfig = None
|
|
57029
57268
|
self._EnhanceConfig = None
|
|
@@ -57039,6 +57278,7 @@ class ImageTaskInput(AbstractModel):
|
|
|
57039
57278
|
self._AiStoryboardConfig = None
|
|
57040
57279
|
self._UnderstandImageConfig = None
|
|
57041
57280
|
self._ImageQualityConfig = None
|
|
57281
|
+
self._AiComposeConfig = None
|
|
57042
57282
|
|
|
57043
57283
|
@property
|
|
57044
57284
|
def EncodeConfig(self):
|
|
@@ -57198,6 +57438,17 @@ class ImageTaskInput(AbstractModel):
|
|
|
57198
57438
|
def ImageQualityConfig(self, ImageQualityConfig):
|
|
57199
57439
|
self._ImageQualityConfig = ImageQualityConfig
|
|
57200
57440
|
|
|
57441
|
+
@property
|
|
57442
|
+
def AiComposeConfig(self):
|
|
57443
|
+
r"""<p>图层融合配置。</p>
|
|
57444
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AiComposeConfig`
|
|
57445
|
+
"""
|
|
57446
|
+
return self._AiComposeConfig
|
|
57447
|
+
|
|
57448
|
+
@AiComposeConfig.setter
|
|
57449
|
+
def AiComposeConfig(self, AiComposeConfig):
|
|
57450
|
+
self._AiComposeConfig = AiComposeConfig
|
|
57451
|
+
|
|
57201
57452
|
|
|
57202
57453
|
def _deserialize(self, params):
|
|
57203
57454
|
if params.get("EncodeConfig") is not None:
|
|
@@ -57242,6 +57493,9 @@ class ImageTaskInput(AbstractModel):
|
|
|
57242
57493
|
if params.get("ImageQualityConfig") is not None:
|
|
57243
57494
|
self._ImageQualityConfig = ImageQualityConfig()
|
|
57244
57495
|
self._ImageQualityConfig._deserialize(params.get("ImageQualityConfig"))
|
|
57496
|
+
if params.get("AiComposeConfig") is not None:
|
|
57497
|
+
self._AiComposeConfig = AiComposeConfig()
|
|
57498
|
+
self._AiComposeConfig._deserialize(params.get("AiComposeConfig"))
|
|
57245
57499
|
memeber_set = set(params.keys())
|
|
57246
57500
|
for name, value in vars(self).items():
|
|
57247
57501
|
property_name = name[1:]
|
|
@@ -78384,6 +78638,26 @@ class QueryHunyuan3DTaskResponse(AbstractModel):
|
|
|
78384
78638
|
:type ErrorMessage: str
|
|
78385
78639
|
:param _ResultFile3Ds: <p>仅 Status=DONE 时有值,产物文件列表</p>
|
|
78386
78640
|
:type ResultFile3Ds: list of File3D
|
|
78641
|
+
:param _TaskId: <p>任务ID</p>
|
|
78642
|
+
:type TaskId: str
|
|
78643
|
+
:param _TaskType: <p>任务类型</p><p>枚举值:</p><ul><li>text_to_3d: 文生3D</li><li>image_to_3d: 图生3D</li><li>multiview_to_3d: 多视图生3D</li><li>mesh_to_texture: 网格生纹理</li><li>mesh_to_geometry: 网格生几何</li></ul>
|
|
78644
|
+
:type TaskType: str
|
|
78645
|
+
:param _Prompt: <p>输入的Prompt</p>
|
|
78646
|
+
:type Prompt: str
|
|
78647
|
+
:param _RefImage: <p>图生3D场景下输入的图片URL</p>
|
|
78648
|
+
:type RefImage: str
|
|
78649
|
+
:param _MultiViewImages: <p>多图生3D场景下输入的图片信息</p>
|
|
78650
|
+
:type MultiViewImages: list of ViewImage
|
|
78651
|
+
:param _CreateTime: <p>任务创建时间</p>
|
|
78652
|
+
:type CreateTime: str
|
|
78653
|
+
:param _UpdateTime: <p>任务更新时间</p>
|
|
78654
|
+
:type UpdateTime: str
|
|
78655
|
+
:param _FaceCount: <p>提交任务的目标面数</p>
|
|
78656
|
+
:type FaceCount: int
|
|
78657
|
+
:param _GenerateType: <p>生成类型</p><p>枚举值:</p><ul><li>Normal: 生成完整 3D 资产(几何 + 纹理)</li><li>Geometry: 只生成几何体(无纹理,输出速度更快)</li><li>Texture: 只生成纹理(需要传 MeshUrl)</li></ul><p>默认值:Normal</p>
|
|
78658
|
+
:type GenerateType: str
|
|
78659
|
+
:param _QueuePosition: <p>任务在队列中的位置,数值越小越靠前;</p>
|
|
78660
|
+
:type QueuePosition: int
|
|
78387
78661
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
78388
78662
|
:type RequestId: str
|
|
78389
78663
|
"""
|
|
@@ -78392,6 +78666,16 @@ class QueryHunyuan3DTaskResponse(AbstractModel):
|
|
|
78392
78666
|
self._ErrorCode = None
|
|
78393
78667
|
self._ErrorMessage = None
|
|
78394
78668
|
self._ResultFile3Ds = None
|
|
78669
|
+
self._TaskId = None
|
|
78670
|
+
self._TaskType = None
|
|
78671
|
+
self._Prompt = None
|
|
78672
|
+
self._RefImage = None
|
|
78673
|
+
self._MultiViewImages = None
|
|
78674
|
+
self._CreateTime = None
|
|
78675
|
+
self._UpdateTime = None
|
|
78676
|
+
self._FaceCount = None
|
|
78677
|
+
self._GenerateType = None
|
|
78678
|
+
self._QueuePosition = None
|
|
78395
78679
|
self._RequestId = None
|
|
78396
78680
|
|
|
78397
78681
|
@property
|
|
@@ -78449,6 +78733,116 @@ class QueryHunyuan3DTaskResponse(AbstractModel):
|
|
|
78449
78733
|
def ResultFile3Ds(self, ResultFile3Ds):
|
|
78450
78734
|
self._ResultFile3Ds = ResultFile3Ds
|
|
78451
78735
|
|
|
78736
|
+
@property
|
|
78737
|
+
def TaskId(self):
|
|
78738
|
+
r"""<p>任务ID</p>
|
|
78739
|
+
:rtype: str
|
|
78740
|
+
"""
|
|
78741
|
+
return self._TaskId
|
|
78742
|
+
|
|
78743
|
+
@TaskId.setter
|
|
78744
|
+
def TaskId(self, TaskId):
|
|
78745
|
+
self._TaskId = TaskId
|
|
78746
|
+
|
|
78747
|
+
@property
|
|
78748
|
+
def TaskType(self):
|
|
78749
|
+
r"""<p>任务类型</p><p>枚举值:</p><ul><li>text_to_3d: 文生3D</li><li>image_to_3d: 图生3D</li><li>multiview_to_3d: 多视图生3D</li><li>mesh_to_texture: 网格生纹理</li><li>mesh_to_geometry: 网格生几何</li></ul>
|
|
78750
|
+
:rtype: str
|
|
78751
|
+
"""
|
|
78752
|
+
return self._TaskType
|
|
78753
|
+
|
|
78754
|
+
@TaskType.setter
|
|
78755
|
+
def TaskType(self, TaskType):
|
|
78756
|
+
self._TaskType = TaskType
|
|
78757
|
+
|
|
78758
|
+
@property
|
|
78759
|
+
def Prompt(self):
|
|
78760
|
+
r"""<p>输入的Prompt</p>
|
|
78761
|
+
:rtype: str
|
|
78762
|
+
"""
|
|
78763
|
+
return self._Prompt
|
|
78764
|
+
|
|
78765
|
+
@Prompt.setter
|
|
78766
|
+
def Prompt(self, Prompt):
|
|
78767
|
+
self._Prompt = Prompt
|
|
78768
|
+
|
|
78769
|
+
@property
|
|
78770
|
+
def RefImage(self):
|
|
78771
|
+
r"""<p>图生3D场景下输入的图片URL</p>
|
|
78772
|
+
:rtype: str
|
|
78773
|
+
"""
|
|
78774
|
+
return self._RefImage
|
|
78775
|
+
|
|
78776
|
+
@RefImage.setter
|
|
78777
|
+
def RefImage(self, RefImage):
|
|
78778
|
+
self._RefImage = RefImage
|
|
78779
|
+
|
|
78780
|
+
@property
|
|
78781
|
+
def MultiViewImages(self):
|
|
78782
|
+
r"""<p>多图生3D场景下输入的图片信息</p>
|
|
78783
|
+
:rtype: list of ViewImage
|
|
78784
|
+
"""
|
|
78785
|
+
return self._MultiViewImages
|
|
78786
|
+
|
|
78787
|
+
@MultiViewImages.setter
|
|
78788
|
+
def MultiViewImages(self, MultiViewImages):
|
|
78789
|
+
self._MultiViewImages = MultiViewImages
|
|
78790
|
+
|
|
78791
|
+
@property
|
|
78792
|
+
def CreateTime(self):
|
|
78793
|
+
r"""<p>任务创建时间</p>
|
|
78794
|
+
:rtype: str
|
|
78795
|
+
"""
|
|
78796
|
+
return self._CreateTime
|
|
78797
|
+
|
|
78798
|
+
@CreateTime.setter
|
|
78799
|
+
def CreateTime(self, CreateTime):
|
|
78800
|
+
self._CreateTime = CreateTime
|
|
78801
|
+
|
|
78802
|
+
@property
|
|
78803
|
+
def UpdateTime(self):
|
|
78804
|
+
r"""<p>任务更新时间</p>
|
|
78805
|
+
:rtype: str
|
|
78806
|
+
"""
|
|
78807
|
+
return self._UpdateTime
|
|
78808
|
+
|
|
78809
|
+
@UpdateTime.setter
|
|
78810
|
+
def UpdateTime(self, UpdateTime):
|
|
78811
|
+
self._UpdateTime = UpdateTime
|
|
78812
|
+
|
|
78813
|
+
@property
|
|
78814
|
+
def FaceCount(self):
|
|
78815
|
+
r"""<p>提交任务的目标面数</p>
|
|
78816
|
+
:rtype: int
|
|
78817
|
+
"""
|
|
78818
|
+
return self._FaceCount
|
|
78819
|
+
|
|
78820
|
+
@FaceCount.setter
|
|
78821
|
+
def FaceCount(self, FaceCount):
|
|
78822
|
+
self._FaceCount = FaceCount
|
|
78823
|
+
|
|
78824
|
+
@property
|
|
78825
|
+
def GenerateType(self):
|
|
78826
|
+
r"""<p>生成类型</p><p>枚举值:</p><ul><li>Normal: 生成完整 3D 资产(几何 + 纹理)</li><li>Geometry: 只生成几何体(无纹理,输出速度更快)</li><li>Texture: 只生成纹理(需要传 MeshUrl)</li></ul><p>默认值:Normal</p>
|
|
78827
|
+
:rtype: str
|
|
78828
|
+
"""
|
|
78829
|
+
return self._GenerateType
|
|
78830
|
+
|
|
78831
|
+
@GenerateType.setter
|
|
78832
|
+
def GenerateType(self, GenerateType):
|
|
78833
|
+
self._GenerateType = GenerateType
|
|
78834
|
+
|
|
78835
|
+
@property
|
|
78836
|
+
def QueuePosition(self):
|
|
78837
|
+
r"""<p>任务在队列中的位置,数值越小越靠前;</p>
|
|
78838
|
+
:rtype: int
|
|
78839
|
+
"""
|
|
78840
|
+
return self._QueuePosition
|
|
78841
|
+
|
|
78842
|
+
@QueuePosition.setter
|
|
78843
|
+
def QueuePosition(self, QueuePosition):
|
|
78844
|
+
self._QueuePosition = QueuePosition
|
|
78845
|
+
|
|
78452
78846
|
@property
|
|
78453
78847
|
def RequestId(self):
|
|
78454
78848
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -78472,6 +78866,21 @@ class QueryHunyuan3DTaskResponse(AbstractModel):
|
|
|
78472
78866
|
obj = File3D()
|
|
78473
78867
|
obj._deserialize(item)
|
|
78474
78868
|
self._ResultFile3Ds.append(obj)
|
|
78869
|
+
self._TaskId = params.get("TaskId")
|
|
78870
|
+
self._TaskType = params.get("TaskType")
|
|
78871
|
+
self._Prompt = params.get("Prompt")
|
|
78872
|
+
self._RefImage = params.get("RefImage")
|
|
78873
|
+
if params.get("MultiViewImages") is not None:
|
|
78874
|
+
self._MultiViewImages = []
|
|
78875
|
+
for item in params.get("MultiViewImages"):
|
|
78876
|
+
obj = ViewImage()
|
|
78877
|
+
obj._deserialize(item)
|
|
78878
|
+
self._MultiViewImages.append(obj)
|
|
78879
|
+
self._CreateTime = params.get("CreateTime")
|
|
78880
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
78881
|
+
self._FaceCount = params.get("FaceCount")
|
|
78882
|
+
self._GenerateType = params.get("GenerateType")
|
|
78883
|
+
self._QueuePosition = params.get("QueuePosition")
|
|
78475
78884
|
self._RequestId = params.get("RequestId")
|
|
78476
78885
|
|
|
78477
78886
|
|
|
@@ -89127,6 +89536,8 @@ class SubmitHunyuan3DTaskRequest(AbstractModel):
|
|
|
89127
89536
|
:type Seed: int
|
|
89128
89537
|
:param _Style: <p>风格控制词</p>
|
|
89129
89538
|
:type Style: str
|
|
89539
|
+
:param _StoreCosParam: <p>客户自己申请创建的COS存储桶</p>
|
|
89540
|
+
:type StoreCosParam: :class:`tencentcloud.mps.v20190612.models.AigcStoreCosParam`
|
|
89130
89541
|
"""
|
|
89131
89542
|
self._Prompt = None
|
|
89132
89543
|
self._ImageUrl = None
|
|
@@ -89139,6 +89550,7 @@ class SubmitHunyuan3DTaskRequest(AbstractModel):
|
|
|
89139
89550
|
self._ResultFormat = None
|
|
89140
89551
|
self._Seed = None
|
|
89141
89552
|
self._Style = None
|
|
89553
|
+
self._StoreCosParam = None
|
|
89142
89554
|
|
|
89143
89555
|
@property
|
|
89144
89556
|
def Prompt(self):
|
|
@@ -89261,6 +89673,17 @@ class SubmitHunyuan3DTaskRequest(AbstractModel):
|
|
|
89261
89673
|
def Style(self, Style):
|
|
89262
89674
|
self._Style = Style
|
|
89263
89675
|
|
|
89676
|
+
@property
|
|
89677
|
+
def StoreCosParam(self):
|
|
89678
|
+
r"""<p>客户自己申请创建的COS存储桶</p>
|
|
89679
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AigcStoreCosParam`
|
|
89680
|
+
"""
|
|
89681
|
+
return self._StoreCosParam
|
|
89682
|
+
|
|
89683
|
+
@StoreCosParam.setter
|
|
89684
|
+
def StoreCosParam(self, StoreCosParam):
|
|
89685
|
+
self._StoreCosParam = StoreCosParam
|
|
89686
|
+
|
|
89264
89687
|
|
|
89265
89688
|
def _deserialize(self, params):
|
|
89266
89689
|
self._Prompt = params.get("Prompt")
|
|
@@ -89279,6 +89702,9 @@ class SubmitHunyuan3DTaskRequest(AbstractModel):
|
|
|
89279
89702
|
self._ResultFormat = params.get("ResultFormat")
|
|
89280
89703
|
self._Seed = params.get("Seed")
|
|
89281
89704
|
self._Style = params.get("Style")
|
|
89705
|
+
if params.get("StoreCosParam") is not None:
|
|
89706
|
+
self._StoreCosParam = AigcStoreCosParam()
|
|
89707
|
+
self._StoreCosParam._deserialize(params.get("StoreCosParam"))
|
|
89282
89708
|
memeber_set = set(params.keys())
|
|
89283
89709
|
for name, value in vars(self).items():
|
|
89284
89710
|
property_name = name[1:]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mps
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.187
|
|
4
4
|
Summary: Tencent Cloud Mps SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.187
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=uWiN7ACj-CNw3hEA9PbzCsQd6pUlW1gZk9dzOxp_KNI,630
|
|
2
|
+
tencentcloud/mps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/mps/v20190612/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/mps/v20190612/errorcodes.py,sha256=OU4BxFgJzqWyTkG_3TU2_hqKXzxo-MEQr_gwM43kceo,21864
|
|
5
|
+
tencentcloud/mps/v20190612/models.py,sha256=PMvkDmpbn2ewCkeM5RCRdYR7JSC4XLlR-WFgUyVOvDY,3640548
|
|
6
|
+
tencentcloud/mps/v20190612/mps_client.py,sha256=U5MWAF_hdcM6W0VW5ZCrz-3EEWVFOvxUDe_raKdT_60,225462
|
|
7
|
+
tencentcloud/mps/v20190612/mps_client_async.py,sha256=aW681zFtm0SO8VpUVUnr31YrddDvzH2U22y-PVT6I2Y,154796
|
|
8
|
+
tencentcloud_sdk_python_mps-3.1.187.dist-info/METADATA,sha256=4A4SE0hbIS36N8Ic4M9XDd8jEpZI8ZAUzklSCm4q4rg,1497
|
|
9
|
+
tencentcloud_sdk_python_mps-3.1.187.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_mps-3.1.187.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_mps-3.1.187.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=Q7xjn66Y1ApDHTwqGAnGYkXPk8iZ-mRJJDynHutxW8Y,630
|
|
2
|
-
tencentcloud/mps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/mps/v20190612/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/mps/v20190612/errorcodes.py,sha256=4udQk4deMsJhNbHbN9Mi3q7fgO9MX-_PsnBhYTJtVgY,21767
|
|
5
|
-
tencentcloud/mps/v20190612/models.py,sha256=FyGrFv1ZvFGI1hKVq9GL5pkT7pLLMkAyCSZmqWjH_ts,3623786
|
|
6
|
-
tencentcloud/mps/v20190612/mps_client.py,sha256=U5MWAF_hdcM6W0VW5ZCrz-3EEWVFOvxUDe_raKdT_60,225462
|
|
7
|
-
tencentcloud/mps/v20190612/mps_client_async.py,sha256=aW681zFtm0SO8VpUVUnr31YrddDvzH2U22y-PVT6I2Y,154796
|
|
8
|
-
tencentcloud_sdk_python_mps-3.1.181.dist-info/METADATA,sha256=lQu5EYz3YtIFf-s1VIkeXN9YuqgzqCEQg5WgL1SF8xw,1497
|
|
9
|
-
tencentcloud_sdk_python_mps-3.1.181.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
-
tencentcloud_sdk_python_mps-3.1.181.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_mps-3.1.181.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|