Skip to main content

Single-file PyTorch implementations of 3D UNets

Project description

unet3d

pip install unet3d to get single-file implementations of 3D UNet architectures for 3D image segmentation!

Usage 💡

Run a UNet3d...

import torch
from unet3d import UNet3d, LinkNet3d

unet = UNet3d(c_in=1, c_out=2, c_start=8, layers=4)
x = torch.rand(1, 1, 64, 64, 64)
output = unet(x)
print(output.shape)  # (1, 2, 64, 64, 64)

...or a LinkNet3d—a more compute efficient UNet variant—on torch.random data 🤓

linknet = LinkNet3d(c_in=1, c_out=2, c_start=8, layers=4)
x = torch.rand(1, 1, 64, 64, 64)
output = linknet(x)
print(output.shape)  # (1, 2, 64, 64, 64)

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

unet3d-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

unet3d-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file unet3d-0.1.0.tar.gz.

File metadata

  • Download URL: unet3d-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.7 Linux/5.15.0-56-generic

File hashes

Hashes for unet3d-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9a76e15ce0fdc7926fd1caa315eab94b793df56a26c46ad671d17d0ff0c66319
MD5 957d998664df95671c3fdee62fef170c
BLAKE2b-256 6fcfcdfd63b83fb9a25d5d20cc8c6b23b4eb32271b5634aba2ff16e00e4e55e3

See more details on using hashes here.

File details

Details for the file unet3d-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: unet3d-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.7 Linux/5.15.0-56-generic

File hashes

Hashes for unet3d-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c89c7504ff695e5011cb100416fe1979a512f750388a4663f9d86d3a52f61aeb
MD5 7d5bdb70fad5c78a54870bceafc59a48
BLAKE2b-256 0b4d75c20b01e1523dcf193ecd7f7be16255587edc6d2fea82ddc2329c446434

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