Giter VIP home page Giter VIP logo

wcebleedgen's Introduction

Auto-WCEBleedGen Challenge

Automatic Detection and Classification of Bleeding and Non-Bleeding frames in Wireless Capsule Endoscopy

Meet The Team (KU Researchers)

  • Adarsh Ghimire
  • Basit Alawode
  • Divya Velayudhan
  • Shibani Hamza

The Data

We split the given training data into new training and validation splits using the ratio 80:20. We provide the link to these splits below:

  • Train and Validation Split link

The respective folders in the link also include the xml generated from the given dataset mask of each image.

Results: Classification (Validation Set)

Accuracy (%) Recall (%) F1-Score (%)
98.28 96.79 98.37

Results: Detection (Validation Set)

Average Precision (AP @ 0.5) Mean-Average Precision (mAP) Recall (@ 0.5:0.95)
0.7447 0.7328 0.7706

Below is a plot showing the mean average precision (mAP) of the model on the validation set during training.

Validation Plot During Training

Results: Sample Images (Validation Set)

1 2 3 4
5 6 7 8
9 10

Results: Interpretability Plot (Validation Set)

NOTE: The below interpretability images are independent of the above predictions.

1 2 3 4
5 6 7 8
9 10

Results: Sample Images (Test Set 1)

1 2 3
4 5

Results: Interpretability Plot (Test Set 1)

NOTE: The below interpretability images are independent of the above predictions.

1 2 3
4 5

Results: Sample Images (Test Set 2)

1 2 3
4 5

Results: Interpretability Plot (Test Set 2)

NOTE: The below interpretability images are independent of the above predictions.

1 2 3
4 5

Deliverables:

  1. Trained Model Weights:

Our trained model weights can be downloaded from here

  1. Test Dataset Results Excel Sheets:

The excel sheets for the test sets can be found inside the results/excel folder.

Experiment Setup

  1. Download this repository and open in a python editor (preferably VS code).

  2. Create the python environment

conda create -y --name bleedgen python==3.7.16
conda activate bleedgen  
  1. Install pytorch and torchvision
pip install torch==1.10.0+cu111 torchvision==0.11.0+cu111 torchaudio==0.10.0 -f https://download.pytorch.org/whl/torch_stable.html
  1. Install other packages
pip install -r requirements.txt
  1. Download the train and validation data using this link

  2. Unzip and put the train and validation data into their respective folders (train/Train) and (train/Val).

  3. Also, put the test data into their respective folders (test/Test_Dataset_1) and (test/Test_Dataset_2).

Training

To train, open and run train.py in the created environment.

python train.py

NOTE:

  1. Training results will be available inside the runs folder.

Testing

To test:

  1. Download our already trained model weights here and put inside the trained_weights folder.

  2. Open and run test.py in the created environment.

python test.py

NOTE:

  1. Comment any two of Lines 17, 18, and 19 in test.py to select one of validation set, test set 1, and test set 2 for testing.

  2. Testing results will be available inside the results folder.

Acknowledgement

wcebleedgen's People

Contributors

uvot400 avatar

Stargazers

 avatar Adarsh Ghimire avatar

Watchers

Basit Alawode avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.