Downloads · 30 days
0
0% of all-time downloads
mhmdjouni/hsifn-checkpoints
hsifn-checkpoints is a machine learning model from mhmdjouni. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as unknown.
This repository mirrors the released HSIFN checkpoint associated with Hyperspectral Image Super Resolution with Real Unaligned RGB Guidance (HSI-RefSR) by Lai, Fu, and Zhang.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
12
Public
Repo size
186 MB
Likes
0
Public
Click a slice to open those files.
.pth186 MB · 100%
From the Hugging Face model README
This repository mirrors the released HSIFN checkpoint associated with Hyperspectral Image Super Resolution with Real Unaligned RGB Guidance (HSI-RefSR) by Lai, Fu, and Zhang.
The original checkpoint was obtained from the release provided by the original authors. This Hugging Face repository is maintained to provide stable and convenient programmatic access to the checkpoint.
sf4/
ckpt/
model-best.pth
model-best.original-torchlight.pth
model-best.original-torchlight.pth is the untouched checkpoint distributed by the original authors;model-best.pth is a Torchlight-free re-serialization intended for ordinary modern PyTorch loading.All scientific credit for the model and original checkpoint goes to the original authors.
The original released checkpoint contains serialized historical Torchlight training metadata.
The HSIFN model tensors themselves do not depend on Torchlight, but this metadata causes the original artifact to require the old Torchlight package during deserialization.
The canonical model-best.pth therefore preserves the released model state:
checkpoint["module"]["model"]
while removing the unused Torchlight serialization dependency.
The original and sanitized model states were verified to have:
torch.equal.The sanitized checkpoint was also strict-loaded into the released HSIFN / CrossNetHSI architecture.
The repository includes sanitize_torchlight_checkpoint.py.
python sanitize_torchlight_checkpoint.py \
sf4/ckpt/model-best.original-torchlight.pth \
sf4/ckpt/model-best.pth
The script verifies tensor-for-tensor equality after serialization.
The canonical checkpoint can be loaded using ordinary PyTorch:
checkpoint = torch.load("sf4/ckpt/model-best.pth", map_location="cpu")
state_dict = checkpoint["module"]["model"]
model.load_state_dict(state_dict, strict=True)
No Torchlight installation or compatibility loader is required for the canonical checkpoint.
This repository originally served as a mirror for convenient automated downloads and now additionally provides a Torchlight-free checkpoint copy while retaining the untouched original artifact.
All scientific credit goes to the original authors.