Update model card
Browse files123456789101112131415161718192021222 unmodified lines25262728293031---tags:- hirise- mars- image-reconstruction---# HiPredictHiPredict reconstructs the HiRISE RED4 channel using IR10, BG12, neighbouringRED3/RED5 context, and observation metadata. This release contains the full-datamodel from `archive_2026-05-17`.Code and installation: https://github.com/ardan-S/HiPredictResearch dataset: https://huggingface.co/datasets/ardan-S/HiPredict```bashexport HIPREDICT_HF_REPO="ardan-S/HiPredict"``````pythonfrom hipredict import get_model, HiPredict2 unmodified linespredictor = HiPredict(model, config, device="cpu")```For reproducibility, pass a release commit or tag as `revision=` to `get_model`.Keep `model.pt`, `meta_scalar.joblib`, `config.yaml`, and `global_stats.json`together. The fixed global statistics supply the default normalization.`provenance.json` records the source checkpoint and SHA-256 hashes.12345678910111213141516171819202122232425262728293031323334353637383940412 unmodified lines4445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114---license: mitpipeline_tag: image-to-imagetags:- hirise- mars- planetary-science- image-reconstruction- pytorchdatasets:- ardan-S/HiPredict---# HiPredict**Paper:** preprint coming soon · **Code:** [ardan-S/HiPredict](https://github.com/ardan-S/HiPredict) · **Dataset:** [ardan-S/HiPredict](https://huggingface.co/datasets/ardan-S/HiPredict)HiPredict reconstructs the RED4 band of the HiRISE camera on the MarsReconnaissance Orbiter. The RED4 detector has partially failed, and manyobservations have no usable RED4 band as a result. HiPredict predicts RED4 forthose observations from the instrument's other channels.## ModelA U-Net (2,861,331 parameters) with a brightness head. For each RED4 location it uses:- the registered IR10 and BG12 colour bands, which image the same ground as RED4;- 32-pixel-wide context strips from the adjacent edges of the RED3 and RED5 detectors;- nine observation metadata values: TDI, incidence and phase angles, local time,solar longitude and distance, orbit number, and two instrument temperatures.The U-Net reconstructs spatial detail, and the brightness head sets the locallevel from the neighbouring RED context. Inputs are normalised with fixeddataset-wide statistics, and predictions are returned in the same calibratedunits as the processed input cubes.## UsageInstall the code from [GitHub](https://github.com/ardan-S/HiPredict), then:```pythonfrom hipredict import get_model, HiPredict2 unmodified linespredictor = HiPredict(model, config, device="cpu")````get_model` downloads this repository on first use, pinned to the revision theinstalled code was validated against. To download, preprocess and predict oneobservation:```bashuv run -m hipredict.download --obs ESP_028693_1535 --workers 2uv run -m hipredict.process --obs ESP_028693_1535 --workers 2uv run -m hipredict.inference.predict --obs ESP_028693_1535 --model hipredict```Preprocessing needs a separate HiPROC + ISIS environment; see the coderepository's `docs/preprocessing.md`.## Training dataHiPredict was trained on the [HiPredict dataset](https://huggingface.co/datasets/ardan-S/HiPredict).Its patch sets are split chronologically into 70% training (81,717 sets), 10%validation and 20% test. The observations were processed with HiPROC 0.11.0 andISIS 9.0.0.## PerformanceOn the held-out test split, compared with SYN4, a baseline that scales IR10 tothe brightness of RED5 (↓ lower is better, ↑ higher is better):| Model | NMAE mean (%) ↓ | NMAE median (%) ↓ | SSIM mean ↑ | SSIM median ↑ | PWT 1% mean (%) ↑ | PWT 1% median (%) ↑ || --- | ---: | ---: | ---: | ---: | ---: | ---: || SYN4 | 3.118 | 1.545 | 0.663 | 0.722 | 11.069 | 9.148 || **HiPredict** | **1.110** | **0.943** | **0.725** | **0.788** | **20.844** | **18.801** |- **NMAE**: normalised mean absolute error, the mean absolute error as a percentage of the image's mean brightness.- **SSIM**: structural similarity index.- **PWT 1%**: percentage of pixels whose absolute error is within 1% of the image's dynamic range.## Limitations- Inputs must be processed the same way as the training data, with the pipelinein the code repository (HiPROC 0.11.0 and ISIS 9.0.0). Cubes from otherpipelines or versions can differ radiometrically.- Only observations whose five detectors use binning 1 or 2 and TDI 64 or 128,with matching binning across the RED detectors and across the colourdetectors, are supported.- On the simplest images, where SYN4's error is below about 1.5%, SYN4 is asgood as HiPredict or slightly better.- Much of the remaining error is pixel-level noise, likely from binningartefacts and genuine instrument noise in the true RED4, which the model isnot expected to reproduce.## Files| File | Contents || --- | --- || `model.pt` | Model weights || `meta_scalar.joblib` | Metadata scaler fitted on the training split || `config.yaml` | Model and training configuration || `global_stats.json` | Dataset-wide normalisation statistics || `provenance.json` | Source checkpoint and SHA-256 checksums, verified when the model is loaded |Keep these files together.## Licence and creditThe model and code are released under the MIT License. HiRISE data:NASA/JPL/University of Arizona.## CitationA citation will be added here when the preprint is released.
README.md+95-12