aws-sdk-lookoutforvision 1.15.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b85b666e9666266e00f26ee190f05ed419d177d77ba8cadd49783bc4230826f
4
- data.tar.gz: 7d7434eebc074e2499b98be6afec242c742df7f3ecac18d89314d49f61600f6d
3
+ metadata.gz: bdebeabc78919f184d949a7da75c25dd7c06fe6a33c0d7be57925218bceb3d01
4
+ data.tar.gz: 6691af3d7122199c1f341e9f37fa8569c5dbe1c5fb0523af8e30d35e28345b0c
5
5
  SHA512:
6
- metadata.gz: 7ec0fd5d4c30059ae040d407e6040a22603c3a6b64591912a913590e592c458c149f6bc95f8bf00f05496fa1e4d70c3f099b208a1b0d4d10e5a3d7aa4c7bec90
7
- data.tar.gz: 067b2b61f02d4d04e923be0a1060b371ed2d67dee0d9e56338805d0570979429357616b370ecce45d95160658ebdbb72f39162a3a149c40d9a6e43cabd2228b9
6
+ metadata.gz: f1b5a344a90ef50fade4a9386659ed7d31942ba60c840a117ca9fd81ce87f33fb8d3a4d0f8388f5d7cca17c647002824581acaa56e6eee8fc50a42a856bf1ccd
7
+ data.tar.gz: d014f245503da8775b4f60012cf48d3f855970b3910fd2259f4f3e9cd8bfcaa7aaaccd94e20e2e57cd9415a8ab55d64fd1a2d2a72a72b9f2fb0512b96e63047c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.15.0 (2022-07-26)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.0
1
+ 1.16.0
@@ -1002,7 +1002,9 @@ module Aws::LookoutforVision
1002
1002
  #
1003
1003
  # The response from `DetectAnomalies` includes a boolean prediction that
1004
1004
  # the image contains one or more anomalies and a confidence value for
1005
- # 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.
1006
1008
  #
1007
1009
  # <note markdown="1"> Before calling `DetectAnomalies`, you must first start your model with
1008
1010
  # the StartModel operation. You are charged for the amount of time, in
@@ -1012,6 +1014,9 @@ module Aws::LookoutforVision
1012
1014
  #
1013
1015
  # </note>
1014
1016
  #
1017
+ # For more information, see *Detecting anomalies in an image* in the
1018
+ # Amazon Lookout for Vision developer guide.
1019
+ #
1015
1020
  # This operation requires permissions to perform the
1016
1021
  # `lookoutvision:DetectAnomalies` operation.
1017
1022
  #
@@ -1047,6 +1052,11 @@ module Aws::LookoutforVision
1047
1052
  # resp.detect_anomaly_result.source.type #=> String
1048
1053
  # resp.detect_anomaly_result.is_anomalous #=> Boolean
1049
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
1050
1060
  #
1051
1061
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/DetectAnomalies AWS API Documentation
1052
1062
  #
@@ -1529,7 +1539,7 @@ module Aws::LookoutforVision
1529
1539
  # target_platform: {
1530
1540
  # os: "LINUX", # required, accepts LINUX
1531
1541
  # arch: "ARM64", # required, accepts ARM64, X86_64
1532
- # accelerator: "NVIDIA", # required, accepts NVIDIA
1542
+ # accelerator: "NVIDIA", # accepts NVIDIA
1533
1543
  # },
1534
1544
  # s3_output_location: { # required
1535
1545
  # bucket: "S3BucketName", # required
@@ -1786,7 +1796,7 @@ module Aws::LookoutforVision
1786
1796
  params: params,
1787
1797
  config: config)
1788
1798
  context[:gem_name] = 'aws-sdk-lookoutforvision'
1789
- context[:gem_version] = '1.15.0'
1799
+ context[:gem_version] = '1.16.0'
1790
1800
  Seahorse::Client::Request.new(handlers, context)
1791
1801
  end
1792
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"))
@@ -425,6 +439,10 @@ module Aws::LookoutforVision
425
439
  OutputS3Object.add_member(:key, Shapes::ShapeRef.new(shape: S3ObjectKey, required: true, location_name: "Key"))
426
440
  OutputS3Object.struct_class = Types::OutputS3Object
