{
  "compatibility_note": "Exported models use TorchScript archive version 4 and standard ATen operators available in LibTorch 2.0; verify the native JDLL engine with Test JDLL in Fiji.",
  "custom_torchvision_ops_removed": true,
  "exported_with_pytorch": "2.10.0+cpu (SF/classifier); FA pair re-exported with 2.6.0+cpu on 2026-09-30",
  "format": "TorchScript",
  "intended_runtime": "Fiji JDLL / LibTorch",
  "java_runtime_target": "Java 8 or newer",
  "jdll_requested_engine": "torchscript 2.0.0",
  "models": [
    {
      "bytes": 30485338,
      "file": "fa_enhancement_jdll.pt",
      "flat_rebuild_error": null,
      "input_shape_example": [
        1,
        1,
        64,
        80
      ],
      "name": "FA enhancement",
      "operator_count": 18,
      "output": "[B,1,H,W] enhanced image",
      "output_shape_example": [
        1,
        1,
        64,
        80
      ],
      "sha256": "e5d21dd37b09702395e8aab62dead656c8bf36ca62112f81db2a9ec98cefd20b",
      "validation": [
        {
          "note": "export vs eager PyTorch, shapes 64x80, 80x96, 528x704",
          "max_abs_error": 1e-05
        }
      ],
      "source_checkpoint": "F:/TFM/Pipelines/V2_Focal_Adhesions/V2_Focal_Adhesions/FA_S1_Enhancement_Checkpoints_Poisson50_TransferLearned/Step_1_FA_Enhancement_Best_Poisson50_TransferLearned.pth",
      "source_checkpoint_epoch": 26,
      "training_family": "degradation-aware Poisson50 (50% Poisson-Gaussian, 1/6 each PSF blur, Gaussian defocus, clean)",
      "deformable_conv": null
    },
    {
      "bytes": 10110519,
      "file": "fa_segmentation_jdll.pt",
      "flat_rebuild_error": 0.0,
      "input_shape_example": [
        1,
        2,
        64,
        80
      ],
      "name": "FA segmentation",
      "operator_count": 26,
      "output": "[B,1,H,W] foreground logits",
      "output_shape_example": [
        1,
        1,
        64,
        80
      ],
      "sha256": "c71222910385a4add9d74b531e7cba22056885dd2cafc312cd920a69bfa22007",
      "validation": [
        {
          "note": "export vs eager PyTorch, shapes 64x80, 80x96, 528x704",
          "max_abs_error": 1e-05
        }
      ],
      "source_checkpoint": "F:/TFM/Pipelines/V2_Focal_Adhesions/V2_Focal_Adhesions/FA_S2_Graph_Checkpoints_failures_Poisson50_TransferLearned_StableLR/FA_Graph_raw_enhanced_failures_Poisson50_TransferLearned_best.pth",
      "source_checkpoint_epoch": 56,
      "training_family": "degradation-aware Poisson50 (50% Poisson-Gaussian, 1/6 each PSF blur, Gaussian defocus, clean)",
      "deformable_conv": "torchvision deform_conv2d replaced by grid_sample + conv2d (max|diff| 1.3e-5)"
    },
    {
      "bytes": 9797388,
      "file": "sf_mask_tangent_jdll.pt",
      "flat_rebuild_error": 0.0,
      "input_shape_example": [
        1,
        1,
        64,
        80
      ],
      "name": "SF mask and tangent",
      "operator_count": 29,
      "output": "[B,3,H,W]: mask logit, cos(2theta), sin(2theta)",
      "output_shape_example": [
        1,
        3,
        64,
        80
      ],
      "runtime_role": "SF semantic mask plus undirected tangent field",
      "sha256": "bce87060cf57898de04b2ec0a751970fd93278a83f5f4efd0bfed60cf9f6568a",
      "source_checkpoint_family": "actin_tangent_degraded_best.pth",
      "source_torchscript": "actin_tangent_degraded_best_torchscript.pt",
      "validation": [
        {
          "input_shape": [
            1,
            1,
            64,
            80
          ],
          "max_abs_error": 9.000301361083984e-06,
          "mean_abs_error": 2.2286103273927438e-07,
          "output_shape": [
            1,
            3,
            64,
            80
          ]
        },
        {
          "input_shape": [
            1,
            1,
            80,
            96
          ],
          "max_abs_error": 2.9802322387695312e-05,
          "mean_abs_error": 2.536293948196544e-07,
          "output_shape": [
            1,
            3,
            80,
            96
          ]
        }
      ]
    },
    {
      "bytes": 9768292,
      "file": "filament_classifier_jdll.pt",
      "flat_rebuild_error": 0.0,
      "input_shape_example": [
        1,
        3,
        64,
        80
      ],
      "name": "Filament classifier",
      "operator_count": 38,
      "output": "[B,4,H,W]: background, dorsal, ventral, peripheral logits",
      "output_shape_example": [
        1,
        4,
        64,
        80
      ],
      "sha256": "b9899c230fe7d3f616760d9aea582b5d9fe1890bf40db15f177fa476f4f652e6",
      "validation": [
        {
          "input_shape": [
            1,
            3,
            64,
            80
          ],
          "max_abs_error": 3.0517578125e-05,
          "mean_abs_error": 1.568497850712447e-06,
          "output_shape": [
            1,
            4,
            64,
            80
          ]
        },
        {
          "input_shape": [
            1,
            3,
            80,
            96
          ],
          "max_abs_error": 2.8133392333984375e-05,
          "mean_abs_error": 1.7121311657319893e-06,
          "output_shape": [
            1,
            4,
            80,
            96
          ]
        }
      ]
    }
  ],
  "notes": "Deformable convolutions were converted to an equivalent grid_sample + conv2d graph using only standard aten operators.",
  "fa_model_family": "Poisson50 degradation-aware (replaces clean V2 pair, backed up in models/FilAdhExact_clean_V2_backup)"
}