Giter Club home page Giter Club logo

sanchezcarlosjr / breast-cancer-toolkit Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 10.86 MB

The repository provides code for running inference with different breast cancer models, links for downloading the trained model checkpoints, and example notebooks on how work with a DICOM pipeline.

Home Page: https://carlos-eduardo-sanchez-torres.sanchezcarlosjr.com/Mexican-Deep-DICOM-7a807c1db3b641378180b0c60633c38b

License: MIT License

Python 85.67% Jupyter Notebook 3.89% Dockerfile 10.43%
breast-cancer-prediction

breast-cancer-toolkit's Introduction

Project generated with PyScaffold PyPI-Server

BCT

Machine learning toolkit designed to support data scientists in breast cancer detection, classification and analysis.

Installation

Install the package with:

pip install breast-cancer-toolkit

Usage as CLI

Convert the DCM files into TIFF format recursively with the same basename.

parallel bct convert {} {.}.tiff ::: **/*.dcm

Usage as library

Models

Remove background with instance segmentation

Model Training data Resolution # of samples seen IoU Accuracy

Data sources

Source Argument Type Notes
image 'image.jpg' str or Path Single image file. Format supported: jgp, png, dcm, tiff
URL 'https://ultralytics.com/images/bus.jpg' str URL to an image.
screenshot 'screen' str Capture a screenshot.
PIL Image.open('im.jpg') PIL.Image HWC format with RGB channels.
OpenCV cv2.imread('im.jpg') np.ndarray HWC format with BGR channels uint8 (0-255).
numpy np.zeros((640,1280,3)) np.ndarray HWC format with BGR channels uint8 (0-255).
torch torch.zeros(16,3,320,640) torch.Tensor BCHW format with RGB channels float32 (0.0-1.0).
CSV, json, xlsx 'sources.csv' str or Path CSV file containing paths to images, videos, or directories.
video 'video.mp4' str or Path Video file in formats like MP4, AVI, etc.
directory 'path/' str or Path Path to a directory containing images or videos.
glob 'path/*.jpg' str Glob pattern to match multiple files. Use the * character as a wildcard.
YouTube 'https://youtu.be/LNwODJXcvt4' str URL to a YouTube video.
stream 'rtsp://example.com/media.mp4' str URL for streaming protocols such as RTSP, RTMP, TCP, or an IP address.
multi-stream 'list.streams' str or Path *.streams text file with one stream URL per row, i.e. 8 streams will run at batch-size 8.

Note

This project has been set up using PyScaffold 4.5 and the dsproject extension 0.0.post1.dev166+g2aaddf7.d20240514.

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.