gravitynet package
Project description
🚀 GRAVITY NET
GravityNet is a novel one-stage end-to-end detector specifically designed to detect small lesions in medical images.
📥 INSTALLATION
Install the package running:
pip install gravitynet
Import the package as:
import gravitynet
📁 PACKAGE ORGANIZATION
GravityNet is structured into three main modules:
🔧 gravity_points_config
Generates the configuration of gravity points.
gravity_points, num_gravity_points, num_gravity_points_feature_map = gravity_points_config(config,
image_shape)
PARAMETERS
config: type of configuration:
grid: grid-base configuration for gravity-points (e.g., grid-10)
dice: dice-base configuration for gravity-points (e.g., dice-1)
image_shape: the shape of the image (H x W)
RETURNS
gravity_points: configuration of the gravity points on the image
num_gravity_points: number of gravity points generated
num_gravity_points_feature_map: number of gravity points generated per feature map
🌐 GravityNet
Define the GravityNet model.
net = GravityNet(backbone,
pretrained,
num_gravity_points_feature_map)
PARAMETERS
backbone: backbone model (e.g., ResNet)
pretrained: pretrained option
num_gravity_points_feature_map: number of gravity points generated per feature map
RETURNS
net: GravityNet model
📉 GravityLoss
Define the GravityLoss function used for training.
criterion = GravityLoss(config,
hook,
num_gravity_points_feature_map,
device)
PARAMETERS
config: type of configuration (e.g., grid-10)
hook: hooking distance (e.g., 10)
num_gravity_points_feature_map: number of gravity points generated per feature map
device: device (e.g., cuda)
RETURNS
criterion: GravityLoss criterion
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
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 gravitynet-0.0.9.tar.gz.
File metadata
- Download URL: gravitynet-0.0.9.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7851c26711e7e36f436dc783948c581543f73c0a21932ba4f6d30ec9d45aac0
|
|
| MD5 |
2610de7d08bb532daca767a63a12776e
|
|
| BLAKE2b-256 |
47cd04d3d42ea3f2ce3e4b3cd74d3fe0863c3c6550088084f43563886afba9f7
|
File details
Details for the file gravitynet-0.0.9-py3-none-any.whl.
File metadata
- Download URL: gravitynet-0.0.9-py3-none-any.whl
- Upload date:
- Size: 38.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d22f7dd60060fff0dbc8e01aa6fd1f3bdd539e1c0b84293ba4bc08661a9200e2
|
|
| MD5 |
98c593785331f20efc52713cb904aa48
|
|
| BLAKE2b-256 |
f19389197dda710b92486ac890b1e7df34fbbdf6a70ab575b1c40eb6082d812d
|