Skip to content

Mubashir21/Liver_RFA_Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liver RFA Simulator

A full-stack simulation system for Liver Radiofrequency Ablation (RFA) with GPU-accelerated Python backend (Flask + PyTorch/CUDA), React frontend, and Docker deployment.


🔧 Requirements

  • Docker Desktop
  • NVIDIA GPU with drivers
  • WSL 2 (Windows)
  • NVIDIA Container Toolkit

Verify GPU support:

nvidia-smi
docker run --rm --gpus all nvidia/cuda:11.8.0-base-ubuntu22.04 nvidia-smi

🚀 Getting Started

1. Clone the repository

git clone <your-repo-url>
cd Liver_RFA_Simulator

2. Create data directory

mkdir -p backend/data

3. Start the system

docker compose up --build

🧠 Backend API

Method Route Description
GET / Health check
POST /predict Run RFA simulation
GET /videos/<filename> Fetch generated video

Example:

curl -X POST http://localhost:5000/predict

🎥 Video Storage

Generated videos persist at:

backend/data/simulation_videos

🛑 Stopping the System

docker compose down

🧪 Debugging

# Check containers
docker compose ps

# View logs
docker compose logs backend

# Verify GPU
docker compose exec backend python3 -c "import torch; print(torch.cuda.is_available())"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors