Skip to main content

Module for segmenting pathological images of tissue microarrays

Project description

TMAx

This project proposes an image segmentation model for histopathological images, specifically designed for Tissue MicroArrays (TMA) used in pathological anatomy.

The goal is to automatically segment structures of interest in digital slides, particularly in the context of lymphomas.

Documentation

def predict_mask(model, imagePath, outputPath, repo_id="Vaaaal/TMAs", filename="tmas_segmenter.pth"):

  • model (torch.nn.Module)
  • Segmentation model (UNet architecture or equivalent) : Weights will be automatically loaded from Hugging Face.
  • imagePath (str) : Path to the input image to be segmented.
  • outputPath (str) : Path where the generated segmentation mask will be saved.
  • repo_id (str, optional) : ID of the Hugging Face repository containing the model weights.
  • filename (str, optional) : Name of the weight file in the repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tmax-0.1.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tmax-0.1.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file tmax-0.1.1.tar.gz.

File metadata

  • Download URL: tmax-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for tmax-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c135179b45fdadc8288c551264f66ed433ba46cfec7d5805c2144d180dc75449
MD5 68dd89b4d1fcd080e46f27faaacd3470
BLAKE2b-256 363a84b8b47ccdebc417790773b36d6e661dd9b83b5dc1f845fa0fdf6a17fd97

See more details on using hashes here.

File details

Details for the file tmax-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tmax-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for tmax-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 252583e6ba078682b1d8c41e3b34c8775bdeb552d21933dcd263253f5a70d5c5
MD5 dd0a8869c044c4e8771d602454cfe26b
BLAKE2b-256 57f8a424ba7e487921d6403099f711e7c80161070bdde8329d0b3ba19c92c432

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page