Phase008 ยท reproducible dual-view preprocessing contract

Install-less browser radiology AI demo

Local X-ray lung segmentation research demo. Image and mask pixels stay in this browser. Phase008 prepares reproducible full-chest and lung-focused tensors with aspect-preserving letterboxing; no disease model runs yet.

Research/demo boundary

This prototype is not for diagnosis, not a medical device, and not for patient-care decisions.

Phase008 runs local lung segmentation, derives reproducible dual-view preprocessing contract, and can send tiny adapter weights/metrics only to the local coordinator. It does not recognize disease, upload pixels, or train the full U-Net.

Local model, image, and optional local mask

Waiting for model and image.

Research input-quality gate

Deterministic engineering checks only. Projection is selected by the user and is not inferred. Passing does not establish clinical image quality.

gate result
not assessed
source dimensions
not available
grayscale mean
not available
grayscale std
not available
dark clip fraction
not available
bright clip fraction
not available
mask border contact
not available

Warnings: Load an image to run local deterministic checks.

Input preview

Preview only. The model input is internally resized to 256ร—256.

Mask / adapter overlay

Overlay from local ONNX output, or adapter-calibrated output after local adapter training.

Lung-focused classifier preview

Derived locally from the cleaned segmentation mask. This is preprocessing only; no disease classifier is loaded or executed.

Classifier preprocessing evidence

Both pathways are preserved. Images use bilinear resize with aspect-preserving letterbox padding. Masks use nearest-neighbor geometry only. Pixels remain local.

preprocessing status
waiting for segmentation
contract version
radiology-dual-view-v2
lung bbox
not available
padded bbox
not available
crop area fraction
not available
full-view letterbox
not available
crop letterbox
not available
classifier tensor size
256ร—256ร—1 NHWC
image interpolation
bilinear
mask interpolation
nearest-neighbor
disease inference
false

Postprocessing

0.75
mask_area_fraction
not available yet
runtime
onnxruntime-web
local_only
true
raw_upload
false

Tiny adapter training

Trains only q = sigmoid(bias + scale_p*p + weight_x*x + weight_y*y + weight_r*r) over the frozen ONNX probability map. This is not full U-Net backprop.

mask loaded
false
truth_area_fraction
not available
adapter dice before/after
not trained
adapter loss before/after
not trained
Open coordinator
worker_id
not joined
coordinator transport
BroadcastChannel
last send status
not sent

Evidence JSON