Commit 07a655b
committed
feat: Add ViT models, HSI Hang2020, and prepare for DeepForest integration
BREAKING CHANGES:
- Default RGB image size changed from 128x128 to 224x224
- Default RGB normalization changed from 0_1 to imagenet
For backward compatibility, explicitly pass rgb_size=(128, 128) and rgb_norm_method='0_1'
New Features:
- Add Vision Transformer (ViT) support: vit_b_16, vit_b_32, vit_l_16, vit_l_32
- Implement Hang2020 dual-pathway attention architecture for HSI classification
- Add model_variant parameter to training script for architecture selection
- Add preliminary DeepForest CropModel compatibility methods (WIP):
* normalize() method for transforms
* label_dict persistence in checkpoints
* set_label_dict() and get_label_dict() helpers
- Add HuggingFace upload script (experimental, needs further testing)
- Add multi-output training support with auxiliary losses (Hang2020)
Improvements:
- Better experiment naming to prevent collisions in SLURM array jobs
- Enhanced test logging with detailed statistics
- Add rgb_size and rgb_norm_method CLI arguments for flexibility
- Update README with project roadmap
Note: Full DeepForest CropModel integration and HuggingFace loading
are still in progress and may require additional work.
Files changed: 10 files
- Added: scripts/upload_to_huggingface.py, sample_plots/test_PSMEM_douglas_fir.png
- Modified: train.py, rgb_models.py, hsi_models.py, lightning_modules.py,
dataset.py, datamodule.py, README.md, visualization.ipynb1 parent 7f2f046 commit 07a655b
10 files changed
Lines changed: 1128 additions & 113 deletions
File tree
- examples
- neon_tree_classification
- core
- models
- notebooks
- sample_plots
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
184 | 190 | | |
185 | 191 | | |
186 | 192 | | |
| |||
237 | 243 | | |
238 | 244 | | |
239 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
240 | 263 | | |
241 | 264 | | |
242 | 265 | | |
| |||
293 | 316 | | |
294 | 317 | | |
295 | 318 | | |
| 319 | + | |
296 | 320 | | |
297 | | - | |
| 321 | + | |
| 322 | + | |
298 | 323 | | |
299 | 324 | | |
300 | 325 | | |
| |||
324 | 349 | | |
325 | 350 | | |
326 | 351 | | |
| 352 | + | |
| 353 | + | |
327 | 354 | | |
328 | 355 | | |
329 | 356 | | |
| |||
381 | 408 | | |
382 | 409 | | |
383 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
384 | 416 | | |
385 | 417 | | |
386 | 418 | | |
| |||
389 | 421 | | |
390 | 422 | | |
391 | 423 | | |
| 424 | + | |
| 425 | + | |
392 | 426 | | |
393 | 427 | | |
394 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments