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 details)
Built Distribution
File details
Details for the file imgraph-0.0.4.tar.gz
.
File metadata
- Download URL: imgraph-0.0.4.tar.gz
- Upload date:
- Size: 65.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f20f55ad1a64b132a3587f3e56e84a92255aa34929414701d2901ed4795f0cd3 |
|
MD5 | 9c7cbca12846591f6649db979e1a77b4 |
|
BLAKE2b-256 | f3e363e7cb6a1fcb1b0d26c5fc69958aede92609c7e7bcdaffa6975f93648830 |
File details
Details for the file imgraph-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: imgraph-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a3736bdf6547cbd6df8bfe172232e28bbc618e4f15d0f50635db385dc431ede |
|
MD5 | 899adc53c7f95a805945ba0cb0379956 |
|
BLAKE2b-256 | e66406ed655594fda65ebb978c1a93b8b2b881aa410c308bf70511f5b5eb31bb |