Skip to main content

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.

GravityNet framework is available on GitHub


📥 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


Download files

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

Source Distribution

gravitynet-0.0.11.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

gravitynet-0.0.11-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

Details for the file gravitynet-0.0.11.tar.gz.

File metadata

  • Download URL: gravitynet-0.0.11.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for gravitynet-0.0.11.tar.gz
Algorithm Hash digest
SHA256 3f8d893bad880f54b7e69c8316f517a5873fb0196b76a2c913c3fb41b158c34b
MD5 02faedb75b8d485c6abd203daaf608e8
BLAKE2b-256 35bd809011be266bc8018fb31f80541b841a649a41bc8c62907456285ca61116

See more details on using hashes here.

File details

Details for the file gravitynet-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: gravitynet-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 38.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for gravitynet-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 9ac7fc87f5107c599374d013a794f32d0ca38c43b7dd7e6aa8e726eb63b3fc93
MD5 cc17e8c64a4f7f4b771751b6af8c58f6
BLAKE2b-256 c71b0368c83f9cec21e50503241d62bd74a84b88a2c54ffb1e22ceaf4be94524

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