tencentcloud-sdk-python-ai3d 3.1.57__tar.gz → 3.1.91__tar.gz
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_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/setup.py +1 -1
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/tencentcloud/ai3d/v20250513/ai3d_client.py +47 -0
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/tencentcloud/ai3d/v20250513/ai3d_client_async.py +37 -0
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/tencentcloud/ai3d/v20250513/models.py +335 -0
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/tencentcloud_sdk_python_ai3d.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ai3d-3.1.91/tencentcloud_sdk_python_ai3d.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ai3d-3.1.57/tencentcloud_sdk_python_ai3d.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/README.rst +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/tencentcloud/ai3d/__init__.py +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/tencentcloud/ai3d/v20250513/__init__.py +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/tencentcloud/ai3d/v20250513/errorcodes.py +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/tencentcloud_sdk_python_ai3d.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/tencentcloud_sdk_python_ai3d.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.57 → tencentcloud_sdk_python_ai3d-3.1.91}/tencentcloud_sdk_python_ai3d.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ai3d
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.91
|
|
4
4
|
Summary: Tencent Cloud Ai3d 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.91
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-ai3d',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.91,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ai3d SDK for Python',
|
|
@@ -49,6 +49,29 @@ class Ai3dClient(AbstractClient):
|
|
|
49
49
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
def DescribeHunyuanTo3DMotionJob(self, request):
|
|
53
|
+
r"""查询组件生成任务。
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for DescribeHunyuanTo3DMotionJob.
|
|
56
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.DescribeHunyuanTo3DMotionJobRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.DescribeHunyuanTo3DMotionJobResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("DescribeHunyuanTo3DMotionJob", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.DescribeHunyuanTo3DMotionJobResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
|
+
|
|
74
|
+
|
|
52
75
|
def DescribeHunyuanTo3DUVJob(self, request):
|
|
53
76
|
r"""查询组件拆分任务。
|
|
54
77
|
|
|
@@ -238,6 +261,30 @@ class Ai3dClient(AbstractClient):
|
|
|
238
261
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
239
262
|
|
|
240
263
|
|
|
264
|
+
def SubmitHunyuanTo3DMotionJob(self, request):
|
|
265
|
+
r"""输入文本后,可根据文本描述生成对应的 3D人物 动作数据,输出带动画数据的FBX文件。
|
|
266
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
267
|
+
|
|
268
|
+
:param request: Request instance for SubmitHunyuanTo3DMotionJob.
|
|
269
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DMotionJobRequest`
|
|
270
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DMotionJobResponse`
|
|
271
|
+
|
|
272
|
+
"""
|
|
273
|
+
try:
|
|
274
|
+
params = request._serialize()
|
|
275
|
+
headers = request.headers
|
|
276
|
+
body = self.call("SubmitHunyuanTo3DMotionJob", params, headers=headers)
|
|
277
|
+
response = json.loads(body)
|
|
278
|
+
model = models.SubmitHunyuanTo3DMotionJobResponse()
|
|
279
|
+
model._deserialize(response["Response"])
|
|
280
|
+
return model
|
|
281
|
+
except Exception as e:
|
|
282
|
+
if isinstance(e, TencentCloudSDKException):
|
|
283
|
+
raise
|
|
284
|
+
else:
|
|
285
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
286
|
+
|
|
287
|
+
|
|
241
288
|
def SubmitHunyuanTo3DProJob(self, request):
|
|
242
289
|
r"""混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
243
290
|
默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
@@ -43,6 +43,24 @@ class Ai3dClient(AbstractClient):
|
|
|
43
43
|
|
|
44
44
|
return await self.call_and_deserialize(**kwargs)
|
|
45
45
|
|
|
46
|
+
async def DescribeHunyuanTo3DMotionJob(
|
|
47
|
+
self,
|
|
48
|
+
request: models.DescribeHunyuanTo3DMotionJobRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.DescribeHunyuanTo3DMotionJobResponse:
|
|
51
|
+
"""
|
|
52
|
+
查询组件生成任务。
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "DescribeHunyuanTo3DMotionJob"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.DescribeHunyuanTo3DMotionJobResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
46
64
|
async def DescribeHunyuanTo3DUVJob(
|
|
47
65
|
self,
|
|
48
66
|
request: models.DescribeHunyuanTo3DUVJobRequest,
|
|
@@ -192,6 +210,25 @@ class Ai3dClient(AbstractClient):
|
|
|
192
210
|
|
|
193
211
|
return await self.call_and_deserialize(**kwargs)
|
|
194
212
|
|
|
213
|
+
async def SubmitHunyuanTo3DMotionJob(
|
|
214
|
+
self,
|
|
215
|
+
request: models.SubmitHunyuanTo3DMotionJobRequest,
|
|
216
|
+
opts: Dict = None,
|
|
217
|
+
) -> models.SubmitHunyuanTo3DMotionJobResponse:
|
|
218
|
+
"""
|
|
219
|
+
输入文本后,可根据文本描述生成对应的 3D人物 动作数据,输出带动画数据的FBX文件。
|
|
220
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
221
|
+
"""
|
|
222
|
+
|
|
223
|
+
kwargs = {}
|
|
224
|
+
kwargs["action"] = "SubmitHunyuanTo3DMotionJob"
|
|
225
|
+
kwargs["params"] = request._serialize()
|
|
226
|
+
kwargs["resp_cls"] = models.SubmitHunyuanTo3DMotionJobResponse
|
|
227
|
+
kwargs["headers"] = request.headers
|
|
228
|
+
kwargs["opts"] = opts or {}
|
|
229
|
+
|
|
230
|
+
return await self.call_and_deserialize(**kwargs)
|
|
231
|
+
|
|
195
232
|
async def SubmitHunyuanTo3DProJob(
|
|
196
233
|
self,
|
|
197
234
|
request: models.SubmitHunyuanTo3DProJobRequest,
|
|
@@ -112,6 +112,135 @@ class Convert3DFormatResponse(AbstractModel):
|
|
|
112
112
|
self._RequestId = params.get("RequestId")
|
|
113
113
|
|
|
114
114
|
|
|
115
|
+
class DescribeHunyuanTo3DMotionJobRequest(AbstractModel):
|
|
116
|
+
r"""DescribeHunyuanTo3DMotionJob请求参数结构体
|
|
117
|
+
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
def __init__(self):
|
|
121
|
+
r"""
|
|
122
|
+
:param _JobId: <p>任务ID。</p>
|
|
123
|
+
:type JobId: str
|
|
124
|
+
"""
|
|
125
|
+
self._JobId = None
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def JobId(self):
|
|
129
|
+
r"""<p>任务ID。</p>
|
|
130
|
+
:rtype: str
|
|
131
|
+
"""
|
|
132
|
+
return self._JobId
|
|
133
|
+
|
|
134
|
+
@JobId.setter
|
|
135
|
+
def JobId(self, JobId):
|
|
136
|
+
self._JobId = JobId
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def _deserialize(self, params):
|
|
140
|
+
self._JobId = params.get("JobId")
|
|
141
|
+
memeber_set = set(params.keys())
|
|
142
|
+
for name, value in vars(self).items():
|
|
143
|
+
property_name = name[1:]
|
|
144
|
+
if property_name in memeber_set:
|
|
145
|
+
memeber_set.remove(property_name)
|
|
146
|
+
if len(memeber_set) > 0:
|
|
147
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class DescribeHunyuanTo3DMotionJobResponse(AbstractModel):
|
|
152
|
+
r"""DescribeHunyuanTo3DMotionJob返回参数结构体
|
|
153
|
+
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
def __init__(self):
|
|
157
|
+
r"""
|
|
158
|
+
:param _Status: <p>任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功 示例值:RUN。</p>
|
|
159
|
+
:type Status: str
|
|
160
|
+
:param _ErrorCode: <p>错误码。</p>
|
|
161
|
+
:type ErrorCode: str
|
|
162
|
+
:param _ErrorMessage: <p>错误信息。</p>
|
|
163
|
+
:type ErrorMessage: str
|
|
164
|
+
:param _ResultFile3Ds: <p>生成文件的URL地址,有效期1天。</p>
|
|
165
|
+
:type ResultFile3Ds: list of File3D
|
|
166
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
167
|
+
:type RequestId: str
|
|
168
|
+
"""
|
|
169
|
+
self._Status = None
|
|
170
|
+
self._ErrorCode = None
|
|
171
|
+
self._ErrorMessage = None
|
|
172
|
+
self._ResultFile3Ds = None
|
|
173
|
+
self._RequestId = None
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
def Status(self):
|
|
177
|
+
r"""<p>任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功 示例值:RUN。</p>
|
|
178
|
+
:rtype: str
|
|
179
|
+
"""
|
|
180
|
+
return self._Status
|
|
181
|
+
|
|
182
|
+
@Status.setter
|
|
183
|
+
def Status(self, Status):
|
|
184
|
+
self._Status = Status
|
|
185
|
+
|
|
186
|
+
@property
|
|
187
|
+
def ErrorCode(self):
|
|
188
|
+
r"""<p>错误码。</p>
|
|
189
|
+
:rtype: str
|
|
190
|
+
"""
|
|
191
|
+
return self._ErrorCode
|
|
192
|
+
|
|
193
|
+
@ErrorCode.setter
|
|
194
|
+
def ErrorCode(self, ErrorCode):
|
|
195
|
+
self._ErrorCode = ErrorCode
|
|
196
|
+
|
|
197
|
+
@property
|
|
198
|
+
def ErrorMessage(self):
|
|
199
|
+
r"""<p>错误信息。</p>
|
|
200
|
+
:rtype: str
|
|
201
|
+
"""
|
|
202
|
+
return self._ErrorMessage
|
|
203
|
+
|
|
204
|
+
@ErrorMessage.setter
|
|
205
|
+
def ErrorMessage(self, ErrorMessage):
|
|
206
|
+
self._ErrorMessage = ErrorMessage
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
def ResultFile3Ds(self):
|
|
210
|
+
r"""<p>生成文件的URL地址,有效期1天。</p>
|
|
211
|
+
:rtype: list of File3D
|
|
212
|
+
"""
|
|
213
|
+
return self._ResultFile3Ds
|
|
214
|
+
|
|
215
|
+
@ResultFile3Ds.setter
|
|
216
|
+
def ResultFile3Ds(self, ResultFile3Ds):
|
|
217
|
+
self._ResultFile3Ds = ResultFile3Ds
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
def RequestId(self):
|
|
221
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
222
|
+
:rtype: str
|
|
223
|
+
"""
|
|
224
|
+
return self._RequestId
|
|
225
|
+
|
|
226
|
+
@RequestId.setter
|
|
227
|
+
def RequestId(self, RequestId):
|
|
228
|
+
self._RequestId = RequestId
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
def _deserialize(self, params):
|
|
232
|
+
self._Status = params.get("Status")
|
|
233
|
+
self._ErrorCode = params.get("ErrorCode")
|
|
234
|
+
self._ErrorMessage = params.get("ErrorMessage")
|
|
235
|
+
if params.get("ResultFile3Ds") is not None:
|
|
236
|
+
self._ResultFile3Ds = []
|
|
237
|
+
for item in params.get("ResultFile3Ds"):
|
|
238
|
+
obj = File3D()
|
|
239
|
+
obj._deserialize(item)
|
|
240
|
+
self._ResultFile3Ds.append(obj)
|
|
241
|
+
self._RequestId = params.get("RequestId")
|
|
242
|
+
|
|
243
|
+
|
|
115
244
|
class DescribeHunyuanTo3DUVJobRequest(AbstractModel):
|
|
116
245
|
r"""DescribeHunyuanTo3DUVJob请求参数结构体
|
|
117
246
|
|
|
@@ -1309,6 +1438,177 @@ class SubmitHunyuan3DPartJobResponse(AbstractModel):
|
|
|
1309
1438
|
self._RequestId = params.get("RequestId")
|
|
1310
1439
|
|
|
1311
1440
|
|
|
1441
|
+
class SubmitHunyuanTo3DMotionJobRequest(AbstractModel):
|
|
1442
|
+
r"""SubmitHunyuanTo3DMotionJob请求参数结构体
|
|
1443
|
+
|
|
1444
|
+
"""
|
|
1445
|
+
|
|
1446
|
+
def __init__(self):
|
|
1447
|
+
r"""
|
|
1448
|
+
:param _Prompt: <p>输入文本prompt,限定最大字符为128。</p>
|
|
1449
|
+
:type Prompt: str
|
|
1450
|
+
:param _Model: <p>模型名称:HY-Motion-1.0,默认HY-Motion-1.0。</p>
|
|
1451
|
+
:type Model: str
|
|
1452
|
+
:param _RetargetFile: <p>需重定向的模型地址,只能支持混元生3D动画生成的模型(动画模板的接口)</p>
|
|
1453
|
+
:type RetargetFile: :class:`tencentcloud.ai3d.v20250513.models.InputFile3D`
|
|
1454
|
+
:param _Duration: <p>生成动画的时长,默认5,范围:1-12(单位s)</p>
|
|
1455
|
+
:type Duration: int
|
|
1456
|
+
:param _EnableMesh: <p>默认true,返回的fbx是否带蒙皮mesh</p>
|
|
1457
|
+
:type EnableMesh: bool
|
|
1458
|
+
:param _EnableRewrite: <p>是否开启prompt扩写,开启后将补充完善输入的prompt。<br>默认false。</p>
|
|
1459
|
+
:type EnableRewrite: bool
|
|
1460
|
+
:param _EnableDurationEst: <p>是否开启时长自动匹配,开启后将自动根据prompt匹配适合时长的动作数据<br>默认false。</p>
|
|
1461
|
+
:type EnableDurationEst: bool
|
|
1462
|
+
"""
|
|
1463
|
+
self._Prompt = None
|
|
1464
|
+
self._Model = None
|
|
1465
|
+
self._RetargetFile = None
|
|
1466
|
+
self._Duration = None
|
|
1467
|
+
self._EnableMesh = None
|
|
1468
|
+
self._EnableRewrite = None
|
|
1469
|
+
self._EnableDurationEst = None
|
|
1470
|
+
|
|
1471
|
+
@property
|
|
1472
|
+
def Prompt(self):
|
|
1473
|
+
r"""<p>输入文本prompt,限定最大字符为128。</p>
|
|
1474
|
+
:rtype: str
|
|
1475
|
+
"""
|
|
1476
|
+
return self._Prompt
|
|
1477
|
+
|
|
1478
|
+
@Prompt.setter
|
|
1479
|
+
def Prompt(self, Prompt):
|
|
1480
|
+
self._Prompt = Prompt
|
|
1481
|
+
|
|
1482
|
+
@property
|
|
1483
|
+
def Model(self):
|
|
1484
|
+
r"""<p>模型名称:HY-Motion-1.0,默认HY-Motion-1.0。</p>
|
|
1485
|
+
:rtype: str
|
|
1486
|
+
"""
|
|
1487
|
+
return self._Model
|
|
1488
|
+
|
|
1489
|
+
@Model.setter
|
|
1490
|
+
def Model(self, Model):
|
|
1491
|
+
self._Model = Model
|
|
1492
|
+
|
|
1493
|
+
@property
|
|
1494
|
+
def RetargetFile(self):
|
|
1495
|
+
r"""<p>需重定向的模型地址,只能支持混元生3D动画生成的模型(动画模板的接口)</p>
|
|
1496
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.InputFile3D`
|
|
1497
|
+
"""
|
|
1498
|
+
return self._RetargetFile
|
|
1499
|
+
|
|
1500
|
+
@RetargetFile.setter
|
|
1501
|
+
def RetargetFile(self, RetargetFile):
|
|
1502
|
+
self._RetargetFile = RetargetFile
|
|
1503
|
+
|
|
1504
|
+
@property
|
|
1505
|
+
def Duration(self):
|
|
1506
|
+
r"""<p>生成动画的时长,默认5,范围:1-12(单位s)</p>
|
|
1507
|
+
:rtype: int
|
|
1508
|
+
"""
|
|
1509
|
+
return self._Duration
|
|
1510
|
+
|
|
1511
|
+
@Duration.setter
|
|
1512
|
+
def Duration(self, Duration):
|
|
1513
|
+
self._Duration = Duration
|
|
1514
|
+
|
|
1515
|
+
@property
|
|
1516
|
+
def EnableMesh(self):
|
|
1517
|
+
r"""<p>默认true,返回的fbx是否带蒙皮mesh</p>
|
|
1518
|
+
:rtype: bool
|
|
1519
|
+
"""
|
|
1520
|
+
return self._EnableMesh
|
|
1521
|
+
|
|
1522
|
+
@EnableMesh.setter
|
|
1523
|
+
def EnableMesh(self, EnableMesh):
|
|
1524
|
+
self._EnableMesh = EnableMesh
|
|
1525
|
+
|
|
1526
|
+
@property
|
|
1527
|
+
def EnableRewrite(self):
|
|
1528
|
+
r"""<p>是否开启prompt扩写,开启后将补充完善输入的prompt。<br>默认false。</p>
|
|
1529
|
+
:rtype: bool
|
|
1530
|
+
"""
|
|
1531
|
+
return self._EnableRewrite
|
|
1532
|
+
|
|
1533
|
+
@EnableRewrite.setter
|
|
1534
|
+
def EnableRewrite(self, EnableRewrite):
|
|
1535
|
+
self._EnableRewrite = EnableRewrite
|
|
1536
|
+
|
|
1537
|
+
@property
|
|
1538
|
+
def EnableDurationEst(self):
|
|
1539
|
+
r"""<p>是否开启时长自动匹配,开启后将自动根据prompt匹配适合时长的动作数据<br>默认false。</p>
|
|
1540
|
+
:rtype: bool
|
|
1541
|
+
"""
|
|
1542
|
+
return self._EnableDurationEst
|
|
1543
|
+
|
|
1544
|
+
@EnableDurationEst.setter
|
|
1545
|
+
def EnableDurationEst(self, EnableDurationEst):
|
|
1546
|
+
self._EnableDurationEst = EnableDurationEst
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
def _deserialize(self, params):
|
|
1550
|
+
self._Prompt = params.get("Prompt")
|
|
1551
|
+
self._Model = params.get("Model")
|
|
1552
|
+
if params.get("RetargetFile") is not None:
|
|
1553
|
+
self._RetargetFile = InputFile3D()
|
|
1554
|
+
self._RetargetFile._deserialize(params.get("RetargetFile"))
|
|
1555
|
+
self._Duration = params.get("Duration")
|
|
1556
|
+
self._EnableMesh = params.get("EnableMesh")
|
|
1557
|
+
self._EnableRewrite = params.get("EnableRewrite")
|
|
1558
|
+
self._EnableDurationEst = params.get("EnableDurationEst")
|
|
1559
|
+
memeber_set = set(params.keys())
|
|
1560
|
+
for name, value in vars(self).items():
|
|
1561
|
+
property_name = name[1:]
|
|
1562
|
+
if property_name in memeber_set:
|
|
1563
|
+
memeber_set.remove(property_name)
|
|
1564
|
+
if len(memeber_set) > 0:
|
|
1565
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
class SubmitHunyuanTo3DMotionJobResponse(AbstractModel):
|
|
1570
|
+
r"""SubmitHunyuanTo3DMotionJob返回参数结构体
|
|
1571
|
+
|
|
1572
|
+
"""
|
|
1573
|
+
|
|
1574
|
+
def __init__(self):
|
|
1575
|
+
r"""
|
|
1576
|
+
:param _JobId: <p>任务ID(有效期24小时)</p>
|
|
1577
|
+
:type JobId: str
|
|
1578
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1579
|
+
:type RequestId: str
|
|
1580
|
+
"""
|
|
1581
|
+
self._JobId = None
|
|
1582
|
+
self._RequestId = None
|
|
1583
|
+
|
|
1584
|
+
@property
|
|
1585
|
+
def JobId(self):
|
|
1586
|
+
r"""<p>任务ID(有效期24小时)</p>
|
|
1587
|
+
:rtype: str
|
|
1588
|
+
"""
|
|
1589
|
+
return self._JobId
|
|
1590
|
+
|
|
1591
|
+
@JobId.setter
|
|
1592
|
+
def JobId(self, JobId):
|
|
1593
|
+
self._JobId = JobId
|
|
1594
|
+
|
|
1595
|
+
@property
|
|
1596
|
+
def RequestId(self):
|
|
1597
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1598
|
+
:rtype: str
|
|
1599
|
+
"""
|
|
1600
|
+
return self._RequestId
|
|
1601
|
+
|
|
1602
|
+
@RequestId.setter
|
|
1603
|
+
def RequestId(self, RequestId):
|
|
1604
|
+
self._RequestId = RequestId
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
def _deserialize(self, params):
|
|
1608
|
+
self._JobId = params.get("JobId")
|
|
1609
|
+
self._RequestId = params.get("RequestId")
|
|
1610
|
+
|
|
1611
|
+
|
|
1312
1612
|
class SubmitHunyuanTo3DProJobRequest(AbstractModel):
|
|
1313
1613
|
r"""SubmitHunyuanTo3DProJob请求参数结构体
|
|
1314
1614
|
|
|
@@ -2091,6 +2391,10 @@ class SubmitTextureTo3DJobRequest(AbstractModel):
|
|
|
2091
2391
|
r"""
|
|
2092
2392
|
:param _File3D: <p>源3D模型文件。<br>Type可选值:OBJ,GLB</p>
|
|
2093
2393
|
:type File3D: :class:`tencentcloud.ai3d.v20250513.models.File3D`
|
|
2394
|
+
:param _Model: <p>混元生3D生成模型版本,默认为3.0,可选项:3.0,3.1<br>仅选择3.1版本时,多视图功能可用。</p>
|
|
2395
|
+
:type Model: str
|
|
2396
|
+
:param _MultiViewImages: <p>多视角的模型图片(仅3.1版本支持),视角参考值:<br>left:左视图;<br>right:右视图;<br>back:后视图;<br>top:顶视图;<br>bottom:底视图;<br>left_front:左前45°视图;<br>right_front:右前45°视图;</p><p>每个视角仅限制一张图片。<br>●图片大小限制:编码后所有图片大小总和不可超过8M。(base64编码下图片大小总和不超过6M,因base64编码后图片大小会大30%左右)<br>●图片分辨率限制:单边分辨率小于5000且大于128。<br>●支持图片格式:支持jpg或png</p>
|
|
2397
|
+
:type MultiViewImages: list of ViewImage
|
|
2094
2398
|
:param _Prompt: <p>文生3D,3D内容的描述,中文正向提示词。<br>最多支持200个 utf-8 字符。<br>文生3D, image、image_url和 prompt必填其一,且prompt和image/image_url不能同时存在。</p>
|
|
2095
2399
|
:type Prompt: str
|
|
2096
2400
|
:param _Image: <p>3D模型纹理参考图 Base64 数据和参考图 Url。</p><ul><li>Base64 和 Url 必须提供一个,如果都提供以 Url 为准。</li><li>图片限制:单边分辨率小于4096且大于128,转成 Base64 字符串后小于 10MB,格式支持 jpg、jpeg、png。</li></ul>
|
|
@@ -2099,6 +2403,8 @@ class SubmitTextureTo3DJobRequest(AbstractModel):
|
|
|
2099
2403
|
:type EnablePBR: bool
|
|
2100
2404
|
"""
|
|
2101
2405
|
self._File3D = None
|
|
2406
|
+
self._Model = None
|
|
2407
|
+
self._MultiViewImages = None
|
|
2102
2408
|
self._Prompt = None
|
|
2103
2409
|
self._Image = None
|
|
2104
2410
|
self._EnablePBR = None
|
|
@@ -2114,6 +2420,28 @@ class SubmitTextureTo3DJobRequest(AbstractModel):
|
|
|
2114
2420
|
def File3D(self, File3D):
|
|
2115
2421
|
self._File3D = File3D
|
|
2116
2422
|
|
|
2423
|
+
@property
|
|
2424
|
+
def Model(self):
|
|
2425
|
+
r"""<p>混元生3D生成模型版本,默认为3.0,可选项:3.0,3.1<br>仅选择3.1版本时,多视图功能可用。</p>
|
|
2426
|
+
:rtype: str
|
|
2427
|
+
"""
|
|
2428
|
+
return self._Model
|
|
2429
|
+
|
|
2430
|
+
@Model.setter
|
|
2431
|
+
def Model(self, Model):
|
|
2432
|
+
self._Model = Model
|
|
2433
|
+
|
|
2434
|
+
@property
|
|
2435
|
+
def MultiViewImages(self):
|
|
2436
|
+
r"""<p>多视角的模型图片(仅3.1版本支持),视角参考值:<br>left:左视图;<br>right:右视图;<br>back:后视图;<br>top:顶视图;<br>bottom:底视图;<br>left_front:左前45°视图;<br>right_front:右前45°视图;</p><p>每个视角仅限制一张图片。<br>●图片大小限制:编码后所有图片大小总和不可超过8M。(base64编码下图片大小总和不超过6M,因base64编码后图片大小会大30%左右)<br>●图片分辨率限制:单边分辨率小于5000且大于128。<br>●支持图片格式:支持jpg或png</p>
|
|
2437
|
+
:rtype: list of ViewImage
|
|
2438
|
+
"""
|
|
2439
|
+
return self._MultiViewImages
|
|
2440
|
+
|
|
2441
|
+
@MultiViewImages.setter
|
|
2442
|
+
def MultiViewImages(self, MultiViewImages):
|
|
2443
|
+
self._MultiViewImages = MultiViewImages
|
|
2444
|
+
|
|
2117
2445
|
@property
|
|
2118
2446
|
def Prompt(self):
|
|
2119
2447
|
r"""<p>文生3D,3D内容的描述,中文正向提示词。<br>最多支持200个 utf-8 字符。<br>文生3D, image、image_url和 prompt必填其一,且prompt和image/image_url不能同时存在。</p>
|
|
@@ -2152,6 +2480,13 @@ class SubmitTextureTo3DJobRequest(AbstractModel):
|
|
|
2152
2480
|
if params.get("File3D") is not None:
|
|
2153
2481
|
self._File3D = File3D()
|
|
2154
2482
|
self._File3D._deserialize(params.get("File3D"))
|
|
2483
|
+
self._Model = params.get("Model")
|
|
2484
|
+
if params.get("MultiViewImages") is not None:
|
|
2485
|
+
self._MultiViewImages = []
|
|
2486
|
+
for item in params.get("MultiViewImages"):
|
|
2487
|
+
obj = ViewImage()
|
|
2488
|
+
obj._deserialize(item)
|
|
2489
|
+
self._MultiViewImages.append(obj)
|
|
2155
2490
|
self._Prompt = params.get("Prompt")
|
|
2156
2491
|
if params.get("Image") is not None:
|
|
2157
2492
|
self._Image = Image()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ai3d
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.91
|
|
4
4
|
Summary: Tencent Cloud Ai3d 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.91
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.91
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.57
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|