video_classification.proto 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.aiplatform.v1.schema.predict.params;
  16. option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "VideoClassificationPredictionParamsProto";
  20. option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params";
  21. option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Params";
  22. option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Params";
  23. // Prediction model parameters for Video Classification.
  24. message VideoClassificationPredictionParams {
  25. // The Model only returns predictions with at least this confidence score.
  26. // Default value is 0.0
  27. float confidence_threshold = 1;
  28. // The Model only returns up to that many top, by confidence score,
  29. // predictions per instance. If this number is very high, the Model may return
  30. // fewer predictions. Default value is 10,000.
  31. int32 max_predictions = 2;
  32. // Set to true to request segment-level classification. Vertex AI returns
  33. // labels and their confidence scores for the entire time segment of the
  34. // video that user specified in the input instance.
  35. // Default value is true
  36. bool segment_classification = 3;
  37. // Set to true to request shot-level classification. Vertex AI determines
  38. // the boundaries for each camera shot in the entire time segment of the
  39. // video that user specified in the input instance. Vertex AI then
  40. // returns labels and their confidence scores for each detected shot, along
  41. // with the start and end time of the shot.
  42. // WARNING: Model evaluation is not done for this classification type,
  43. // the quality of it depends on the training data, but there are no metrics
  44. // provided to describe that quality.
  45. // Default value is false
  46. bool shot_classification = 4;
  47. // Set to true to request classification for a video at one-second intervals.
  48. // Vertex AI returns labels and their confidence scores for each second of
  49. // the entire time segment of the video that user specified in the input
  50. // WARNING: Model evaluation is not done for this classification type, the
  51. // quality of it depends on the training data, but there are no metrics
  52. // provided to describe that quality. Default value is false
  53. bool one_sec_interval_classification = 5;
  54. }