Download panbase/config.json from JeonghyeokDo/PanBase: direct link, hf CLI and curl.
- Browser
- Download file 9.79 kB
-
https://huggingface.co/JeonghyeokDo/PanBase/resolve/main/panbase/config.json
- Command line
-
hf download hf://JeonghyeokDo/PanBase/panbase/config.json
-
curl -L -o config.json https://huggingface.co/JeonghyeokDo/PanBase/resolve/main/panbase/config.json
9.79 kB
| { | |
| "format": "panbase-release/1", | |
| "description": "PanBase: network-free, calibrated, observation-consistent physical base s of the HRMS image from the LRMS and PAN (paper: 'Change the Base, Change the Game: Rethinking Pan-sharpening'). s_pan keeps the PAN detail in PAN geometry, s_ms shifts it to the MS geometry by an input-estimated translation. Each is 3 detail forms (additive fs, multiplicative hpm, local-regression cbd) x 3 FFT bands = 9 gains per MS band, followed by the projection onto {x : D x = ms} and clipping to [0, max].", | |
| "code": "panbase Python package (Apache-2.0): PanBase.from_pretrained(<this folder>, dataset, geometry)", | |
| "licence": "CC BY-NC-SA 4.0 for the coefficients", | |
| "datasets": { | |
| "wv3": { | |
| "sensor": "WorldView-3", | |
| "bands": 8, | |
| "data_range": 2047.0, | |
| "coefficients": { | |
| "pan": "panbase_wv3_pan.json", | |
| "ms": "panbase_wv3_ms.json" | |
| }, | |
| "operator": { | |
| "kind": "pancollection-mtf", | |
| "gnyq": [ | |
| 0.325, | |
| 0.355, | |
| 0.36, | |
| 0.35, | |
| 0.365, | |
| 0.36, | |
| 0.335, | |
| 0.315 | |
| ], | |
| "ratio": 4, | |
| "offset": 2, | |
| "kernel_size": 41, | |
| "padding": "replicate" | |
| }, | |
| "note": "coefficients fitted on this dataset's training split", | |
| "reference_metrics": { | |
| "pan": { | |
| "rr": { | |
| "psnr": 32.278332, | |
| "ssim": 0.914654, | |
| "sam": 4.646043, | |
| "ergas": 4.067027, | |
| "q2n": 0.856128 | |
| }, | |
| "fr": { | |
| "hqnr": 0.963059, | |
| "d_lambda": 0.000489, | |
| "d_s": 0.03647 | |
| }, | |
| "protocol": { | |
| "rr": "PanCollection reduced_examples (20 images, 256 x 256): s clipped to [0, max], arrays / data range, border cut 30 px (rows/cols 29 .. H-31), per-image PSNR (peak 1), SSIM (11 x 11 Gaussian, sigma 1.5), SAM (degrees), ERGAS, Q2n (32 x 32 blocks), mean over images", | |
| "fr": "PanCollection full_examples (20 images, 512 x 512): HQNR / D_lambda (Khan) / D_s of the Vivone pansharpening toolbox (Python port), block 32, sensor MTF WV3, against the PanCollection lms; mean over images" | |
| }, | |
| "paper_table4": { | |
| "psnr": 32.28, | |
| "sam": 4.65, | |
| "hqnr": 0.963 | |
| } | |
| }, | |
| "ms": { | |
| "rr": { | |
| "psnr": 33.884369, | |
| "ssim": 0.940205, | |
| "sam": 4.621151, | |
| "ergas": 3.299003, | |
| "q2n": 0.883028 | |
| }, | |
| "fr": { | |
| "hqnr": 0.915368, | |
| "d_lambda": 0.00063, | |
| "d_s": 0.084068 | |
| }, | |
| "protocol": { | |
| "rr": "PanCollection reduced_examples (20 images, 256 x 256): s clipped to [0, max], arrays / data range, border cut 30 px (rows/cols 29 .. H-31), per-image PSNR (peak 1), SSIM (11 x 11 Gaussian, sigma 1.5), SAM (degrees), ERGAS, Q2n (32 x 32 blocks), mean over images", | |
| "fr": "PanCollection full_examples (20 images, 512 x 512): HQNR / D_lambda (Khan) / D_s of the Vivone pansharpening toolbox (Python port), block 32, sensor MTF WV3, against the PanCollection lms; mean over images" | |
| } | |
| } | |
| } | |
| }, | |
| "qb": { | |
| "sensor": "QuickBird", | |
| "bands": 4, | |
| "data_range": 2047.0, | |
| "coefficients": { | |
| "pan": "panbase_qb_pan.json", | |
| "ms": "panbase_qb_ms.json" | |
| }, | |
| "operator": { | |
| "kind": "pancollection-mtf", | |
| "gnyq": [ | |
| 0.34, | |
| 0.32, | |
| 0.3, | |
| 0.22 | |
| ], | |
| "ratio": 4, | |
| "offset": 2, | |
| "kernel_size": 41, | |
| "padding": "replicate" | |
| }, | |
| "note": "coefficients fitted on this dataset's training split", | |
| "reference_metrics": { | |
| "pan": { | |
| "rr": { | |
| "psnr": 33.098473, | |
| "ssim": 0.890864, | |
| "sam": 6.556668, | |
| "ergas": 6.525907, | |
| "q2n": 0.870657 | |
| }, | |
| "fr": { | |
| "hqnr": 0.94439, | |
| "d_lambda": 0.003267, | |
| "d_s": 0.052532 | |
| }, | |
| "protocol": { | |
| "rr": "PanCollection reduced_examples (20 images, 256 x 256): s clipped to [0, max], arrays / data range, border cut 30 px (rows/cols 29 .. H-31), per-image PSNR (peak 1), SSIM (11 x 11 Gaussian, sigma 1.5), SAM (degrees), ERGAS, Q2n (32 x 32 blocks), mean over images", | |
| "fr": "PanCollection full_examples (20 images, 512 x 512): HQNR / D_lambda (Khan) / D_s of the Vivone pansharpening toolbox (Python port), block 32, sensor MTF QB, against the PanCollection lms; mean over images" | |
| }, | |
| "paper_table4": { | |
| "psnr": 33.1, | |
| "sam": 6.56, | |
| "hqnr": 0.944 | |
| } | |
| }, | |
| "ms": { | |
| "rr": { | |
| "psnr": 36.050381, | |
| "ssim": 0.931059, | |
| "sam": 6.106718, | |
| "ergas": 4.625934, | |
| "q2n": 0.912986 | |
| }, | |
| "fr": { | |
| "hqnr": 0.702724, | |
| "d_lambda": 0.002797, | |
| "d_s": 0.295299 | |
| }, | |
| "protocol": { | |
| "rr": "PanCollection reduced_examples (20 images, 256 x 256): s clipped to [0, max], arrays / data range, border cut 30 px (rows/cols 29 .. H-31), per-image PSNR (peak 1), SSIM (11 x 11 Gaussian, sigma 1.5), SAM (degrees), ERGAS, Q2n (32 x 32 blocks), mean over images", | |
| "fr": "PanCollection full_examples (20 images, 512 x 512): HQNR / D_lambda (Khan) / D_s of the Vivone pansharpening toolbox (Python port), block 32, sensor MTF QB, against the PanCollection lms; mean over images" | |
| } | |
| } | |
| } | |
| }, | |
| "gf2": { | |
| "sensor": "GaoFen-2", | |
| "bands": 4, | |
| "data_range": 1023.0, | |
| "coefficients": { | |
| "pan": "panbase_gf2_pan.json", | |
| "ms": "panbase_gf2_ms.json" | |
| }, | |
| "operator": { | |
| "kind": "pancollection-mtf", | |
| "gnyq": [ | |
| 0.3, | |
| 0.3, | |
| 0.3, | |
| 0.3 | |
| ], | |
| "ratio": 4, | |
| "offset": 2, | |
| "kernel_size": 41, | |
| "padding": "replicate" | |
| }, | |
| "note": "coefficients fitted on this dataset's training split", | |
| "reference_metrics": { | |
| "pan": { | |
| "rr": { | |
| "psnr": 38.305305, | |
| "ssim": 0.944586, | |
| "sam": 1.207553, | |
| "ergas": 1.167562, | |
| "q2n": 0.950341 | |
| }, | |
| "fr": { | |
| "hqnr": 0.964996, | |
| "d_lambda": 0.0, | |
| "d_s": 0.035004 | |
| }, | |
| "protocol": { | |
| "rr": "PanCollection reduced_examples (20 images, 256 x 256): s clipped to [0, max], arrays / data range, border cut 30 px (rows/cols 29 .. H-31), per-image PSNR (peak 1), SSIM (11 x 11 Gaussian, sigma 1.5), SAM (degrees), ERGAS, Q2n (32 x 32 blocks), mean over images", | |
| "fr": "PanCollection full_examples (20 images, 512 x 512): HQNR / D_lambda (Khan) / D_s of the Vivone pansharpening toolbox (Python port), block 32, sensor MTF none (GNyq 0.3), against the PanCollection lms; mean over images" | |
| }, | |
| "paper_table4": { | |
| "psnr": 38.31, | |
| "sam": 1.21, | |
| "hqnr": 0.965 | |
| } | |
| }, | |
| "ms": { | |
| "rr": { | |
| "psnr": 39.860611, | |
| "ssim": 0.958391, | |
| "sam": 1.086458, | |
| "ergas": 0.939427, | |
| "q2n": 0.960546 | |
| }, | |
| "fr": { | |
| "hqnr": 0.970646, | |
| "d_lambda": 0.0, | |
| "d_s": 0.029354 | |
| }, | |
| "protocol": { | |
| "rr": "PanCollection reduced_examples (20 images, 256 x 256): s clipped to [0, max], arrays / data range, border cut 30 px (rows/cols 29 .. H-31), per-image PSNR (peak 1), SSIM (11 x 11 Gaussian, sigma 1.5), SAM (degrees), ERGAS, Q2n (32 x 32 blocks), mean over images", | |
| "fr": "PanCollection full_examples (20 images, 512 x 512): HQNR / D_lambda (Khan) / D_s of the Vivone pansharpening toolbox (Python port), block 32, sensor MTF none (GNyq 0.3), against the PanCollection lms; mean over images" | |
| } | |
| } | |
| } | |
| }, | |
| "wv2": { | |
| "sensor": "WorldView-2", | |
| "bands": 8, | |
| "data_range": 2047.0, | |
| "coefficients": { | |
| "pan": "panbase_wv3_pan.json", | |
| "ms": "panbase_wv3_ms.json" | |
| }, | |
| "operator": { | |
| "kind": "pancollection-mtf", | |
| "gnyq": [ | |
| 0.35, | |
| 0.35, | |
| 0.35, | |
| 0.35, | |
| 0.35, | |
| 0.35, | |
| 0.35, | |
| 0.27 | |
| ], | |
| "ratio": 4, | |
| "offset": 2, | |
| "kernel_size": 41, | |
| "padding": "replicate" | |
| }, | |
| "note": "no training split: zero-shot with the WV3 coefficients and the WV2 operator (as in the paper)", | |
| "reference_metrics": { | |
| "pan": { | |
| "rr": { | |
| "psnr": 30.123861, | |
| "ssim": 0.869052, | |
| "sam": 5.487125, | |
| "ergas": 3.76669, | |
| "q2n": 0.87407 | |
| }, | |
| "fr": { | |
| "hqnr": 0.959081, | |
| "d_lambda": 0.000532, | |
| "d_s": 0.040408 | |
| }, | |
| "protocol": { | |
| "rr": "PanCollection reduced_examples (20 images, 256 x 256): s clipped to [0, max], arrays / data range, border cut 30 px (rows/cols 29 .. H-31), per-image PSNR (peak 1), SSIM (11 x 11 Gaussian, sigma 1.5), SAM (degrees), ERGAS, Q2n (32 x 32 blocks), mean over images", | |
| "fr": "PanCollection full_examples (20 images, 512 x 512): HQNR / D_lambda (Khan) / D_s of the Vivone pansharpening toolbox (Python port), block 32, sensor MTF WV3, against the PanCollection lms; mean over images" | |
| }, | |
| "paper_table4": { | |
| "psnr": 30.12, | |
| "sam": 5.49, | |
| "hqnr": 0.959 | |
| } | |
| }, | |
| "ms": { | |
| "rr": { | |
| "psnr": 30.343098, | |
| "ssim": 0.874705, | |
| "sam": 5.479709, | |
| "ergas": 3.652903, | |
| "q2n": 0.878425 | |
| }, | |
| "fr": { | |
| "hqnr": 0.947776, | |
| "d_lambda": 0.00054, | |
| "d_s": 0.051715 | |
| }, | |
| "protocol": { | |
| "rr": "PanCollection reduced_examples (20 images, 256 x 256): s clipped to [0, max], arrays / data range, border cut 30 px (rows/cols 29 .. H-31), per-image PSNR (peak 1), SSIM (11 x 11 Gaussian, sigma 1.5), SAM (degrees), ERGAS, Q2n (32 x 32 blocks), mean over images", | |
| "fr": "PanCollection full_examples (20 images, 512 x 512): HQNR / D_lambda (Khan) / D_s of the Vivone pansharpening toolbox (Python port), block 32, sensor MTF WV3, against the PanCollection lms; mean over images" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "gnyq_source": "Nyquist gains of the MS MTFs: published sensor values used by PanCollection's degradation (WV3, QB, WV2, as tabulated in the Vivone et al. pansharpening toolbox) and the customary 0.3 for GaoFen-2; the MTF kernel design is in panbase/mtf.py", | |
| "inputs": "ms (N,C,h,w), pan (N,1,H,W), lms (N,C,H,W) = PanCollection h5 'ms', 'pan', 'lms' (H = 4h), either raw (DN, max_value = data_range) or divided by data_range (max_value = 1)" | |
| } |