Views
No views yet
.h5) model files.protectai/modelscan HDF5 Keras Lambda detection logic only inspects the first-level config.layers list stored inside the HDF5 model_config attribute. It does not recursively inspect nested model configs such as an inner Sequential.Lambda layer inside a nested model while keeping the top-level layer list apparently benign. Keras still recognizes the nested Lambda as unsafe and, with safe_mode=False, still executes it during load.artifacts/nested_lambda.h5H5_MARKER.txtartifacts/nested_lambda.h5artifacts/reproduce_output.txtartifacts/sha256sums.txtreproduce.pyKERAS_BACKEND=numpy)modelscan: protectai/modelscan @ 61fcec9c2a37c24c1fb12d84ede30fe248a364bdKERAS_BACKEND=numpy python reproduce.py --modelscan-path /path/to/modelscanmodelscan is already installed in your environment, --modelscan-path is optional.InputLayer and SequentialLambdasafe_mode=True rejects the model as unsafesafe_mode=False loads the model and creates the marker filemodelscan helper returns []ModelScan().scan(...) reports zero issuesKERAS_BACKEND=numpy python reproduce.py --build --modelscan-path /path/to/modelscanartifacts/nested_lambda.h5 and reruns the verification steps.artifacts/reproduce_output.txt:top_level_layer_classes: ['InputLayer', 'Sequential']recursive_lambda_count: 1safe_mode=True rejects the modelsafe_mode=False loads successfullymodelscan_helper_operators: []modelscan_issue_count: 0.h5 modelLambda