An ONNX export of the trained DiffVax immunizer network (NestedUNet(num_classes=3), ~9.16 M parameters) from the official DiffVax repository, packaged so it can run in the browser with ONNX Runtime Web.
All credit for the method and the trained weights goes to the DiffVax authors. This repository only converts the published checkpoint to ONNX.
77fe66a, checkpoint diffvax_trained.pth| file | bytes | sha256 |
|---|---|---|
diffvax_immunizer.onnx |
36,640,862 | 44aa61ea8d6fbdc485bc897376cff41027e9885d5f68c3dd2e4bae8092cf3cd4 |
Opset 17, static input image float32 [1,3,512,512] (RGB, range [-1, 1]); output output float32 [1,3,512,512]. Upstream use: immunized = clamp(image + output * (1 - mask), -1, 1), where mask = 1 marks the region an editor would repaint.
torch.onnx.export from the upstream checkpoint (strict load). ONNX Runtime vs PyTorch on 5 different 512×512 inputs: max |Δ| ≤ 1.5e-6, mean |Δ| ≤ 1.6e-8. Browser (ONNX Runtime Web, WebGPU and WASM) parity vs PyTorch: max |Δ| ≤ 1.4e-7.
This is a research model. Running it does not establish that an image is protected; any protection effect must be measured for a given editing model and setting. In Veil it is labelled "Experimental. Protection is not established."