Subphase-Labeled Mitotic Dataset for AI-powered Cell Cycle Analysis - Code for Model Training, Inference and Evaluation
- Create a virtual environment with python3.8:
conda create -n mmdet python=3.8 - Install requirements.txt:
pip install -r requirements.txt - Install MMDetection-related packages:
pip install -U openmimmim install mmenginemim install "mmcv==2.1.0"mim install mmpretrain==1.2.0mim install mmdet
- Clone the mmdetection repository for the network config files:
git clone https://github.com/open-mmlab/mmdetection.git - Change the value of the
_base_variable to your config file path inconfigs/convnext_base_fold1.py - Download the model checkpoint file from the shared drive (
midog2025/modelsdirectory) - Run
predict.py
python predict.py --config_file configs/convnext_base_fold1.py --model_path models/convnext_base_fold1.py --image_dir path/to/your/images --out_dir path/to/output