Get into the preparation dir
cd prepare_dataGenerate a list of png format preprocessed image data. The generation process includes correct degradation, remove limb brightness, and image histogram equalization.
python -u generate_preprocessed_data.pyDownload pretrained data
mim download mmdet --config mask-rcnn_r50-caffe_fpn_ms-poly-3x_coco --dest ./checkpointsDownload the solar_event_dataset_coco_v0.json from release and place it into the annotation dir.
Generate train and val data
python prepare_data/generate_train_val_coco_json.pyAdd environment setting
export CUBLAS_WORKSPACE_CONFIG=:16:8Train:
python tools/train.py configs/solar_event/convnext_detach.pycheck the prediction of one image
python data_analyse/prediction_example.pyThe annotated file in DETACH is labeled manually by ourself. Here's the preparation process with the help of HEK database.
Get into the preparation dir
cd prepare_dataDownload coronal hole segmentation from HEK database
python get_hek_data.pyGenerate the coco-format json annotation
python -u generate_coco_mask.pyThe default annotation boundary is not accurate, so we need to manually correct the annotation.
We annotated the results by using the CVAT tools. The solar_event_dataset_coco_v0.json in release is our annotated results.
The hyperparameter in DETACH is selected semi-automatically by the SMAC algorithm with the help of nni toolkit.
Generate training config file:
python prepare_data/generate_training_config_convnext.pyAuto-ML with nni:
python nni-exp/nni_search.py