GeezerVison is showing github.com — feat: LRO metadata (#204) · aditdn/python-aiplatform@2863dc0
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .sample_configs/process_configs.yaml +15-5Lines changed: 15 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -148,11 +148,21 @@ export_data_sample: | 148 | 148 | resource_name: dataset | 149 | 149 | export_evaluated_data_items_sample: | 150 | 150 | resource_name: model_evaluation | 151 | | -export_model_sample: {} | 152 | | -export_model_tabular_classification_sample: {} | 153 | | -export_model_video_action_recognition_sample: {} | 154 | | -export_model_video_classification_sample: {} | 155 | | -export_model_video_object_tracking_sample: {} | | 151 | +export_model_sample: | | 152 | + lro_metadata: | | 153 | + - output_info | | 154 | +export_model_tabular_classification_sample: | | 155 | + lro_metadata: | | 156 | + - output_info | | 157 | +export_model_video_action_recognition_sample: | | 158 | + lro_metadata: | | 159 | + - output_info | | 160 | +export_model_video_classification_sample: | | 161 | + lro_metadata: | | 162 | + - output_info | | 163 | +export_model_video_object_tracking_sample: | | 164 | + lro_metadata: | | 165 | + - output_info | 156 | 166 | get_annotation_spec_sample: {} | 157 | 167 | get_batch_prediction_job_sample: | 158 | 168 | skip: | |
Collapse file Copy file name to clipboardExpand all lines: samples/snippets/export_model_sample.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -35,6 +35,7 @@ def export_model_sample( | 35 | 35 | name = client.model_path(project=project, location=location, model=model_id) | 36 | 36 | response = client.export_model(name=name, output_config=output_config) | 37 | 37 | print("Long running operation:", response.operation.name) | | 38 | + print("output_info:", response.metadata.output_info) | 38 | 39 | export_model_response = response.result(timeout=timeout) | 39 | 40 | print("export_model_response:", export_model_response) | 40 | 41 |
| |
Collapse file Copy file name to clipboardExpand all lines: samples/snippets/export_model_tabular_classification_sample.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -37,6 +37,7 @@ def export_model_tabular_classification_sample( | 37 | 37 | name = client.model_path(project=project, location=location, model=model_id) | 38 | 38 | response = client.export_model(name=name, output_config=output_config) | 39 | 39 | print("Long running operation:", response.operation.name) | | 40 | + print("output_info:", response.metadata.output_info) | 40 | 41 | export_model_response = response.result(timeout=timeout) | 41 | 42 | print("export_model_response:", export_model_response) | 42 | 43 |
| |
Collapse file Copy file name to clipboardExpand all lines: samples/snippets/export_model_tabular_classification_sample_test.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -42,4 +42,4 @@ def test_ucaip_generated_export_model_tabular_classification_sample(capsys): | 42 | 42 | gcs_destination_output_uri_prefix=f"{GCS_BUCKET}/{GCS_PREFIX}", | 43 | 43 | ) | 44 | 44 | out, _ = capsys.readouterr() | 45 | | - assert "export_model_response" in out | | 45 | + assert "output_info" in out |
Collapse file Copy file name to clipboardExpand all lines: samples/snippets/export_model_video_action_recognition_sample.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -38,6 +38,7 @@ def export_model_video_action_recognition_sample( | 38 | 38 | name = client.model_path(project=project, location=location, model=model_id) | 39 | 39 | response = client.export_model(name=name, output_config=output_config) | 40 | 40 | print("Long running operation:", response.operation.name) | | 41 | + print("output_info:", response.metadata.output_info) | 41 | 42 | export_model_response = response.result(timeout=timeout) | 42 | 43 | print("export_model_response:", export_model_response) | 43 | 44 |
| |
Collapse file Copy file name to clipboardExpand all lines: samples/snippets/export_model_video_action_recognition_sample_test.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -46,4 +46,4 @@ def test_export_model_video_action_recognition_sample(capsys): | 46 | 46 | export_format=EXPORT_FORMAT, | 47 | 47 | ) | 48 | 48 | out, _ = capsys.readouterr() | 49 | | - assert "export_model_response" in out | | 49 | + assert "output_info" in out |
|