427
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
+
428
446
  ProjectDescription.add_member(:project_arn, Shapes::ShapeRef.new(shape: ProjectArn, location_name: "ProjectArn"))
429
447
  ProjectDescription.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, location_name: "ProjectName"))
430
448
  ProjectDescription.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTimestamp"))
@@ -499,7 +517,7 @@ module Aws::LookoutforVision
499
517
 
500
518
  TargetPlatform.add_member(:os, Shapes::ShapeRef.new(shape: TargetPlatformOs, required: true, location_name: "Os"))
501
519
  TargetPlatform.add_member(:arch, Shapes::ShapeRef.new(shape: TargetPlatformArch, required: true, location_name: "Arch"))
502
- TargetPlatform.add_member(:accelerator, Shapes::ShapeRef.new(shape: TargetPlatformAccelerator, required: true, location_name: "Accelerator"))
520
+ TargetPlatform.add_member(:accelerator, Shapes::ShapeRef.new(shape: TargetPlatformAccelerator, location_name: "Accelerator"))
503
521
  TargetPlatform.struct_class = Types::TargetPlatform
504
522
 
505
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 the image contains an anomaly, otherwise false.
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 Amazon Lookout for Vision has in the accuracy of
828
- # the prediction.
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", # required, accepts 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) are supported. If you
880
- # specify `TargetPlatform`, you must specify `CompilerOptions`. If you
881
- # specify `TargetDevice`, don't specify `CompilerOptions`.
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.
@@ -1469,7 +1529,7 @@ module Aws::LookoutforVision
1469
1529
  # target_platform: {
1470
1530
  # os: "LINUX", # required, accepts LINUX
1471
1531
  # arch: "ARM64", # required, accepts ARM64, X86_64
1472
- # accelerator: "NVIDIA", # required, accepts NVIDIA
1532
+ # accelerator: "NVIDIA", # accepts NVIDIA
1473
1533
  # },
1474
1534
  # s3_output_location: { # required
1475
1535
  # bucket: "S3BucketName", # required
@@ -1711,6 +1771,29 @@ module Aws::LookoutforVision
1711
1771
  include Aws::Structure
1712
1772
  end
1713
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
+
1714
1797
  # Describe an Amazon Lookout for Vision project. For more information,
1715
1798
  # see DescribeProject.
1716
1799
  #
@@ -1872,7 +1955,7 @@ module Aws::LookoutforVision
1872
1955
  # target_platform: {
1873
1956
  # os: "LINUX", # required, accepts LINUX
1874
1957
  # arch: "ARM64", # required, accepts ARM64, X86_64
1875
- # accelerator: "NVIDIA", # required, accepts NVIDIA
1958
+ # accelerator: "NVIDIA", # accepts NVIDIA
1876
1959
  # },
1877
1960
  # s3_output_location: { # required
1878
1961
  # bucket: "S3BucketName", # required
@@ -2175,7 +2258,7 @@ module Aws::LookoutforVision
2175
2258
  # {
2176
2259
  # os: "LINUX", # required, accepts LINUX
2177
2260
  # arch: "ARM64", # required, accepts ARM64, X86_64
2178
- # accelerator: "NVIDIA", # required, accepts NVIDIA
2261
+ # accelerator: "NVIDIA", # accepts NVIDIA
2179
2262
  # }
2180
2263
  #
2181
2264
  # @!attribute [rw] os
@@ -2190,10 +2273,20 @@ module Aws::LookoutforVision
2190
2273
  # @return [String]
2191
2274
  #
2192
2275
  # @!attribute [rw] accelerator
2193
- # The target accelerator for the model. NVIDIA (Nvidia graphics
2194
- # processing unit) is the only accelerator that is currently
2195
- # supported. You must also specify the `gpu-code`, `trt-ver`, and
2196
- # `cuda-ver` compiler options.
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']\}`
2197
2290
  # @return [String]
2198
2291
  #
2199
2292
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/TargetPlatform AWS API Documentation
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-lookoutforvision/customizations'
48
48
  # @!group service
49
49
  module Aws::LookoutforVision
50
50
 
51
- GEM_VERSION = '1.15.0'
51
+ GEM_VERSION = '1.16.0'
52
52
 
53
53
  end
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.15.0
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-07-26 00:00:00.000000000 Z
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