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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a76e15ce0fdc7926fd1caa315eab94b793df56a26c46ad671d17d0ff0c66319
|
|
| MD5 |
957d998664df95671c3fdee62fef170c
|
|
| BLAKE2b-256 |
6fcfcdfd63b83fb9a25d5d20cc8c6b23b4eb32271b5634aba2ff16e00e4e55e3
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c89c7504ff695e5011cb100416fe1979a512f750388a4663f9d86d3a52f61aeb
|
|
| MD5 |
7d5bdb70fad5c78a54870bceafc59a48
|
|
| BLAKE2b-256 |
0b4d75c20b01e1523dcf193ecd7f7be16255587edc6d2fea82ddc2329c446434
|