Skip to main content

Converts an image to a graph and apply GNNs for various tasks.

Project description

#IMGRAPH

###Used for converting image to graph, uses superpixel method for node creation, extract features from CNN models.

Example Usage:

from imgraph import image_to_graph,draw_graph_as_image

#use a test image
#model_name  -> default resnet18, possible value densenet121 and efficientnet-b0
g,seg = image_to_graph('test.jpeg', n_segments = 10, model_name = "densenet121")


draw_graph_as_image(g,seg)

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

imgraph-0.0.4.tar.gz (65.8 kB view hashes)

Uploaded Source

Built Distribution

imgraph-0.0.4-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page