ELEC5690 trained models

Five validation-selected checkpoints for the ELEC5690 Programming Assignment. These are the trained models evaluated in the accompanying assignment report, not the synthetic smoke-test models.

Checkpoints

Model Checkpoint Validation-selected epoch / update Reported test result
ResNet-50, standard CE results/ce/best.pt epoch 7 accuracy 81.02%; macro recall 63.91%; macro AUROC 0.9521
ResNet-50, weighted CE results/weighted_ce/best.pt epoch 8 accuracy 73.81%; macro recall 73.30%; macro AUROC 0.9593
ResNet-50, focal loss results/focal/best.pt epoch 18 accuracy 80.56%; macro recall 65.49%; macro AUROC 0.9588
3D U-Net results/problem2/unet3d/best.pt update 3500 mean Dice 85.17%; Jaccard 75.21%; ASD 3.623 voxel; HD95 15.282 voxel
2D U-Net results/problem2/unet2d/best.pt update 4000 mean Dice 82.37%; Jaccard 70.55%; ASD 8.347 voxel; HD95 36.515 voxel

Each run includes config.json, history.csv, and the original metrics.json. SHA256SUMS records file checksums. Checkpoints retain the original model state and validation-selection metadata. They are inference checkpoints, not full resumable optimizer checkpoints.

Download and evaluate

Use the experimental source code included in the assignment submission. From its root directory:

python -m pip install huggingface_hub
hf download YUANHENG666/ELEC5690-trained-models --local-dir . --include "results/*"

This restores the results/ layout expected by the code without replacing its README. Install the assignment dependencies and prepare the original course datasets using the per-problem READMEs, then skip training and run:

python -m problem1.evaluate --data-root data/isic2018 --results-root results --runs ce weighted_ce focal --device cuda --num-workers 4 --gradcam baseline
python -m problem2.evaluate --data-root datas --results-root results/problem2 --runs unet3d unet2d --device cuda --batch-size 4
python -m problem2.analyze_results --results-root results/problem2 --seed 42 --bootstrap-resamples 10000

Evaluation generates metrics, plots, Grad-CAM examples and NIfTI predictions. The recorded environment is Python 3.10.16, PyTorch 2.2.2 / torchvision 0.17.2, CUDA 12.1; final inference is FP32. See the submitted source for architecture implementations. These .pt files are loaded by those scripts, not by Transformers AutoModel.

Data and methodology

Classification uses official ISIC 2018 Task 3 splits (10,015 training, 193 validation, 1,512 test) and class order MEL, NV, BCC, AKIEC, BKL, DF, VASC. ResNet-50 uses ImageNet-1K V2 initialization and a seven-class head; all layers are fine-tuned. Checkpoints maximize validation macro F1.

Segmentation uses the course's 14-train / 20-test H5 subset of the Left Atrium challenge. Both models fit on the same 11 training cases and select by full-volume mean Dice on 3 validation cases. All test metrics are computed on complete 3D volumes, including reconstructed 2D predictions. Stored array axis 2 is the Z convention. Physical spacing is unavailable: distances are voxel-index units, not millimetres.

No dataset images, labels or patient files are hosted here. These coursework models have not been clinically validated and are intended for research and assignment reproduction. Original configuration/provenance paths identify the training environment; use the downloaded results/ paths and your local dataset paths when evaluating.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support