# ovsnet **Repository Path**: will1930/ovsnet ## Basic Information - **Project Name**: ovsnet - **Description**: 2D 图形分类模型,已适配nvida 5080显卡 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-11 - **Last Updated**: 2026-01-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Optimized Vessel Segmentation: A Structure-Agnostic Approach with Small Vessel Enhancement and Morphological Correction ![Method](./method.png) ## Usage ### Installation ``` conda create -n ovs python=3.12 conda activate ovs git clone https://github.com/Hk416mod2/OVS-Net.git cd /OVS-Net pip install -r requirements.txt ``` ### Data Prepare The datase structure is as follows: ``` dataset/ ├── train/ │ ├── images/ │ ├── masks/ │ ├── image2label_train.json │ └── image2label_val.json └── test/ ├── images/ ├── masks/ └── test.json ``` We have placed some image samples and JSON generating scripts in `/Dataset` ### Train We use SAM vit-b checkpoint for finetuning, you can download it from [here](https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth) Prepare data and json file in `/Dataset` Run `python train.py` ### Test Set checkpoint path in `python test.py` Run `python test.py` You can also download our model checkpoints at [here](https://drive.google.com/drive/folders/1Iq_EuKd1soDqz-aFluXi5W4vJUWgB6Tv?usp=drive_link) ## Dataset info ### Internal Validation Dataset We use these dataset to train our model: | Dataset | Area | Modality | Resolution | Split | Access | Related Link | |--------------------|---------------------|----------|------------|---------|---------|---------------------------------------------------| | 134XCA | Coronary Artery | X-Ray | 300×300 | 90/10/34 | Public | [Link](http://personal.cimat.mx:8181/~ivan.cruz/DB_Angiograms.html)| | XCAD | Coronary Artery | X-Ray | 512×512 | 75/9/42 | Public | [Link](https://github.com/AISIGSJTU/SSVS)| | ARIA | Retina | Fundus | 768×576 | 108/12/43 | Public | [Link](https://sourceforge.net/projects/aria-vessels/)| | CHASE_DB1 | Retina | Fundus | 960×999 | 18/2/8 | Public | [Link](https://blogs.kingston.ac.uk/retinal/chasedb1/)| | DR-HAGIS | Retina | Fundus | 1024×1024 | 18/2/20 | Public | [Link](https://personalpages.manchester.ac.uk/staff/niall.p.mcloughlin/)| | DRIVE | Retina | Fundus | 584×565 | 18/2/20 | Public | [Link](https://drive.grand-challenge.org/)| | FIVES | Retina | Fundus | 2048×2048 | 540/60/200 | Public | [Link](https://www5.cs.fau.de/research/data/fundus-images/)| | Les-AV | Retina | Fundus | 1620×1444 | 18/2/2 | Public | [Link](https://figshare.com/articles/dataset/LES-AV_dataset/1185769)| | ORVS | Retina | Fundus | 1444×1444 | 38/4/7 | Public | [Link](https://github.com/AbdullahSarhan/ICPRVessels)| | STARE | Retina | Fundus | 605×700 | 14/2/4 | Public | [Link](https://cecas.clemson.edu/~ahoover/stare/) | | ROSE-1 | Retina | OCTA | 304×304 | 27/3/9 | Permission | [Link](https://imed.nimte.ac.cn/dataofrose.html) | | ROSSA | Retina | OCTA | 320×320 | 736/82/100 | Public | [Link](https://github.com/nhjydywd/OCTA-FRNet) | | OCTA500-3M | Retina | OCTA | 304×304 | 135/15/50 | Permission | [Link](https://ieee-dataport.org/open-access/octa-500) | | OCTA500-6M | Retina | OCTA | 400×400 | 180/20/100 | Permission | [Link](https://ieee-dataport.org/open-access/octa-500) | | DrSAM | Pelvic-Iliac Artery | X-Ray | 386×448 | 360/40/100 | Public | [Link](https://drive.google.com/file/d/1TjxEJUD4VC_SAPcqdNVybsKRb_xW-Bze/view) | ### External Validation Dataset We use these dataset to evaluate the out-of-domain generalization of our model: | Dataset | Area | Modality | Resolution | Access | Related Link | |--------------------|---------------------|----------|------------|---------|---------------------------------------------------| | HRF | Retina | Fundus | 3504×2336 | Public | [Link](https://www5.cs.fau.de/research/data/fundus-images/)| | IOSTAR | Retina | Fundus | 1024×1024 | Permission | [Link](http://www.retinacheck.org/download-iostar-retinal-vessel-segmentation-dataset)|