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.10.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.10-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gravitynet-0.0.10.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.10.tar.gz
Algorithm Hash digest
SHA256 51462df795e5b4ee5981a2662a08efecdbae6c7fea82afbf8f9b2659f122518c
MD5 9d18790e817568640e1c1a108f0d1cd4
BLAKE2b-256 83c427798f8262573a299fad4ba9780aa39a32f5a53a34af3fa1b50b0d0eff8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gravitynet-0.0.10-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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 c8a344a99ca8281fc08977968d4534201f85ff8493eee77437974ef66ed5cce5
MD5 8361a73b186365f84d4300bda3d33eaa
BLAKE2b-256 203b9c6f0238af1437186ef9df7568de21874e0ab544e634668d01cb2e804d13

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