HGM
Hybrid Graph Mamba: Unlocking Non-Euclidean Potential for Accurate Polyp Segmentation
Install / Use
/learn @YueyueZhu/HGMREADME
Hybrid Graph Mamba: Unlocking Non-Euclidean Potential for Accurate Polyp Segmentation
Early Accepted By MICCAI 2025
- HGM <p align="center"> <img src="imgs/model.png"/> <br /> </p>
Training/Testing
The training and testing experiments are conducted using PyTorch with two GeForce RTX 3090 GPUs of 24 GB Memory.
Note that our model also supports low memory GPU, which means you can lower the batch size
-
Configuring your environment (Prerequisites):
Note that HGM is only tested on Ubuntu OS with the following environments. It may work on other operating systems as well but we do not guarantee that it will.
-
Creating a virtual environment in terminal:
conda create -n HGM python=3.10. -
Installing necessary packages:
pip install -r requirements.txt.
-
-
Downloading necessary data:
-
downloading testing dataset and move it into
./data/TestDataset/, which can be found in this Google Drive Link (327.2MB). It contains five sub-datsets: CVC-300 (60 test samples), CVC-ClinicDB (62 test samples), CVC-ColonDB (380 test samples), ETIS-LaribPolypDB (196 test samples), Kvasir (100 test samples). -
downloading training dataset and move it into
./data/TrainDataset/, which can be found in this Google Drive Link (399.5MB). It contains two sub-datasets: Kvasir-SEG (900 train samples) and CVC-ClinicDB (550 train samples). -
downloading pretrained weights and move it into
./best_parameter_HGM.pth, which can be found in this Google Drive Link (101.9MB).
-
-
Training Configuration:
-
Assigning your costumed path, like
--train_save,--train_path,--train_save, and--results_save_placeinMyTrain.py. -
Just enjoy it!
-
-
Testing Configuration:
-
After you download all the pre-trained model and testing dataset, just run
MyTest.pyto generate the final prediction map: replace your trained model directory (--pth_path). -
Just enjoy it!
-
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.4kCommit, push, and open a PR
