Knowledge distillation code and checkpoints for compact ConvNeXtV2 instance segmentation of Escherichia coli

Published: 22 October 2026| Version 1 | DOI: 10.17632/pdz5jj549d.1
Contributor:

Description

Distillation Code and Trained Checkpoints for MMDetection Archived version of the code, configuration files, and trained checkpoints used for the results in the article.  Datasets: FluoEcoli-Instance: https://doi.org/10.5281/zenodo.23389427 PW-BALFC (original authors): https://doi.org/10.5281/zenodo.14871206 FILES IN THIS RECORD - jove_mmdetection.zip: code, configuration files, figure scripts. - trained checkpoints: "work_dirs_pw-balfc.zip", and "work_dirs_flouecoli.zip" The dataset is not included; place it at jove_mmdetection/coco/ (protocol step 2). WHERE TO FIND WHAT - Convert PW-BALFC from YOLO to COCO format (step 2.2): convert_yolo_to_coco.py - Teacher configuration (step 3.2): configs/distill/htc_convnextv2_t_teacher.py - Student configurations, no distillation (step 3.3): configs/distill/cascade_convnextv2_femto_student.py, cascade_convnextv2_atto_student.py - PKD distillation configurations (steps 3.3-3.4): configs/distill/pkd_cascade_convnextv2t_convnextv2f_distill.py, pkd_cascade_convnextv2t_convnextv2a_distill.py - Training and distillation (steps 4-5): tools/train.py; five-seed loops: tools/run_pkd_fem_seeds.sh, tools/run_pkd_atto_seeds.sh - Evaluation on the test set (steps 6.1-6.3): tools/test.py - Qualitative results (step 6.6, Figure 4): tools/analysis_tools/visualize_segmentation.py, tools/run_visualization_atto.sh - Figures 1-3: Data_Source_for_Paper/plot_figure1.py, plot_figure2.py, plot_figure3.py - Trained checkpoints: work_dirs_FlouEcoli/ (FluoEcoli-Instance) and work_dirs_PW-BALFC/ (PW-BALFC). Each contains one folder per model (teacher; Femto and Atto students without and with PKD; seed 0) with its best_coco_segm_mAP_epoch_[N].pth and training configuration file. Should unzip and move these folders into the jove_mmdetection folder if you want to run from the training checkpoint. ENVIRONMENT Ubuntu 24.04.2 LTS; 1 x NVIDIA GeForce RTX 4090 (24 GB); driver 550.144.03; CUDA 12.1; cuDNN 8.9.2; Python 3.8.20; PyTorch 2.1.0; MMCV 2.1.0; MMEngine 0.10.7; MMDetection 3.3.0; MMRazor 1.0.0; MMPreTrain 1.2.0. Full package list: Table of Materials of the article. QUICK START conda create -n ecoli-kd-seg python=3.8 -y && conda activate ecoli-kd-seg pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121 pip install wheel==0.43.0 && pip install mmcv==2.1.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.1/index.html unzip jove_mmdetection.zip && cd jove_mmdetection pip install -v -e . && pip install joblib==1.4.2 mmrazor==1.0.0 mmpretrain==1.2.0 # put the dataset at ./coco, then evaluate, e.g. the FluoEcoli-Instance teacher: python tools/test.py configs/distill/htc_convnextv2_t_teacher.py work_dirs_FlouEcoli/htc_convnextv2_t_teacher/best_coco_segm_mAP_epoch_34.pth --data-root coco LICENSE AND CITATION Code: Apache License 2.0, Trained checkpoints: CC BY 4.0.

Files

Categories

Database

Licence