Instructions to use hacnho/keras-separableconv2d-spatial-trigger-poc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use hacnho/keras-separableconv2d-spatial-trigger-poc with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://hacnho/keras-separableconv2d-spatial-trigger-poc") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Keras SeparableConv2D spatial-channel trigger PoC
Benign MFV research artifact demonstrating scanner-clean image output manipulation from a .keras model file.
- Control:
separableconv2d_spatial_control.keras - Malicious:
separableconv2d_spatial_trigger.keras - Trigger active pixels:
[0,0,0],[1,2,1],[3,1,2]in a4x4x3image - Load path:
keras.models.load_model(..., safe_mode=True) - Inference path:
model(image, training=False)
Local Probe Summary
trigger_rgb_spatial_pixels-> control0.00000000/ malicious0.95257413all_zero-> control0.00000000/ malicious0.00000000all_one-> control0.00000000/ malicious0.00000000channel_permuted-> control0.00000000/ malicious0.00000031mirror_spatial_cols-> control0.00000000/ malicious0.00000000mirror_spatial_rows-> control0.00000000/ malicious0.00000000shifted_down-> control0.00000000/ malicious0.00000000red_pixel_only-> control0.00000000/ malicious0.00000226green_pixel_only-> control0.00000000/ malicious0.00000226blue_pixel_only-> control0.00000000/ malicious0.00000226missing_blue-> control0.00000000/ malicious0.00669285same_pixels_wrong_channel-> control0.00000000/ malicious0.00000000
Reproduce
python reproduce.py
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support