Views
No views yet


| Metric | HoloPASWIN (Ours) | U-Net | ASM (Dirty) | GS (100 iter) |
|---|---|---|---|---|
| Phase SSIM | 0.9862 | 0.9915 | 0.3038 | 0.3038 |
| Phase PSNR (dB) | 46.55 | 46.43 | 34.69 | 34.69 |
| Amp SSIM | 0.9625 | 0.9917 | 0.6128 | 0.6128 |
| Amp PSNR (dB) | 41.98 | 46.43 | 30.96 | 30.96 |
| Complex MSE | 0.000968 | 0.000608 | 0.0158 | 0.0158 |
| Inference Time | 13.68 ms | 23.14 ms | 2.40 ms | 95.84 ms |
1from huggingface_hub import hf_hub_download
2import torch
3
4# Load the weights
5model_path = hf_hub_download(repo_id="gokhankocmarli/holopaswin-v3", filename="pytorch_model.bin")
6
7# Import the model architecture provided in the same repo
8# (Ensure src/holopaswin is in your PYTHONPATH)
9from holopaswin.model import HoloPASWIN
10
11# Initialize model
12model = HoloPASWIN(
13 img_size=224,
14 in_chans=1,
15 embed_dim=96,
16 depths=[2, 2, 6, 2],
17 num_heads=[3, 6, 12, 24],
18 window_size=7,
19)
20
21# Load state dict
22model.load_state_dict(torch.load(model_path))
23model.eval()
24
25# Dummy input
26dummy_hologram = torch.randn(1, 1, 224, 224)
27with torch.no_grad():
28 clean_real_imag = model(dummy_hologram)1@misc{kocmarli2026holopaswin,
2 title={HoloPASWIN: Robust Inline Holographic Reconstruction via Physics-Aware Swin Transformers},
3 author={Gokhan Kocmarli},
4 year={2026},
5 eprint={2603.04926},
6 archivePrefix={arXiv},
7 primaryClass={eess.IV}
8}