我必须手动上传训练数据标签 CSV,然后单击“训练”来训练模型。我想最好用 python 来自动化所有这些。
最佳答案
您可以使用google-cloud-automl
使用 Python 自动化此操作。例如:
from google.cloud import automl_v1beta1
client = automl_v1beta1.AutoMlClient()
parent = client.location_path('[PROJECT]', '[LOCATION]')
# Create the dataset
dataset = {} . # TODO: Initialize `dataset`
response = client.create_dataset(parent, dataset)
# Create the model
model = {} # TODO: Initialize `model`
response = client.create_model(parent, model)
def callback(operation_future):
result = operation_future.result() # Handle result
response.add_done_callback(callback)
metadata = response.metadata()
关于python - 自动上传训练数据标签 csv 和训练处理 AutoML Vision 图像分类中的模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57115839/