Skip to main content

gravitynet package

Project description

:rocket: GRAVITY NET

GravityNet is a novel one-stage end-to-end detector specifically designed to detect small lesions in medical images.


:inbox_tray: INSTALLATION

Install the package running:

pip install gravitynet

Import the package as:

import gravitynet

:file_folder: PACKAGE ORGANIZATION

GravityNet is structured into three main modules:

:wrench: 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

:globe_with_meridians: 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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gravitynet-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 4d9469458804b5c51d800a9ab57d625ae825cc8741f525a717737c4165b199c8
MD5 da3900b55e52844e199fe232302fdbe5
BLAKE2b-256 81d3f5896b388b7369890eb3ca0983fdde0a042fd93e304c6a2f4ee513d7dbe3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gravitynet-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 efc3a9d25ba5c55706c95326a8dd975641f8661dd5e6f010e22c2eb53d5ebc28
MD5 2999a0763da385cea66dba530ceaf8c0
BLAKE2b-256 0d960385e68649cb151afb5843421b9731089d2b245a37821c17ab0435ca9581

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