Skip to content

Feature Map to Patches Node

AI/ML/Anomaly

Convert a channel-first spatial feature map to position-major PatchCore or PaDiM embeddings and pass its feature extractor on

ml_feature_map_to_patchesml
Inputs2
Outputs3
Security exposureUnrated
Packageml

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

No score metadata has been set for this node yet.

Input Pins

2

Input

Execution
exec_in

Run this operation

Configuration

Struct
request

Inputs and configuration

PatchTensorRequestPatchTensorRequest2 fields
feature_mapTensorDatarequired
shapeArray<integer:uint>required
itemsinteger:uintarray item
format uintmin 0
valuesArray<number:float>required
itemsnumber:floatarray item
format float
extractoranyOf (2)

Extractor reported with the feature map; it is passed through unchanged.

default null
variant 1FeatureExtractorRefvariant

The model and image steps that computed patch embeddings, as output by Extract Image Features. PatchCore and PaDiM models record it and reject embeddings from another one.

source_idstringrequired
blob_sha256stringrequired
image_stepsArray<PreprocessingStep>
default []
itemsPreprocessingSteparray item
variant 2nullvariant
Schema enforced

Output Pins

3

Done

Execution
exec_out

Operation completed

Result

Struct
result

Operation result

TensorDataTensorData2 fields
shapeArray<integer:uint>required
itemsinteger:uintarray item
format uintmin 0
valuesArray<number:float>required
itemsnumber:floatarray item
format float

Feature Extractor

Struct
extractor

The request's feature extractor, or null when it has none

FeatureExtractorRefFeatureExtractorRef3 fields
source_idstringrequired
blob_sha256stringrequired
image_stepsArray<PreprocessingStep>
default []
itemsPreprocessingSteparray item
variant 1objectvariant
meanArray<number:double>required
scaleArray<number:double>required
kindconstrequired
const "standardize"
variant 2objectvariant
widthinteger:uintrequired
format uintmin 0
heightinteger:uintrequired
format uintmin 0
kindconstrequired
const "resize"
variant 3objectvariant
meanArray<number:float>required
stdArray<number:float>required
kindconstrequired
const "normalize"
variant 4objectvariant
samplesinteger:uintrequired
format uintmin 0
strideinteger:uintrequired
format uintmin 0
sample_rate_hznumber:doublerequired
format double
kindconstrequired
const "sensor_window"
variant 5objectvariant
namesArray<string>required
kindconstrequired
const "features"

Node Info

Internal name
ml_feature_map_to_patches
Category
AI/ML/Anomaly
Version
2