This project trains hyperspectral image classification models, evaluates the saved checkpoint, and optionally quantizes the model with HQQ or Quanto.
- Train a model first.
python train.py --model mvit --dataset UP- Evaluate the saved model and quantize it.
python eval.py --model mvit --dataset UP --quant_method hqq --nbits 8 --group_size 64If you want to compare the original and quantized model with CKA, enable the --cka flag:
python eval.py --model mvit --dataset UP --quant_method hqq --nbits 8 --group_size 64 --cka Truetrain.pycontains the training arguments.eval.pycontains evaluation, quantization, and comparison arguments.- For Indian Pines, the training split is capped at 10 samples per class in the code.