Point the model card at the SMILE Lab release.
Browse files
README.md
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# PaleVision
|
| 2 |
|
| 3 |
Official implementation of **Paleoinspired Vision: From Exploring Colour Vision Evolution to Inspiring Camera Design**, accepted at **NeurIPS 2026**.
|
| 4 |
|
| 5 |
-
[Project website](https://luyijie-research.github.io/PaleVision/) 路 [Code](https://github.com/luyijie-research/PaleVision) 路 [Weights](https://huggingface.co/
|
| 6 |
|
| 7 |
PaleVision models opsin spectral responses with learnable evolutionary visual perception layers (EVPL) and trains semantic segmentation on hyperspectral imagery.
|
| 8 |
|
|
@@ -21,12 +31,13 @@ work_dir/ logs and checkpoints (not shipped)
|
|
| 21 |
## Install
|
| 22 |
|
| 23 |
```bash
|
| 24 |
-
conda create -
|
| 25 |
conda activate palevision
|
| 26 |
-
pip install -r requirements.txt
|
| 27 |
```
|
| 28 |
|
| 29 |
-
Install a CUDA build of PyTorch that matches your driver
|
|
|
|
|
|
|
| 30 |
|
| 31 |
## Data layout (Mars example)
|
| 32 |
|
|
@@ -110,7 +121,21 @@ head.load_state_dict(ckpt["head"])
|
|
| 110 |
evpl.load_state_dict(ckpt["evpl"])
|
| 111 |
```
|
| 112 |
|
| 113 |
-
The weight files sit next to this code under `weights/` in the release folder. Git ignores `*.pth` because the largest file is above GitHub's file size limit. Download the same files from [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
## Notes
|
| 116 |
|
|
@@ -126,6 +151,8 @@ If you use PaleVision in your research, please cite our NeurIPS 2026 paper:
|
|
| 126 |
author = {Lu, Yijie and Zong, Zhimin and Zhang, Junjie and Su, Shenghan and Zhao, Zeyun and Cui, Ziteng and Pu, Yan and Lu, Jing and Kojima, Daisuke and Gu, Lin and Fang, Ruogu},
|
| 127 |
booktitle = {Advances in Neural Information Processing Systems},
|
| 128 |
year = {2026},
|
| 129 |
-
|
|
|
|
|
|
|
| 130 |
}
|
| 131 |
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: pytorch
|
| 4 |
+
pipeline_tag: image-segmentation
|
| 5 |
+
tags:
|
| 6 |
+
- hyperspectral
|
| 7 |
+
- semantic-segmentation
|
| 8 |
+
- opsin
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
# PaleVision
|
| 12 |
|
| 13 |
Official implementation of **Paleoinspired Vision: From Exploring Colour Vision Evolution to Inspiring Camera Design**, accepted at **NeurIPS 2026**.
|
| 14 |
|
| 15 |
+
[arXiv](https://arxiv.org/abs/2412.19439) 路 [Project website](https://luyijie-research.github.io/PaleVision/) 路 [Code](https://github.com/luyijie-research/PaleVision) 路 [Weights](https://huggingface.co/smilelab/PaleVision)
|
| 16 |
|
| 17 |
PaleVision models opsin spectral responses with learnable evolutionary visual perception layers (EVPL) and trains semantic segmentation on hyperspectral imagery.
|
| 18 |
|
|
|
|
| 31 |
## Install
|
| 32 |
|
| 33 |
```bash
|
| 34 |
+
conda env create -f environment.yml
|
| 35 |
conda activate palevision
|
|
|
|
| 36 |
```
|
| 37 |
|
| 38 |
+
`environment.yml` installs Python 3.10 and the packages in `requirements.txt`. The released training run used PyTorch 2.6.0 with CUDA 12.6. Install a CUDA build of PyTorch that matches your driver before `mmcv` if the default wheel does not.
|
| 39 |
+
|
| 40 |
+
Hardware used for the released runs: an NVIDIA GPU with enough memory for MiT-B0 through Twins-SVT-Small at the resolutions in `configs/`. CPU-only loading of the checkpoints does not need that GPU.
|
| 41 |
|
| 42 |
## Data layout (Mars example)
|
| 43 |
|
|
|
|
| 121 |
evpl.load_state_dict(ckpt["evpl"])
|
| 122 |
```
|
| 123 |
|
| 124 |
+
The weight files sit next to this code under `weights/` in the release folder. Git ignores `*.pth` because the largest file is above GitHub's file size limit. Download the same files from [smilelab/PaleVision](https://huggingface.co/smilelab/PaleVision). Code for this release is at [luyijie-research/PaleVision](https://github.com/luyijie-research/PaleVision).
|
| 125 |
+
|
| 126 |
+
## Model card
|
| 127 |
+
|
| 128 |
+
PaleVision is a research model that maps a hyperspectral image through an opsin layer into a segmentation or counting network. The released files are the best finished checkpoints for each reported task. They contain module parameters only.
|
| 129 |
+
|
| 130 |
+
**Intended use.** Reproduce the paper's segmentation, detection, counting, and Mars spectral-filter experiments, and inspect the learned opsin peak wavelengths.
|
| 131 |
+
|
| 132 |
+
**Limitations.** Checkpoints are tied to the datasets and class counts used in training. They are not a general medical or navigation system. The Mars file is the finished epoch-1000 spectral EVPL; that run did not report a segmentation mIoU. LIB-HSI was assembled from the separately saved best backbone, head, and EVPL of the best finished run.
|
| 133 |
+
|
| 134 |
+
**Training data.** MODID, MHSI, LIB-HSI, MinnApple, and the Mars MSL hyperspectral set. Place them under `datasets/` using the layout in this README and the loaders in `dataloader/`. The datasets themselves are not redistributed.
|
| 135 |
+
|
| 136 |
+
**Evaluation.** Scores for the released weights are in the table above. Training hyperparameters live in `configs/`. Entry points default to random seed 42 (`--seed 42`).
|
| 137 |
+
|
| 138 |
+
**Inference.** Load a segmentation checkpoint with the snippet above, or run the matching entry point (`modid_exp.py`, `mhsi_exp.py`, `lib_hsi_exp_v2.py`, `minneapple_exp.py`, `encoder_swap_exp.py`, `minneapple_det_count_exp.py`, `mars_exp.py`). Dataset paths are arguments or `datasets/<name>`, not machine-specific directories.
|
| 139 |
|
| 140 |
## Notes
|
| 141 |
|
|
|
|
| 151 |
author = {Lu, Yijie and Zong, Zhimin and Zhang, Junjie and Su, Shenghan and Zhao, Zeyun and Cui, Ziteng and Pu, Yan and Lu, Jing and Kojima, Daisuke and Gu, Lin and Fang, Ruogu},
|
| 152 |
booktitle = {Advances in Neural Information Processing Systems},
|
| 153 |
year = {2026},
|
| 154 |
+
eprint = {2412.19439},
|
| 155 |
+
archivePrefix = {arXiv},
|
| 156 |
+
url = {https://arxiv.org/abs/2412.19439}
|
| 157 |
}
|
| 158 |
```
|