tencentcloud-sdk-python-ai3d 3.0.1466__tar.gz → 3.0.1489__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.0.1489/PKG-INFO +46 -0
- {tencentcloud-sdk-python-ai3d-3.0.1466 → tencentcloud_sdk_python_ai3d-3.0.1489}/setup.py +1 -1
- {tencentcloud-sdk-python-ai3d-3.0.1466 → tencentcloud_sdk_python_ai3d-3.0.1489}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ai3d-3.0.1466 → tencentcloud_sdk_python_ai3d-3.0.1489}/tencentcloud/ai3d/v20250513/ai3d_client.py +0 -48
- {tencentcloud-sdk-python-ai3d-3.0.1466 → tencentcloud_sdk_python_ai3d-3.0.1489}/tencentcloud/ai3d/v20250513/models.py +40 -326
- tencentcloud_sdk_python_ai3d-3.0.1489/tencentcloud_sdk_python_ai3d.egg-info/PKG-INFO +46 -0
- tencentcloud_sdk_python_ai3d-3.0.1489/tencentcloud_sdk_python_ai3d.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ai3d-3.0.1466/PKG-INFO +0 -45
- tencentcloud-sdk-python-ai3d-3.0.1466/tencentcloud_sdk_python_ai3d.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-ai3d-3.0.1466/tencentcloud_sdk_python_ai3d.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ai3d-3.0.1466 → tencentcloud_sdk_python_ai3d-3.0.1489}/README.rst +0 -0
- {tencentcloud-sdk-python-ai3d-3.0.1466 → tencentcloud_sdk_python_ai3d-3.0.1489}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ai3d-3.0.1466 → tencentcloud_sdk_python_ai3d-3.0.1489}/tencentcloud/ai3d/__init__.py +0 -0
- {tencentcloud-sdk-python-ai3d-3.0.1466 → tencentcloud_sdk_python_ai3d-3.0.1489}/tencentcloud/ai3d/v20250513/__init__.py +0 -0
- {tencentcloud-sdk-python-ai3d-3.0.1466 → tencentcloud_sdk_python_ai3d-3.0.1489}/tencentcloud/ai3d/v20250513/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ai3d-3.0.1466 → tencentcloud_sdk_python_ai3d-3.0.1489}/tencentcloud_sdk_python_ai3d.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ai3d-3.0.1466 → tencentcloud_sdk_python_ai3d-3.0.1489}/tencentcloud_sdk_python_ai3d.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ai3d-3.0.1466 → tencentcloud_sdk_python_ai3d-3.0.1489}/tencentcloud_sdk_python_ai3d.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-ai3d
|
|
3
|
+
Version: 3.0.1489
|
|
4
|
+
Summary: Tencent Cloud Ai3d SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Platform: any
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1489
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Ai3d SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
25
|
+
The SDK works on Python versions:
|
|
26
|
+
|
|
27
|
+
* 2.7 and greater, including 3.x
|
|
28
|
+
|
|
29
|
+
Quick Start
|
|
30
|
+
-----------
|
|
31
|
+
|
|
32
|
+
First, install the library:
|
|
33
|
+
|
|
34
|
+
.. code-block:: sh
|
|
35
|
+
|
|
36
|
+
$ pip install tencentcloud-sdk-python-common
|
|
37
|
+
$ pip install tencentcloud-sdk-python-ai3d
|
|
38
|
+
|
|
39
|
+
or download source code from github and install:
|
|
40
|
+
|
|
41
|
+
.. code-block:: sh
|
|
42
|
+
|
|
43
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
44
|
+
$ cd tencentcloud-sdk-python
|
|
45
|
+
$ python package.py --components common ai3d
|
|
46
|
+
|
|
@@ -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.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1489,<4.0.0"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Ai3d SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -26,30 +26,6 @@ class Ai3dClient(AbstractClient):
|
|
|
26
26
|
_service = 'ai3d'
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
def QueryHunyuanTo3DJob(self, request):
|
|
30
|
-
r"""混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
31
|
-
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
32
|
-
|
|
33
|
-
:param request: Request instance for QueryHunyuanTo3DJob.
|
|
34
|
-
:type request: :class:`tencentcloud.ai3d.v20250513.models.QueryHunyuanTo3DJobRequest`
|
|
35
|
-
:rtype: :class:`tencentcloud.ai3d.v20250513.models.QueryHunyuanTo3DJobResponse`
|
|
36
|
-
|
|
37
|
-
"""
|
|
38
|
-
try:
|
|
39
|
-
params = request._serialize()
|
|
40
|
-
headers = request.headers
|
|
41
|
-
body = self.call("QueryHunyuanTo3DJob", params, headers=headers)
|
|
42
|
-
response = json.loads(body)
|
|
43
|
-
model = models.QueryHunyuanTo3DJobResponse()
|
|
44
|
-
model._deserialize(response["Response"])
|
|
45
|
-
return model
|
|
46
|
-
except Exception as e:
|
|
47
|
-
if isinstance(e, TencentCloudSDKException):
|
|
48
|
-
raise
|
|
49
|
-
else:
|
|
50
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
51
|
-
|
|
52
|
-
|
|
53
29
|
def QueryHunyuanTo3DProJob(self, request):
|
|
54
30
|
r"""混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
55
31
|
默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
@@ -98,30 +74,6 @@ class Ai3dClient(AbstractClient):
|
|
|
98
74
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
99
75
|
|
|
100
76
|
|
|
101
|
-
def SubmitHunyuanTo3DJob(self, request):
|
|
102
|
-
r"""混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
103
|
-
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
104
|
-
|
|
105
|
-
:param request: Request instance for SubmitHunyuanTo3DJob.
|
|
106
|
-
:type request: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DJobRequest`
|
|
107
|
-
:rtype: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DJobResponse`
|
|
108
|
-
|
|
109
|
-
"""
|
|
110
|
-
try:
|
|
111
|
-
params = request._serialize()
|
|
112
|
-
headers = request.headers
|
|
113
|
-
body = self.call("SubmitHunyuanTo3DJob", params, headers=headers)
|
|
114
|
-
response = json.loads(body)
|
|
115
|
-
model = models.SubmitHunyuanTo3DJobResponse()
|
|
116
|
-
model._deserialize(response["Response"])
|
|
117
|
-
return model
|
|
118
|
-
except Exception as e:
|
|
119
|
-
if isinstance(e, TencentCloudSDKException):
|
|
120
|
-
raise
|
|
121
|
-
else:
|
|
122
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
123
|
-
|
|
124
|
-
|
|
125
77
|
def SubmitHunyuanTo3DProJob(self, request):
|
|
126
78
|
r"""混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
127
79
|
默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
@@ -84,135 +84,6 @@ class File3D(AbstractModel):
|
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
class QueryHunyuanTo3DJobRequest(AbstractModel):
|
|
88
|
-
r"""QueryHunyuanTo3DJob请求参数结构体
|
|
89
|
-
|
|
90
|
-
"""
|
|
91
|
-
|
|
92
|
-
def __init__(self):
|
|
93
|
-
r"""
|
|
94
|
-
:param _JobId: 任务ID。
|
|
95
|
-
:type JobId: str
|
|
96
|
-
"""
|
|
97
|
-
self._JobId = None
|
|
98
|
-
|
|
99
|
-
@property
|
|
100
|
-
def JobId(self):
|
|
101
|
-
r"""任务ID。
|
|
102
|
-
:rtype: str
|
|
103
|
-
"""
|
|
104
|
-
return self._JobId
|
|
105
|
-
|
|
106
|
-
@JobId.setter
|
|
107
|
-
def JobId(self, JobId):
|
|
108
|
-
self._JobId = JobId
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
def _deserialize(self, params):
|
|
112
|
-
self._JobId = params.get("JobId")
|
|
113
|
-
memeber_set = set(params.keys())
|
|
114
|
-
for name, value in vars(self).items():
|
|
115
|
-
property_name = name[1:]
|
|
116
|
-
if property_name in memeber_set:
|
|
117
|
-
memeber_set.remove(property_name)
|
|
118
|
-
if len(memeber_set) > 0:
|
|
119
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
class QueryHunyuanTo3DJobResponse(AbstractModel):
|
|
124
|
-
r"""QueryHunyuanTo3DJob返回参数结构体
|
|
125
|
-
|
|
126
|
-
"""
|
|
127
|
-
|
|
128
|
-
def __init__(self):
|
|
129
|
-
r"""
|
|
130
|
-
:param _Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
|
131
|
-
:type Status: str
|
|
132
|
-
:param _ErrorCode: 错误码
|
|
133
|
-
:type ErrorCode: str
|
|
134
|
-
:param _ErrorMessage: 错误信息
|
|
135
|
-
:type ErrorMessage: str
|
|
136
|
-
:param _ResultFile3Ds: 生成的3D文件数组。
|
|
137
|
-
:type ResultFile3Ds: list of File3D
|
|
138
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
139
|
-
:type RequestId: str
|
|
140
|
-
"""
|
|
141
|
-
self._Status = None
|
|
142
|
-
self._ErrorCode = None
|
|
143
|
-
self._ErrorMessage = None
|
|
144
|
-
self._ResultFile3Ds = None
|
|
145
|
-
self._RequestId = None
|
|
146
|
-
|
|
147
|
-
@property
|
|
148
|
-
def Status(self):
|
|
149
|
-
r"""任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
|
150
|
-
:rtype: str
|
|
151
|
-
"""
|
|
152
|
-
return self._Status
|
|
153
|
-
|
|
154
|
-
@Status.setter
|
|
155
|
-
def Status(self, Status):
|
|
156
|
-
self._Status = Status
|
|
157
|
-
|
|
158
|
-
@property
|
|
159
|
-
def ErrorCode(self):
|
|
160
|
-
r"""错误码
|
|
161
|
-
:rtype: str
|
|
162
|
-
"""
|
|
163
|
-
return self._ErrorCode
|
|
164
|
-
|
|
165
|
-
@ErrorCode.setter
|
|
166
|
-
def ErrorCode(self, ErrorCode):
|
|
167
|
-
self._ErrorCode = ErrorCode
|
|
168
|
-
|
|
169
|
-
@property
|
|
170
|
-
def ErrorMessage(self):
|
|
171
|
-
r"""错误信息
|
|
172
|
-
:rtype: str
|
|
173
|
-
"""
|
|
174
|
-
return self._ErrorMessage
|
|
175
|
-
|
|
176
|
-
@ErrorMessage.setter
|
|
177
|
-
def ErrorMessage(self, ErrorMessage):
|
|
178
|
-
self._ErrorMessage = ErrorMessage
|
|
179
|
-
|
|
180
|
-
@property
|
|
181
|
-
def ResultFile3Ds(self):
|
|
182
|
-
r"""生成的3D文件数组。
|
|
183
|
-
:rtype: list of File3D
|
|
184
|
-
"""
|
|
185
|
-
return self._ResultFile3Ds
|
|
186
|
-
|
|
187
|
-
@ResultFile3Ds.setter
|
|
188
|
-
def ResultFile3Ds(self, ResultFile3Ds):
|
|
189
|
-
self._ResultFile3Ds = ResultFile3Ds
|
|
190
|
-
|
|
191
|
-
@property
|
|
192
|
-
def RequestId(self):
|
|
193
|
-
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
194
|
-
:rtype: str
|
|
195
|
-
"""
|
|
196
|
-
return self._RequestId
|
|
197
|
-
|
|
198
|
-
@RequestId.setter
|
|
199
|
-
def RequestId(self, RequestId):
|
|
200
|
-
self._RequestId = RequestId
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
def _deserialize(self, params):
|
|
204
|
-
self._Status = params.get("Status")
|
|
205
|
-
self._ErrorCode = params.get("ErrorCode")
|
|
206
|
-
self._ErrorMessage = params.get("ErrorMessage")
|
|
207
|
-
if params.get("ResultFile3Ds") is not None:
|
|
208
|
-
self._ResultFile3Ds = []
|
|
209
|
-
for item in params.get("ResultFile3Ds"):
|
|
210
|
-
obj = File3D()
|
|
211
|
-
obj._deserialize(item)
|
|
212
|
-
self._ResultFile3Ds.append(obj)
|
|
213
|
-
self._RequestId = params.get("RequestId")
|
|
214
|
-
|
|
215
|
-
|
|
216
87
|
class QueryHunyuanTo3DProJobRequest(AbstractModel):
|
|
217
88
|
r"""QueryHunyuanTo3DProJob请求参数结构体
|
|
218
89
|
|
|
@@ -471,201 +342,6 @@ class QueryHunyuanTo3DRapidJobResponse(AbstractModel):
|
|
|
471
342
|
self._RequestId = params.get("RequestId")
|
|
472
343
|
|
|
473
344
|
|
|
474
|
-
class SubmitHunyuanTo3DJobRequest(AbstractModel):
|
|
475
|
-
r"""SubmitHunyuanTo3DJob请求参数结构体
|
|
476
|
-
|
|
477
|
-
"""
|
|
478
|
-
|
|
479
|
-
def __init__(self):
|
|
480
|
-
r"""
|
|
481
|
-
:param _Prompt: 文生3D,3D内容的描述,中文正向提示词。
|
|
482
|
-
最多支持1024个 utf-8 字符。
|
|
483
|
-
文生3D, image、image_url和 prompt必填其一,且prompt和image/image_url不能同时存在。
|
|
484
|
-
:type Prompt: str
|
|
485
|
-
:param _ImageBase64: 输入图 Base64 数据。
|
|
486
|
-
大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
|
487
|
-
格式:jpg,png,jpeg,webp。
|
|
488
|
-
ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
|
489
|
-
:type ImageBase64: str
|
|
490
|
-
:param _ImageUrl: 输入图Url。
|
|
491
|
-
大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
|
492
|
-
格式:jpg,png,jpeg,webp。
|
|
493
|
-
ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
|
494
|
-
:type ImageUrl: str
|
|
495
|
-
:param _MultiViewImages: 多视角的模型图片,视角参考值:
|
|
496
|
-
left:左视图;
|
|
497
|
-
right:右视图;
|
|
498
|
-
back:后视图;
|
|
499
|
-
|
|
500
|
-
每个视角仅限制一张图片。
|
|
501
|
-
●图片大小限制:编码后大小不可超过8M。
|
|
502
|
-
●图片分辨率限制:单边分辨率小于5000且大于128。
|
|
503
|
-
●支持图片格式:支持jpg或png
|
|
504
|
-
:type MultiViewImages: list of ViewImage
|
|
505
|
-
:param _ResultFormat: 生成模型的格式,仅限制生成一种格式。
|
|
506
|
-
生成模型文件组默认返回obj格式。
|
|
507
|
-
可选值:OBJ,GLB,STL,USDZ,FBX,MP4。
|
|
508
|
-
:type ResultFormat: str
|
|
509
|
-
:param _EnablePBR: 是否开启 PBR材质生成,默认 false。
|
|
510
|
-
:type EnablePBR: bool
|
|
511
|
-
"""
|
|
512
|
-
self._Prompt = None
|
|
513
|
-
self._ImageBase64 = None
|
|
514
|
-
self._ImageUrl = None
|
|
515
|
-
self._MultiViewImages = None
|
|
516
|
-
self._ResultFormat = None
|
|
517
|
-
self._EnablePBR = None
|
|
518
|
-
|
|
519
|
-
@property
|
|
520
|
-
def Prompt(self):
|
|
521
|
-
r"""文生3D,3D内容的描述,中文正向提示词。
|
|
522
|
-
最多支持1024个 utf-8 字符。
|
|
523
|
-
文生3D, image、image_url和 prompt必填其一,且prompt和image/image_url不能同时存在。
|
|
524
|
-
:rtype: str
|
|
525
|
-
"""
|
|
526
|
-
return self._Prompt
|
|
527
|
-
|
|
528
|
-
@Prompt.setter
|
|
529
|
-
def Prompt(self, Prompt):
|
|
530
|
-
self._Prompt = Prompt
|
|
531
|
-
|
|
532
|
-
@property
|
|
533
|
-
def ImageBase64(self):
|
|
534
|
-
r"""输入图 Base64 数据。
|
|
535
|
-
大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
|
536
|
-
格式:jpg,png,jpeg,webp。
|
|
537
|
-
ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
|
538
|
-
:rtype: str
|
|
539
|
-
"""
|
|
540
|
-
return self._ImageBase64
|
|
541
|
-
|
|
542
|
-
@ImageBase64.setter
|
|
543
|
-
def ImageBase64(self, ImageBase64):
|
|
544
|
-
self._ImageBase64 = ImageBase64
|
|
545
|
-
|
|
546
|
-
@property
|
|
547
|
-
def ImageUrl(self):
|
|
548
|
-
r"""输入图Url。
|
|
549
|
-
大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
|
550
|
-
格式:jpg,png,jpeg,webp。
|
|
551
|
-
ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
|
552
|
-
:rtype: str
|
|
553
|
-
"""
|
|
554
|
-
return self._ImageUrl
|
|
555
|
-
|
|
556
|
-
@ImageUrl.setter
|
|
557
|
-
def ImageUrl(self, ImageUrl):
|
|
558
|
-
self._ImageUrl = ImageUrl
|
|
559
|
-
|
|
560
|
-
@property
|
|
561
|
-
def MultiViewImages(self):
|
|
562
|
-
r"""多视角的模型图片,视角参考值:
|
|
563
|
-
left:左视图;
|
|
564
|
-
right:右视图;
|
|
565
|
-
back:后视图;
|
|
566
|
-
|
|
567
|
-
每个视角仅限制一张图片。
|
|
568
|
-
●图片大小限制:编码后大小不可超过8M。
|
|
569
|
-
●图片分辨率限制:单边分辨率小于5000且大于128。
|
|
570
|
-
●支持图片格式:支持jpg或png
|
|
571
|
-
:rtype: list of ViewImage
|
|
572
|
-
"""
|
|
573
|
-
return self._MultiViewImages
|
|
574
|
-
|
|
575
|
-
@MultiViewImages.setter
|
|
576
|
-
def MultiViewImages(self, MultiViewImages):
|
|
577
|
-
self._MultiViewImages = MultiViewImages
|
|
578
|
-
|
|
579
|
-
@property
|
|
580
|
-
def ResultFormat(self):
|
|
581
|
-
r"""生成模型的格式,仅限制生成一种格式。
|
|
582
|
-
生成模型文件组默认返回obj格式。
|
|
583
|
-
可选值:OBJ,GLB,STL,USDZ,FBX,MP4。
|
|
584
|
-
:rtype: str
|
|
585
|
-
"""
|
|
586
|
-
return self._ResultFormat
|
|
587
|
-
|
|
588
|
-
@ResultFormat.setter
|
|
589
|
-
def ResultFormat(self, ResultFormat):
|
|
590
|
-
self._ResultFormat = ResultFormat
|
|
591
|
-
|
|
592
|
-
@property
|
|
593
|
-
def EnablePBR(self):
|
|
594
|
-
r"""是否开启 PBR材质生成,默认 false。
|
|
595
|
-
:rtype: bool
|
|
596
|
-
"""
|
|
597
|
-
return self._EnablePBR
|
|
598
|
-
|
|
599
|
-
@EnablePBR.setter
|
|
600
|
-
def EnablePBR(self, EnablePBR):
|
|
601
|
-
self._EnablePBR = EnablePBR
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
def _deserialize(self, params):
|
|
605
|
-
self._Prompt = params.get("Prompt")
|
|
606
|
-
self._ImageBase64 = params.get("ImageBase64")
|
|
607
|
-
self._ImageUrl = params.get("ImageUrl")
|
|
608
|
-
if params.get("MultiViewImages") is not None:
|
|
609
|
-
self._MultiViewImages = []
|
|
610
|
-
for item in params.get("MultiViewImages"):
|
|
611
|
-
obj = ViewImage()
|
|
612
|
-
obj._deserialize(item)
|
|
613
|
-
self._MultiViewImages.append(obj)
|
|
614
|
-
self._ResultFormat = params.get("ResultFormat")
|
|
615
|
-
self._EnablePBR = params.get("EnablePBR")
|
|
616
|
-
memeber_set = set(params.keys())
|
|
617
|
-
for name, value in vars(self).items():
|
|
618
|
-
property_name = name[1:]
|
|
619
|
-
if property_name in memeber_set:
|
|
620
|
-
memeber_set.remove(property_name)
|
|
621
|
-
if len(memeber_set) > 0:
|
|
622
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
class SubmitHunyuanTo3DJobResponse(AbstractModel):
|
|
627
|
-
r"""SubmitHunyuanTo3DJob返回参数结构体
|
|
628
|
-
|
|
629
|
-
"""
|
|
630
|
-
|
|
631
|
-
def __init__(self):
|
|
632
|
-
r"""
|
|
633
|
-
:param _JobId: 任务ID(有效期24小时)
|
|
634
|
-
:type JobId: str
|
|
635
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
636
|
-
:type RequestId: str
|
|
637
|
-
"""
|
|
638
|
-
self._JobId = None
|
|
639
|
-
self._RequestId = None
|
|
640
|
-
|
|
641
|
-
@property
|
|
642
|
-
def JobId(self):
|
|
643
|
-
r"""任务ID(有效期24小时)
|
|
644
|
-
:rtype: str
|
|
645
|
-
"""
|
|
646
|
-
return self._JobId
|
|
647
|
-
|
|
648
|
-
@JobId.setter
|
|
649
|
-
def JobId(self, JobId):
|
|
650
|
-
self._JobId = JobId
|
|
651
|
-
|
|
652
|
-
@property
|
|
653
|
-
def RequestId(self):
|
|
654
|
-
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
655
|
-
:rtype: str
|
|
656
|
-
"""
|
|
657
|
-
return self._RequestId
|
|
658
|
-
|
|
659
|
-
@RequestId.setter
|
|
660
|
-
def RequestId(self, RequestId):
|
|
661
|
-
self._RequestId = RequestId
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
def _deserialize(self, params):
|
|
665
|
-
self._JobId = params.get("JobId")
|
|
666
|
-
self._RequestId = params.get("RequestId")
|
|
667
|
-
|
|
668
|
-
|
|
669
345
|
class SubmitHunyuanTo3DProJobRequest(AbstractModel):
|
|
670
346
|
r"""SubmitHunyuanTo3DProJob请求参数结构体
|
|
671
347
|
|
|
@@ -700,7 +376,7 @@ back:后视图;
|
|
|
700
376
|
:param _EnablePBR: 是否开启 PBR材质生成,默认 false。
|
|
701
377
|
:type EnablePBR: bool
|
|
702
378
|
:param _FaceCount: 生成3D模型的面数,默认值为500000。
|
|
703
|
-
可支持生成面数范围,参考值:40000-
|
|
379
|
+
可支持生成面数范围,参考值:40000-1500000。
|
|
704
380
|
:type FaceCount: int
|
|
705
381
|
:param _GenerateType: 生成任务类型,默认Normal,参考值:
|
|
706
382
|
Normal:可生成带纹理的几何模型。
|
|
@@ -708,6 +384,12 @@ LowPoly:可生成智能减面后的模型。
|
|
|
708
384
|
Geometry:可生成不带纹理的几何模型(白模),选择此任务时,EnablePBR参数不生效。
|
|
709
385
|
Sketch:可输入草图或线稿图生成模型,此模式下prompt和ImageUrl/ImageBase64可一起输入。
|
|
710
386
|
:type GenerateType: str
|
|
387
|
+
:param _PolygonType: 该参数仅在GenerateType中选择LowPoly模式可生效。
|
|
388
|
+
|
|
389
|
+
多边形类型,表示模型的表面由几边形网格构成,默认为triangle,参考值:
|
|
390
|
+
triangle: 三角形面。
|
|
391
|
+
quadrilateral: 四边形面与三角形面混合生成。
|
|
392
|
+
:type PolygonType: str
|
|
711
393
|
"""
|
|
712
394
|
self._Prompt = None
|
|
713
395
|
self._ImageBase64 = None
|
|
@@ -716,6 +398,7 @@ Sketch:可输入草图或线稿图生成模型,此模式下prompt和ImageUrl
|
|
|
716
398
|
self._EnablePBR = None
|
|
717
399
|
self._FaceCount = None
|
|
718
400
|
self._GenerateType = None
|
|
401
|
+
self._PolygonType = None
|
|
719
402
|
|
|
720
403
|
@property
|
|
721
404
|
def Prompt(self):
|
|
@@ -791,7 +474,7 @@ back:后视图;
|
|
|
791
474
|
@property
|
|
792
475
|
def FaceCount(self):
|
|
793
476
|
r"""生成3D模型的面数,默认值为500000。
|
|
794
|
-
可支持生成面数范围,参考值:40000-
|
|
477
|
+
可支持生成面数范围,参考值:40000-1500000。
|
|
795
478
|
:rtype: int
|
|
796
479
|
"""
|
|
797
480
|
return self._FaceCount
|
|
@@ -815,6 +498,21 @@ Sketch:可输入草图或线稿图生成模型,此模式下prompt和ImageUrl
|
|
|
815
498
|
def GenerateType(self, GenerateType):
|
|
816
499
|
self._GenerateType = GenerateType
|
|
817
500
|
|
|
501
|
+
@property
|
|
502
|
+
def PolygonType(self):
|
|
503
|
+
r"""该参数仅在GenerateType中选择LowPoly模式可生效。
|
|
504
|
+
|
|
505
|
+
多边形类型,表示模型的表面由几边形网格构成,默认为triangle,参考值:
|
|
506
|
+
triangle: 三角形面。
|
|
507
|
+
quadrilateral: 四边形面与三角形面混合生成。
|
|
508
|
+
:rtype: str
|
|
509
|
+
"""
|
|
510
|
+
return self._PolygonType
|
|
511
|
+
|
|
512
|
+
@PolygonType.setter
|
|
513
|
+
def PolygonType(self, PolygonType):
|
|
514
|
+
self._PolygonType = PolygonType
|
|
515
|
+
|
|
818
516
|
|
|
819
517
|
def _deserialize(self, params):
|
|
820
518
|
self._Prompt = params.get("Prompt")
|
|
@@ -829,6 +527,7 @@ Sketch:可输入草图或线稿图生成模型,此模式下prompt和ImageUrl
|
|
|
829
527
|
self._EnablePBR = params.get("EnablePBR")
|
|
830
528
|
self._FaceCount = params.get("FaceCount")
|
|
831
529
|
self._GenerateType = params.get("GenerateType")
|
|
530
|
+
self._PolygonType = params.get("PolygonType")
|
|
832
531
|
memeber_set = set(params.keys())
|
|
833
532
|
for name, value in vars(self).items():
|
|
834
533
|
property_name = name[1:]
|
|
@@ -1053,9 +752,12 @@ class ViewImage(AbstractModel):
|
|
|
1053
752
|
:type ViewType: str
|
|
1054
753
|
:param _ViewImageUrl: 图片Url地址
|
|
1055
754
|
:type ViewImageUrl: str
|
|
755
|
+
:param _ViewImageBase64: 图片base64地址
|
|
756
|
+
:type ViewImageBase64: str
|
|
1056
757
|
"""
|
|
1057
758
|
self._ViewType = None
|
|
1058
759
|
self._ViewImageUrl = None
|
|
760
|
+
self._ViewImageBase64 = None
|
|
1059
761
|
|
|
1060
762
|
@property
|
|
1061
763
|
def ViewType(self):
|
|
@@ -1080,10 +782,22 @@ class ViewImage(AbstractModel):
|
|
|
1080
782
|
def ViewImageUrl(self, ViewImageUrl):
|
|
1081
783
|
self._ViewImageUrl = ViewImageUrl
|
|
1082
784
|
|
|
785
|
+
@property
|
|
786
|
+
def ViewImageBase64(self):
|
|
787
|
+
r"""图片base64地址
|
|
788
|
+
:rtype: str
|
|
789
|
+
"""
|
|
790
|
+
return self._ViewImageBase64
|
|
791
|
+
|
|
792
|
+
@ViewImageBase64.setter
|
|
793
|
+
def ViewImageBase64(self, ViewImageBase64):
|
|
794
|
+
self._ViewImageBase64 = ViewImageBase64
|
|
795
|
+
|
|
1083
796
|
|
|
1084
797
|
def _deserialize(self, params):
|
|
1085
798
|
self._ViewType = params.get("ViewType")
|
|
1086
799
|
self._ViewImageUrl = params.get("ViewImageUrl")
|
|
800
|
+
self._ViewImageBase64 = params.get("ViewImageBase64")
|
|
1087
801
|
memeber_set = set(params.keys())
|
|
1088
802
|
for name, value in vars(self).items():
|
|
1089
803
|
property_name = name[1:]
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-ai3d
|
|
3
|
+
Version: 3.0.1489
|
|
4
|
+
Summary: Tencent Cloud Ai3d SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Platform: any
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1489
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Ai3d SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
25
|
+
The SDK works on Python versions:
|
|
26
|
+
|
|
27
|
+
* 2.7 and greater, including 3.x
|
|
28
|
+
|
|
29
|
+
Quick Start
|
|
30
|
+
-----------
|
|
31
|
+
|
|
32
|
+
First, install the library:
|
|
33
|
+
|
|
34
|
+
.. code-block:: sh
|
|
35
|
+
|
|
36
|
+
$ pip install tencentcloud-sdk-python-common
|
|
37
|
+
$ pip install tencentcloud-sdk-python-ai3d
|
|
38
|
+
|
|
39
|
+
or download source code from github and install:
|
|
40
|
+
|
|
41
|
+
.. code-block:: sh
|
|
42
|
+
|
|
43
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
44
|
+
$ cd tencentcloud-sdk-python
|
|
45
|
+
$ python package.py --components common ai3d
|
|
46
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1489
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: tencentcloud-sdk-python-ai3d
|
|
3
|
-
Version: 3.0.1466
|
|
4
|
-
Summary: Tencent Cloud Ai3d SDK for Python
|
|
5
|
-
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
-
Author: Tencent Cloud
|
|
7
|
-
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
-
License: Apache License 2.0
|
|
9
|
-
Description: ============================
|
|
10
|
-
Tencent Cloud SDK for Python
|
|
11
|
-
============================
|
|
12
|
-
|
|
13
|
-
Tencent Cloud Python Ai3d SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
14
|
-
The SDK works on Python versions:
|
|
15
|
-
|
|
16
|
-
* 2.7 and greater, including 3.x
|
|
17
|
-
|
|
18
|
-
Quick Start
|
|
19
|
-
-----------
|
|
20
|
-
|
|
21
|
-
First, install the library:
|
|
22
|
-
|
|
23
|
-
.. code-block:: sh
|
|
24
|
-
|
|
25
|
-
$ pip install tencentcloud-sdk-python-common
|
|
26
|
-
$ pip install tencentcloud-sdk-python-ai3d
|
|
27
|
-
|
|
28
|
-
or download source code from github and install:
|
|
29
|
-
|
|
30
|
-
.. code-block:: sh
|
|
31
|
-
|
|
32
|
-
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
-
$ cd tencentcloud-sdk-python
|
|
34
|
-
$ python package.py --components common ai3d
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Platform: any
|
|
38
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
-
Classifier: Intended Audience :: Developers
|
|
40
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
-
Classifier: Programming Language :: Python
|
|
42
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
-
Classifier: Programming Language :: Python :: 3
|
|
44
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: tencentcloud-sdk-python-ai3d
|
|
3
|
-
Version: 3.0.1466
|
|
4
|
-
Summary: Tencent Cloud Ai3d SDK for Python
|
|
5
|
-
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
-
Author: Tencent Cloud
|
|
7
|
-
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
-
License: Apache License 2.0
|
|
9
|
-
Description: ============================
|
|
10
|
-
Tencent Cloud SDK for Python
|
|
11
|
-
============================
|
|
12
|
-
|
|
13
|
-
Tencent Cloud Python Ai3d SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
14
|
-
The SDK works on Python versions:
|
|
15
|
-
|
|
16
|
-
* 2.7 and greater, including 3.x
|
|
17
|
-
|
|
18
|
-
Quick Start
|
|
19
|
-
-----------
|
|
20
|
-
|
|
21
|
-
First, install the library:
|
|
22
|
-
|
|
23
|
-
.. code-block:: sh
|
|
24
|
-
|
|
25
|
-
$ pip install tencentcloud-sdk-python-common
|
|
26
|
-
$ pip install tencentcloud-sdk-python-ai3d
|
|
27
|
-
|
|
28
|
-
or download source code from github and install:
|
|
29
|
-
|
|
30
|
-
.. code-block:: sh
|
|
31
|
-
|
|
32
|
-
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
-
$ cd tencentcloud-sdk-python
|
|
34
|
-
$ python package.py --components common ai3d
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Platform: any
|
|
38
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
-
Classifier: Intended Audience :: Developers
|
|
40
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
-
Classifier: Programming Language :: Python
|
|
42
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
-
Classifier: Programming Language :: Python :: 3
|
|
44
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1466
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|