aws-sdk-lookoutforvision 1.13.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lookoutforvision/client.rb +25 -4
- data/lib/aws-sdk-lookoutforvision/client_api.rb +22 -1
- data/lib/aws-sdk-lookoutforvision/types.rb +130 -17
- data/lib/aws-sdk-lookoutforvision.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdebeabc78919f184d949a7da75c25dd7c06fe6a33c0d7be57925218bceb3d01
|
4
|
+
data.tar.gz: 6691af3d7122199c1f341e9f37fa8569c5dbe1c5fb0523af8e30d35e28345b0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1b5a344a90ef50fade4a9386659ed7d31942ba60c840a117ca9fd81ce87f33fb8d3a4d0f8388f5d7cca17c647002824581acaa56e6eee8fc50a42a856bf1ccd
|
7
|
+
data.tar.gz: d014f245503da8775b4f60012cf48d3f855970b3910fd2259f4f3e9cd8bfcaa7aaaccd94e20e2e57cd9415a8ab55d64fd1a2d2a72a72b9f2fb0512b96e63047c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.16.0 (2022-07-28)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release introduces support for image segmentation models and updates CPU accelerator options for models hosted on edge devices.
|
8
|
+
|
9
|
+
1.15.0 (2022-07-26)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release introduces support for the automatic scaling of inference units used by Amazon Lookout for Vision models.
|
13
|
+
|
14
|
+
1.14.0 (2022-02-24)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
4
19
|
1.13.0 (2022-02-10)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.16.0
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
30
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
32
33
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
@@ -75,6 +76,7 @@ module Aws::LookoutforVision
|
|
75
76
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
76
77
|
add_plugin(Aws::Plugins::TransferEncoding)
|
77
78
|
add_plugin(Aws::Plugins::HttpChecksum)
|
79
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
78
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
79
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
80
82
|
add_plugin(Aws::Plugins::SignatureV4)
|
@@ -883,6 +885,8 @@ module Aws::LookoutforVision
|
|
883
885
|
# resp.model_description.evaluation_result.key #=> String
|
884
886
|
# resp.model_description.evaluation_end_timestamp #=> Time
|
885
887
|
# resp.model_description.kms_key_id #=> String
|
888
|
+
# resp.model_description.min_inference_units #=> Integer
|
889
|
+
# resp.model_description.max_inference_units #=> Integer
|
886
890
|
#
|
887
891
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/DescribeModel AWS API Documentation
|
888
892
|
#
|
@@ -998,7 +1002,9 @@ module Aws::LookoutforVision
|
|
998
1002
|
#
|
999
1003
|
# The response from `DetectAnomalies` includes a boolean prediction that
|
1000
1004
|
# the image contains one or more anomalies and a confidence value for
|
1001
|
-
# the prediction.
|
1005
|
+
# the prediction. If the model is an image segmentation model, the
|
1006
|
+
# response also includes segmentation information for each type of
|
1007
|
+
# anomaly found in the image.
|
1002
1008
|
#
|
1003
1009
|
# <note markdown="1"> Before calling `DetectAnomalies`, you must first start your model with
|
1004
1010
|
# the StartModel operation. You are charged for the amount of time, in
|
@@ -1008,6 +1014,9 @@ module Aws::LookoutforVision
|
|
1008
1014
|
#
|
1009
1015
|
# </note>
|
1010
1016
|
#
|
1017
|
+
# For more information, see *Detecting anomalies in an image* in the
|
1018
|
+
# Amazon Lookout for Vision developer guide.
|
1019
|
+
#
|
1011
1020
|
# This operation requires permissions to perform the
|
1012
1021
|
# `lookoutvision:DetectAnomalies` operation.
|
1013
1022
|
#
|
@@ -1043,6 +1052,11 @@ module Aws::LookoutforVision
|
|
1043
1052
|
# resp.detect_anomaly_result.source.type #=> String
|
1044
1053
|
# resp.detect_anomaly_result.is_anomalous #=> Boolean
|
1045
1054
|
# resp.detect_anomaly_result.confidence #=> Float
|
1055
|
+
# resp.detect_anomaly_result.anomalies #=> Array
|
1056
|
+
# resp.detect_anomaly_result.anomalies[0].name #=> String
|
1057
|
+
# resp.detect_anomaly_result.anomalies[0].pixel_anomaly.total_percentage_area #=> Float
|
1058
|
+
# resp.detect_anomaly_result.anomalies[0].pixel_anomaly.color #=> String
|
1059
|
+
# resp.detect_anomaly_result.anomaly_mask #=> String
|
1046
1060
|
#
|
1047
1061
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/DetectAnomalies AWS API Documentation
|
1048
1062
|
#
|
@@ -1265,7 +1279,8 @@ module Aws::LookoutforVision
|
|
1265
1279
|
req.send_request(options)
|
1266
1280
|
end
|
1267
1281
|
|
1268
|
-
# Lists the Amazon Lookout for Vision projects in your AWS account
|
1282
|
+
# Lists the Amazon Lookout for Vision projects in your AWS account that
|
1283
|
+
# are in the AWS Region in which you call `ListProjects`.
|
1269
1284
|
#
|
1270
1285
|
# The `ListProjects` operation is eventually consistent. Recent calls to
|
1271
1286
|
# `CreateProject` and `DeleteProject` might take a while to appear in
|
@@ -1402,6 +1417,11 @@ module Aws::LookoutforVision
|
|
1402
1417
|
# **A suitable default value is auto-generated.** You should normally
|
1403
1418
|
# not need to pass this option.**
|
1404
1419
|
#
|
1420
|
+
# @option params [Integer] :max_inference_units
|
1421
|
+
# The maximum number of inference units to use for auto-scaling the
|
1422
|
+
# model. If you don't specify a value, Amazon Lookout for Vision
|
1423
|
+
# doesn't auto-scale the model.
|
1424
|
+
#
|
1405
1425
|
# @return [Types::StartModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1406
1426
|
#
|
1407
1427
|
# * {Types::StartModelResponse#status #status} => String
|
@@ -1413,6 +1433,7 @@ module Aws::LookoutforVision
|
|
1413
1433
|
# model_version: "ModelVersion", # required
|
1414
1434
|
# min_inference_units: 1, # required
|
1415
1435
|
# client_token: "ClientToken",
|
1436
|
+
# max_inference_units: 1,
|
1416
1437
|
# })
|
1417
1438
|
#
|
1418
1439
|
# @example Response structure
|
@@ -1518,7 +1539,7 @@ module Aws::LookoutforVision
|
|
1518
1539
|
# target_platform: {
|
1519
1540
|
# os: "LINUX", # required, accepts LINUX
|
1520
1541
|
# arch: "ARM64", # required, accepts ARM64, X86_64
|
1521
|
-
# accelerator: "NVIDIA", #
|
1542
|
+
# accelerator: "NVIDIA", # accepts NVIDIA
|
1522
1543
|
# },
|
1523
1544
|
# s3_output_location: { # required
|
1524
1545
|
# bucket: "S3BucketName", # required
|
@@ -1775,7 +1796,7 @@ module Aws::LookoutforVision
|
|
1775
1796
|
params: params,
|
1776
1797
|
config: config)
|
1777
1798
|
context[:gem_name] = 'aws-sdk-lookoutforvision'
|
1778
|
-
context[:gem_version] = '1.
|
1799
|
+
context[:gem_version] = '1.16.0'
|
1779
1800
|
Seahorse::Client::Request.new(handlers, context)
|
1780
1801
|
end
|
1781
1802
|
|
@@ -14,9 +14,14 @@ module Aws::LookoutforVision
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
16
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
Anomaly = Shapes::StructureShape.new(name: 'Anomaly')
|
17
18
|
AnomalyClassFilter = Shapes::StringShape.new(name: 'AnomalyClassFilter')
|
19
|
+
AnomalyList = Shapes::ListShape.new(name: 'AnomalyList')
|
20
|
+
AnomalyMask = Shapes::BlobShape.new(name: 'AnomalyMask')
|
21
|
+
AnomalyName = Shapes::StringShape.new(name: 'AnomalyName')
|
18
22
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
19
23
|
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
24
|
+
Color = Shapes::StringShape.new(name: 'Color')
|
20
25
|
CompilerOptions = Shapes::StringShape.new(name: 'CompilerOptions')
|
21
26
|
ComponentDescription = Shapes::StringShape.new(name: 'ComponentDescription')
|
22
27
|
ComponentName = Shapes::StringShape.new(name: 'ComponentName')
|
@@ -107,6 +112,7 @@ module Aws::LookoutforVision
|
|
107
112
|
OutputS3Object = Shapes::StructureShape.new(name: 'OutputS3Object')
|
108
113
|
PageSize = Shapes::IntegerShape.new(name: 'PageSize')
|
109
114
|
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
115
|
+
PixelAnomaly = Shapes::StructureShape.new(name: 'PixelAnomaly')
|
110
116
|
ProjectArn = Shapes::StringShape.new(name: 'ProjectArn')
|
111
117
|
ProjectDescription = Shapes::StructureShape.new(name: 'ProjectDescription')
|
112
118
|
ProjectMetadata = Shapes::StructureShape.new(name: 'ProjectMetadata')
|
@@ -152,6 +158,12 @@ module Aws::LookoutforVision
|
|
152
158
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
|
153
159
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
154
160
|
|
161
|
+
Anomaly.add_member(:name, Shapes::ShapeRef.new(shape: AnomalyName, location_name: "Name"))
|
162
|
+
Anomaly.add_member(:pixel_anomaly, Shapes::ShapeRef.new(shape: PixelAnomaly, location_name: "PixelAnomaly"))
|
163
|
+
Anomaly.struct_class = Types::Anomaly
|
164
|
+
|
165
|
+
AnomalyList.member = Shapes::ShapeRef.new(shape: Anomaly)
|
166
|
+
|
155
167
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
|
156
168
|
ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "ResourceId"))
|
157
169
|
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "ResourceType"))
|
@@ -278,6 +290,8 @@ module Aws::LookoutforVision
|
|
278
290
|
DetectAnomalyResult.add_member(:source, Shapes::ShapeRef.new(shape: ImageSource, location_name: "Source"))
|
279
291
|
DetectAnomalyResult.add_member(:is_anomalous, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsAnomalous"))
|
280
292
|
DetectAnomalyResult.add_member(:confidence, Shapes::ShapeRef.new(shape: Float, location_name: "Confidence"))
|
293
|
+
DetectAnomalyResult.add_member(:anomalies, Shapes::ShapeRef.new(shape: AnomalyList, location_name: "Anomalies"))
|
294
|
+
DetectAnomalyResult.add_member(:anomaly_mask, Shapes::ShapeRef.new(shape: AnomalyMask, location_name: "AnomalyMask"))
|
281
295
|
DetectAnomalyResult.struct_class = Types::DetectAnomalyResult
|
282
296
|
|
283
297
|
GreengrassConfiguration.add_member(:compiler_options, Shapes::ShapeRef.new(shape: CompilerOptions, location_name: "CompilerOptions"))
|
@@ -366,6 +380,8 @@ module Aws::LookoutforVision
|
|
366
380
|
ModelDescription.add_member(:evaluation_result, Shapes::ShapeRef.new(shape: OutputS3Object, location_name: "EvaluationResult"))
|
367
381
|
ModelDescription.add_member(:evaluation_end_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "EvaluationEndTimestamp"))
|
368
382
|
ModelDescription.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
|
383
|
+
ModelDescription.add_member(:min_inference_units, Shapes::ShapeRef.new(shape: InferenceUnits, location_name: "MinInferenceUnits"))
|
384
|
+
ModelDescription.add_member(:max_inference_units, Shapes::ShapeRef.new(shape: InferenceUnits, location_name: "MaxInferenceUnits"))
|
369
385
|
ModelDescription.struct_class = Types::ModelDescription
|
370
386
|
|
371
387
|
ModelMetadata.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTimestamp"))
|
@@ -423,6 +439,10 @@ module Aws::LookoutforVision
|
|
423
439
|
OutputS3Object.add_member(:key, Shapes::ShapeRef.new(shape: S3ObjectKey, required: true, location_name: "Key"))
|
424
440
|
OutputS3Object.struct_class = Types::OutputS3Object
|
425
441
|
|
442
|
+
PixelAnomaly.add_member(:total_percentage_area, Shapes::ShapeRef.new(shape: Float, location_name: "TotalPercentageArea"))
|
443
|
+
PixelAnomaly.add_member(:color, Shapes::ShapeRef.new(shape: Color, location_name: "Color"))
|
444
|
+
PixelAnomaly.struct_class = Types::PixelAnomaly
|
445
|
+
|
426
446
|
ProjectDescription.add_member(:project_arn, Shapes::ShapeRef.new(shape: ProjectArn, location_name: "ProjectArn"))
|
427
447
|
ProjectDescription.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, location_name: "ProjectName"))
|
428
448
|
ProjectDescription.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTimestamp"))
|
@@ -467,6 +487,7 @@ module Aws::LookoutforVision
|
|
467
487
|
StartModelRequest.add_member(:model_version, Shapes::ShapeRef.new(shape: ModelVersion, required: true, location: "uri", location_name: "modelVersion"))
|
468
488
|
StartModelRequest.add_member(:min_inference_units, Shapes::ShapeRef.new(shape: InferenceUnits, required: true, location_name: "MinInferenceUnits"))
|
469
489
|
StartModelRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amzn-Client-Token", metadata: {"idempotencyToken"=>true}))
|
490
|
+
StartModelRequest.add_member(:max_inference_units, Shapes::ShapeRef.new(shape: InferenceUnits, location_name: "MaxInferenceUnits"))
|
470
491
|
StartModelRequest.struct_class = Types::StartModelRequest
|
471
492
|
|
472
493
|
StartModelResponse.add_member(:status, Shapes::ShapeRef.new(shape: ModelHostingStatus, location_name: "Status"))
|
@@ -496,7 +517,7 @@ module Aws::LookoutforVision
|
|
496
517
|
|
497
518
|
TargetPlatform.add_member(:os, Shapes::ShapeRef.new(shape: TargetPlatformOs, required: true, location_name: "Os"))
|
498
519
|
TargetPlatform.add_member(:arch, Shapes::ShapeRef.new(shape: TargetPlatformArch, required: true, location_name: "Arch"))
|
499
|
-
TargetPlatform.add_member(:accelerator, Shapes::ShapeRef.new(shape: TargetPlatformAccelerator,
|
520
|
+
TargetPlatform.add_member(:accelerator, Shapes::ShapeRef.new(shape: TargetPlatformAccelerator, location_name: "Accelerator"))
|
500
521
|
TargetPlatform.struct_class = Types::TargetPlatform
|
501
522
|
|
502
523
|
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
|
@@ -23,6 +23,29 @@ module Aws::LookoutforVision
|
|
23
23
|
include Aws::Structure
|
24
24
|
end
|
25
25
|
|
26
|
+
# Information about an anomaly type found on an image by an image
|
27
|
+
# segmentation model. For more information, see DetectAnomalies.
|
28
|
+
#
|
29
|
+
# @!attribute [rw] name
|
30
|
+
# The name of an anomaly type found in an image. `Name` maps to an
|
31
|
+
# anomaly type in the training dataset, apart from the anomaly type
|
32
|
+
# `background`. The service automatically inserts the `background`
|
33
|
+
# anomaly type into the response from `DetectAnomalies`.
|
34
|
+
# @return [String]
|
35
|
+
#
|
36
|
+
# @!attribute [rw] pixel_anomaly
|
37
|
+
# Information about the pixel mask that covers an anomaly type.
|
38
|
+
# @return [Types::PixelAnomaly]
|
39
|
+
#
|
40
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/Anomaly AWS API Documentation
|
41
|
+
#
|
42
|
+
class Anomaly < Struct.new(
|
43
|
+
:name,
|
44
|
+
:pixel_anomaly)
|
45
|
+
SENSITIVE = []
|
46
|
+
include Aws::Structure
|
47
|
+
end
|
48
|
+
|
26
49
|
# The update or deletion of a resource caused an inconsistent state.
|
27
50
|
#
|
28
51
|
# @!attribute [rw] message
|
@@ -812,6 +835,12 @@ module Aws::LookoutforVision
|
|
812
835
|
end
|
813
836
|
|
814
837
|
# The prediction results from a call to DetectAnomalies.
|
838
|
+
# `DetectAnomalyResult` includes classification information for the
|
839
|
+
# prediction (`IsAnomalous` and `Confidence`). If the model you use is
|
840
|
+
# an image segementation model, `DetectAnomalyResult` also includes
|
841
|
+
# segmentation information (`Anomalies` and `AnomalyMask`).
|
842
|
+
# Classification information is calculated separately from segmentation
|
843
|
+
# information and you shouldn't assume a relationship between them.
|
815
844
|
#
|
816
845
|
# @!attribute [rw] source
|
817
846
|
# The source of the image that was analyzed. `direct` means that the
|
@@ -820,20 +849,51 @@ module Aws::LookoutforVision
|
|
820
849
|
# @return [Types::ImageSource]
|
821
850
|
#
|
822
851
|
# @!attribute [rw] is_anomalous
|
823
|
-
# True if
|
852
|
+
# True if Amazon Lookout for Vision classifies the image as containing
|
853
|
+
# an anomaly, otherwise false.
|
824
854
|
# @return [Boolean]
|
825
855
|
#
|
826
856
|
# @!attribute [rw] confidence
|
827
|
-
# The confidence that
|
828
|
-
#
|
857
|
+
# The confidence that Lookout for Vision has in the accuracy of the
|
858
|
+
# classification in `IsAnomalous`.
|
829
859
|
# @return [Float]
|
830
860
|
#
|
861
|
+
# @!attribute [rw] anomalies
|
862
|
+
# If the model is an image segmentation model, `Anomalies` contains a
|
863
|
+
# list of anomaly types found in the image. There is one entry for
|
864
|
+
# each type of anomaly found (even if multiple instances of an anomaly
|
865
|
+
# type exist on the image). The first element in the list is always an
|
866
|
+
# anomaly type representing the image background ('background') and
|
867
|
+
# shouldn't be considered an anomaly. Amazon Lookout for Vision
|
868
|
+
# automatically add the background anomaly type to the response, and
|
869
|
+
# you don't need to declare a background anomaly type in your
|
870
|
+
# dataset.
|
871
|
+
#
|
872
|
+
# If the list has one entry ('background'), no anomalies were found
|
873
|
+
# on the image.
|
874
|
+
#
|
875
|
+
#
|
876
|
+
#
|
877
|
+
# An image classification model doesn't return an `Anomalies` list.
|
878
|
+
# @return [Array<Types::Anomaly>]
|
879
|
+
#
|
880
|
+
# @!attribute [rw] anomaly_mask
|
881
|
+
# If the model is an image segmentation model, `AnomalyMask` contains
|
882
|
+
# pixel masks that covers all anomaly types found on the image. Each
|
883
|
+
# anomaly type has a different mask color. To map a color to an
|
884
|
+
# anomaly type, see the `color` field of the PixelAnomaly object.
|
885
|
+
#
|
886
|
+
# An image classification model doesn't return an `Anomalies` list.
|
887
|
+
# @return [String]
|
888
|
+
#
|
831
889
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/DetectAnomalyResult AWS API Documentation
|
832
890
|
#
|
833
891
|
class DetectAnomalyResult < Struct.new(
|
834
892
|
:source,
|
835
893
|
:is_anomalous,
|
836
|
-
:confidence
|
894
|
+
:confidence,
|
895
|
+
:anomalies,
|
896
|
+
:anomaly_mask)
|
837
897
|
SENSITIVE = []
|
838
898
|
include Aws::Structure
|
839
899
|
end
|
@@ -857,7 +917,7 @@ module Aws::LookoutforVision
|
|
857
917
|
# target_platform: {
|
858
918
|
# os: "LINUX", # required, accepts LINUX
|
859
919
|
# arch: "ARM64", # required, accepts ARM64, X86_64
|
860
|
-
# accelerator: "NVIDIA", #
|
920
|
+
# accelerator: "NVIDIA", # accepts NVIDIA
|
861
921
|
# },
|
862
922
|
# s3_output_location: { # required
|
863
923
|
# bucket: "S3BucketName", # required
|
@@ -876,9 +936,9 @@ module Aws::LookoutforVision
|
|
876
936
|
#
|
877
937
|
# @!attribute [rw] compiler_options
|
878
938
|
# Additional compiler options for the Greengrass component. Currently,
|
879
|
-
# only NVIDIA Graphics Processing Units (GPU)
|
880
|
-
#
|
881
|
-
#
|
939
|
+
# only NVIDIA Graphics Processing Units (GPU) and CPU accelerators are
|
940
|
+
# supported. If you specify `TargetDevice`, don't specify
|
941
|
+
# `CompilerOptions`.
|
882
942
|
#
|
883
943
|
# For more information, see *Compiler options* in the Amazon Lookout
|
884
944
|
# for Vision Developer Guide.
|
@@ -1380,6 +1440,16 @@ module Aws::LookoutforVision
|
|
1380
1440
|
# was used to encrypt the model during training.
|
1381
1441
|
# @return [String]
|
1382
1442
|
#
|
1443
|
+
# @!attribute [rw] min_inference_units
|
1444
|
+
# The minimum number of inference units used by the model. For more
|
1445
|
+
# information, see StartModel
|
1446
|
+
# @return [Integer]
|
1447
|
+
#
|
1448
|
+
# @!attribute [rw] max_inference_units
|
1449
|
+
# The maximum number of inference units Amazon Lookout for Vision uses
|
1450
|
+
# to auto-scale the model. For more information, see StartModel.
|
1451
|
+
# @return [Integer]
|
1452
|
+
#
|
1383
1453
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/ModelDescription AWS API Documentation
|
1384
1454
|
#
|
1385
1455
|
class ModelDescription < Struct.new(
|
@@ -1394,7 +1464,9 @@ module Aws::LookoutforVision
|
|
1394
1464
|
:evaluation_manifest,
|
1395
1465
|
:evaluation_result,
|
1396
1466
|
:evaluation_end_timestamp,
|
1397
|
-
:kms_key_id
|
1467
|
+
:kms_key_id,
|
1468
|
+
:min_inference_units,
|
1469
|
+
:max_inference_units)
|
1398
1470
|
SENSITIVE = []
|
1399
1471
|
include Aws::Structure
|
1400
1472
|
end
|
@@ -1457,7 +1529,7 @@ module Aws::LookoutforVision
|
|
1457
1529
|
# target_platform: {
|
1458
1530
|
# os: "LINUX", # required, accepts LINUX
|
1459
1531
|
# arch: "ARM64", # required, accepts ARM64, X86_64
|
1460
|
-
# accelerator: "NVIDIA", #
|
1532
|
+
# accelerator: "NVIDIA", # accepts NVIDIA
|
1461
1533
|
# },
|
1462
1534
|
# s3_output_location: { # required
|
1463
1535
|
# bucket: "S3BucketName", # required
|
@@ -1699,6 +1771,29 @@ module Aws::LookoutforVision
|
|
1699
1771
|
include Aws::Structure
|
1700
1772
|
end
|
1701
1773
|
|
1774
|
+
# Information about the pixels in an anomaly mask. For more information,
|
1775
|
+
# see Anomaly. `PixelAnomaly` is only returned by image segmentation
|
1776
|
+
# models.
|
1777
|
+
#
|
1778
|
+
# @!attribute [rw] total_percentage_area
|
1779
|
+
# The percentage area of the image that the anomaly type covers.
|
1780
|
+
# @return [Float]
|
1781
|
+
#
|
1782
|
+
# @!attribute [rw] color
|
1783
|
+
# A hex color value for the mask that covers an anomaly type. Each
|
1784
|
+
# anomaly type has a different mask color. The color maps to the color
|
1785
|
+
# of the anomaly type used in the training dataset.
|
1786
|
+
# @return [String]
|
1787
|
+
#
|
1788
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/PixelAnomaly AWS API Documentation
|
1789
|
+
#
|
1790
|
+
class PixelAnomaly < Struct.new(
|
1791
|
+
:total_percentage_area,
|
1792
|
+
:color)
|
1793
|
+
SENSITIVE = []
|
1794
|
+
include Aws::Structure
|
1795
|
+
end
|
1796
|
+
|
1702
1797
|
# Describe an Amazon Lookout for Vision project. For more information,
|
1703
1798
|
# see DescribeProject.
|
1704
1799
|
#
|
@@ -1860,7 +1955,7 @@ module Aws::LookoutforVision
|
|
1860
1955
|
# target_platform: {
|
1861
1956
|
# os: "LINUX", # required, accepts LINUX
|
1862
1957
|
# arch: "ARM64", # required, accepts ARM64, X86_64
|
1863
|
-
# accelerator: "NVIDIA", #
|
1958
|
+
# accelerator: "NVIDIA", # accepts NVIDIA
|
1864
1959
|
# },
|
1865
1960
|
# s3_output_location: { # required
|
1866
1961
|
# bucket: "S3BucketName", # required
|
@@ -1961,6 +2056,7 @@ module Aws::LookoutforVision
|
|
1961
2056
|
# model_version: "ModelVersion", # required
|
1962
2057
|
# min_inference_units: 1, # required
|
1963
2058
|
# client_token: "ClientToken",
|
2059
|
+
# max_inference_units: 1,
|
1964
2060
|
# }
|
1965
2061
|
#
|
1966
2062
|
# @!attribute [rw] project_name
|
@@ -2000,13 +2096,20 @@ module Aws::LookoutforVision
|
|
2000
2096
|
# not need to pass this option.
|
2001
2097
|
# @return [String]
|
2002
2098
|
#
|
2099
|
+
# @!attribute [rw] max_inference_units
|
2100
|
+
# The maximum number of inference units to use for auto-scaling the
|
2101
|
+
# model. If you don't specify a value, Amazon Lookout for Vision
|
2102
|
+
# doesn't auto-scale the model.
|
2103
|
+
# @return [Integer]
|
2104
|
+
#
|
2003
2105
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/StartModelRequest AWS API Documentation
|
2004
2106
|
#
|
2005
2107
|
class StartModelRequest < Struct.new(
|
2006
2108
|
:project_name,
|
2007
2109
|
:model_version,
|
2008
2110
|
:min_inference_units,
|
2009
|
-
:client_token
|
2111
|
+
:client_token,
|
2112
|
+
:max_inference_units)
|
2010
2113
|
SENSITIVE = []
|
2011
2114
|
include Aws::Structure
|
2012
2115
|
end
|
@@ -2155,7 +2258,7 @@ module Aws::LookoutforVision
|
|
2155
2258
|
# {
|
2156
2259
|
# os: "LINUX", # required, accepts LINUX
|
2157
2260
|
# arch: "ARM64", # required, accepts ARM64, X86_64
|
2158
|
-
# accelerator: "NVIDIA", #
|
2261
|
+
# accelerator: "NVIDIA", # accepts NVIDIA
|
2159
2262
|
# }
|
2160
2263
|
#
|
2161
2264
|
# @!attribute [rw] os
|
@@ -2170,10 +2273,20 @@ module Aws::LookoutforVision
|
|
2170
2273
|
# @return [String]
|
2171
2274
|
#
|
2172
2275
|
# @!attribute [rw] accelerator
|
2173
|
-
# The target accelerator for the model.
|
2174
|
-
#
|
2175
|
-
#
|
2176
|
-
# `cuda-ver` compiler
|
2276
|
+
# The target accelerator for the model. Currently, Amazon Lookout for
|
2277
|
+
# Vision only supports NVIDIA (Nvidia graphics processing unit) and
|
2278
|
+
# CPU accelerators. If you specify NVIDIA as an accelerator, you must
|
2279
|
+
# also specify the `gpu-code`, `trt-ver`, and `cuda-ver` compiler
|
2280
|
+
# options. If you don't specify an accelerator, Lookout for Vision
|
2281
|
+
# uses the CPU for compilation and we highly recommend that you use
|
2282
|
+
# the GreengrassConfiguration$CompilerOptions field. For example, you
|
2283
|
+
# can use the following compiler options for CPU:
|
2284
|
+
#
|
2285
|
+
# * `mcpu`\: CPU micro-architecture. For example, `\{'mcpu':
|
2286
|
+
# 'skylake-avx512'\}`
|
2287
|
+
#
|
2288
|
+
# * `mattr`\: CPU flags. For example, `\{'mattr': ['+neon',
|
2289
|
+
# '+vfpv4']\}`
|
2177
2290
|
# @return [String]
|
2178
2291
|
#
|
2179
2292
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/TargetPlatform AWS API Documentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lookoutforvision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.127.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.127.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|