AutoCDAScorer_Models: trained models
These are the trained models from AutoCDAScorer_Models. The classifiers score cell death areas (CDAs) in UV agroinfiltration images of Nicotiana benthamiana leaves. Each takes a 64 × 64 × 3 crop of one CDA and returns softmax probabilities for the cell death severity scores 0 to 6.
The folders mirror the GitHub repository, so downloading this repository into a clone of it puts every model where the code expects it:
hf download joshuandwilliams/AutoCDAScorer_Models --local-dir AutoCDAScorer_Models
For scoring your own images, use the R package AutoCDAScorer. Its 16 CNNs are in joshuandwilliams/AutoCDAScorer.
Contents
| Folder | How the models were made | Models |
|---|---|---|
models/01_Base_CNN_RandomSearch/01_Categorical_Loss | CNNs trained on crops from the centre-of-overlap bounding box | 100 best of 8,640 |
models/03_Medoid_CNN_RandomSearch/01_Categorical_Loss | CNNs trained on crops from the medoid bounding box | 100 best of 8,640 |
models/04_Medoid_ViT_RandomSearch/01_Categorical_Loss | Vision transformers (ViTs) trained on medoid crops | 100 best of 2,592 |
models/05_Medoid_CNN_SoftLabels/01_Categorical_Loss | As 03, but trained on the three raters' score distribution instead of their median | 100 best of 8,640 |
models/06_Medoid_CGAN/01_Conditional | Conditional GAN (cGAN) generators trained on the medoid training split | all 64 |
models/07_Medoid_CNN_GeomAug/01_MatchLargestClass | As 03, with each class topped up to the size of the largest by geometric augmentation | 100 best of 8,640 |
models/08_Medoid_CNN_CGANAug/01_MatchLargestClass | As 07, but topped up with images from a cGAN generator | 100 best of 8,640 |
Each hyperparameter search saved only its 100 best models. Each classifier is
in results/<accuracy>_<model_id>/model.keras. <accuracy> is its mean
cross-validation accuracy. <model_id> is its row in the search's
random_search_results.csv, which also gives its hyperparameters. For 01,
82 rows are in the parts/ files beside that table instead.
Each cGAN generator is in array_task<N>/models/generator_best.keras, with its
settings in array_task<N>/params.json and its results in cgan_results.csv.
A generator takes a latent noise vector and a one-hot score, and returns a
64 × 64 × 3 image in [−1, 1]. models/08 used the generator from array_task48.
All files were saved with Keras 3.15.0. Older versions of Keras cannot read them.
Limitation of the comparison
The augmented grids (07 and 08) were cross-validated on the training split
alone. The unaugmented grids (01 to 05) were cross-validated on the training
and validation splits pooled together. Their accuracies therefore differ in their
real training images as well as in augmentation.
License
MIT, as for the GitHub repository.