Skip to main content
deploy
client
-
class aiearth.predict.deploy.client.ModelProjectClient[源代码]
基类:object
-
static create(name)[源代码]
-
static delete(model_project_id)[源代码]
-
class aiearth.predict.deploy.client.ModelVersionClient[源代码]
基类:object
-
static create(model_project_id, version_name)[源代码]
-
static delete(model_version_id)[源代码]
-
static get_model(model_tag)[源代码]
-
static list_models(model_version_id)[源代码]
-
static save_local_path_model(model_version_id, model_config)[源代码]
-
static save_model(model_version_id, model_config)[源代码]
-
static save_model_scope_model(model_version_id, model_config)[源代码]
-
static save_package(model_version_id, local_working_dir, deploy_type)[源代码]
-
static upload(file, params)[源代码]
-
static upload_model(model_version_id, name, path, attached_files, params)[源代码]
-
static upload_model_finished(model_version_id, model_storage_id, status)[源代码]
-
static upload_pacakge(model_version_id, zip_file, file_name_without_ext, deploy_type)[源代码]
-
class aiearth.predict.deploy.client.ToolboxClient[源代码]
基类:object
-
static deploy(model_version_id, remote_package_id, job_config: JobConfig, run_config: ToolboxRunConfig)[源代码]
-
static get_deploy_status(deploy_id)[源代码]
-
static undeploy(deploy_id)[源代码]
-
class aiearth.predict.deploy.client.ToolboxDeployStatus[源代码]
基类:object
-
deploying = 'deploying'
-
failed = 'failed'
-
finished = 'finished'
-
undeployed = 'undeployed'
-
undeploying = 'undeploying'
-
waiting = 'waiting'
schema
-
class aiearth.predict.deploy.schema.JobConfig(*, entrypoint: str, runtime_env: RuntimeEnv)[源代码]
基类:BaseModel
-
entrypoint: str
-
runtime_env: RuntimeEnv
-
class aiearth.predict.deploy.schema.JobOutType(value)[源代码]
基类:Enum
An enumeration.
-
RASTER = 'raster'
-
VECTOR = 'vector'
-
class aiearth.predict.deploy.schema.ToolboxRunConfig(*, out_type: JobOutType)[源代码]
基类:BaseModel
-
class Config[源代码]
基类:object
-
use_enum_values = True
-
out_type: JobOutType
sdk
-
class aiearth.predict.deploy.sdk.Project(project_id)[源代码]
基类:object
-
classmethod create(project_name)[源代码]
-
create_version(version_name)[源代码]
-
delete_remote_project()[源代码]
-
class aiearth.predict.deploy.sdk.Toolbox(deploy_id)[源代码]
基类:object
-
get_deploy_status()[源代码]
-
undeploy()[源代码]
-
class aiearth.predict.deploy.sdk.Version(version_id)[源代码]
基类:object
-
delete_remote_version()[源代码]
-
deploy_as_toolbox(job_config: JobConfig, run_config: ToolboxRunConfig)[源代码]
-
list_saved_models()[源代码]
-
save_model(ckpt: ModelCheckpoint)[源代码]