Skip to content

This repository contains code developed during the PHRT thyroid project for the segmentation and classification of thyroid tumors using high-resolution micro-CT imaging. It includes a user friendly pipeline for running inference on the thyroid tumors based on micro-CT images.

Notifications You must be signed in to change notification settings

kiataj/ThyVision

Repository files navigation

Thyroid Classifier: Web-based 3D Inference for micro-CT images of thyroid cancer

This project is a lightweight web application for running patchwise inference of diagnostics and BRAF V600E mutation on 3D volumetric micro-CT scans of thyroid tumors.

Features

  • Patch-based Inference on 3D micro-CT images.
  • Multi-task Prediction: BRAF V600E mutation status and diagnostic classification.
  • TIFF Export of prediction maps.
  • End-to-End Pipeline from upload → inference → export

Getting Started

1. Clone Repository

git clone https://github.com/kiataj/ThyVision.git
cd ThyVision

2. Build the Docker Image

docker build -t thyvision .

Run the Docker Container

docker run -p 8000:8000 -v C:\User\app:/data thyvision 

You can replace C:\User\app with a local derive of your preference for saving the predictions.

Launch Frontend

Once the Docker container is running, the web interface will be available at:
http://localhost:8000/

Usage Workflow

  1. Upload a 3D .tiff volume.
  2. Configure patch and stride size.
  3. Click Run Inference - wait until the buttons are activated again, the progress bar can be seen in the command prompt that the docker container is running in.
  4. Click Save Predictions to save the predictions in the mounted derive.
#### Directory structure
├── main.py                   # FastAPI backend
├── inference_module.py       # Inference logic (with tqdm)
├── app/                      # React frontend (Vite)
└── Input example/            # An input example .tif file you can use to run inference.

About

This repository contains code developed during the PHRT thyroid project for the segmentation and classification of thyroid tumors using high-resolution micro-CT imaging. It includes a user friendly pipeline for running inference on the thyroid tumors based on micro-CT images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published