Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Tflearn | 9,512 | 481 | 8 | 2 years ago | 6 | November 11, 2020 | 566 | other | Python | |
Deep learning library featuring a higher-level API for TensorFlow. | ||||||||||
Darkflow | 6,082 | 3 months ago | 644 | gpl-3.0 | Python | |||||
Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices | ||||||||||
Graph_nets | 5,188 | 7 | 6 months ago | 7 | January 29, 2020 | 5 | apache-2.0 | Python | ||
Build Graph Nets in Tensorflow | ||||||||||
Tensorflow_macos | 3,182 | 2 years ago | 217 | other | Shell | |||||
TensorFlow for macOS 11.0+ accelerated using Apple's ML Compute framework. | ||||||||||
Yolov3 Tf2 | 2,480 | 3 months ago | 168 | mit | Jupyter Notebook | |||||
YoloV3 Implemented in Tensorflow 2.0 | ||||||||||
Luminoth | 2,395 | 3 months ago | 61 | bsd-3-clause | Python | |||||
Deep Learning toolkit for Computer Vision. | ||||||||||
Spektral | 2,259 | 3 | 9 days ago | 33 | April 09, 2022 | 61 | mit | Python | ||
Graph Neural Networks with Keras and Tensorflow 2. | ||||||||||
Tfgo | 2,159 | 1 | 4 months ago | 6 | February 04, 2021 | 15 | apache-2.0 | Go | ||
Tensorflow + Go, the gopher way | ||||||||||
Gat | 2,078 | 2 years ago | 27 | mit | Python | |||||
Graph Attention Networks (https://arxiv.org/abs/1710.10903) | ||||||||||
Tensorflow | 2,033 | 7 years ago | 1 | |||||||
图解tensorflow 源码 |
Graph Nets is DeepMind's library for building graph networks in Tensorflow and Sonnet.
Contact [email protected] for comments and questions.
A graph network takes a graph as input and returns a graph as output. The input graph has edge- (E ), node- (V ), and global-level (u) attributes. The output graph has the same structure, but updated attributes. Graph networks are part of the broader family of "graph neural networks" (Scarselli et al., 2009).
To learn more about graph networks, see our arXiv paper: Relational inductive biases, deep learning, and graph networks.
The Graph Nets library can be installed from pip.
This installation is compatible with Linux/Mac OS X, and Python 2.7 and 3.4+.
The library will work with both the CPU and GPU version of TensorFlow, but to allow for that it does not list Tensorflow as a requirement, so you need to install Tensorflow separately if you haven't already done so.
To install the Graph Nets library and use it with TensorFlow 1 and Sonnet 1, run:
(CPU)
$ pip install graph_nets "tensorflow>=1.15,<2" "dm-sonnet<2" "tensorflow_probability<0.9"
(GPU)
$ pip install graph_nets "tensorflow_gpu>=1.15,<2" "dm-sonnet<2" "tensorflow_probability<0.9"
To install the Graph Nets library and use it with TensorFlow 2 and Sonnet 2, run:
(CPU)
$ pip install graph_nets "tensorflow>=2.1.0-rc1" "dm-sonnet>=2.0.0b0" tensorflow_probability
(GPU)
$ pip install graph_nets "tensorflow_gpu>=2.1.0-rc1" "dm-sonnet>=2.0.0b0" tensorflow_probability
The latest version of the library requires TensorFlow >=1.15. For compatibility with earlier versions of TensorFlow, please install v1.0.4 of the Graph Nets library.
The following code constructs a simple graph net module and connects it to data.
import graph_nets as gn
import sonnet as snt
# Provide your own functions to generate graph-structured data.
input_graphs = get_graphs()
# Create the graph network.
graph_net_module = gn.modules.GraphNetwork(
edge_model_fn=lambda: snt.nets.MLP([32, 32]),
node_model_fn=lambda: snt.nets.MLP([32, 32]),
global_model_fn=lambda: snt.nets.MLP([32, 32]))
# Pass the input graphs to the graph network, and return the output graphs.
output_graphs = graph_net_module(input_graphs)
The library includes demos which show how to create, manipulate, and train graph networks to reason about graph-structured data, on a shortest path-finding task, a sorting task, and a physical prediction task. Each demo uses the same graph network architecture, which highlights the flexibility of the approach.
To try out the demos without installing anything locally, you can run the demos in your browser (even on your phone) via a cloud Colaboratory backend. Click a demo link below, and follow the instructions in the notebook.
The "shortest path demo" creates random graphs, and trains a graph network to label the nodes and edges on the shortest path between any two nodes. Over a sequence of message-passing steps (as depicted by each step's plot), the model refines its prediction of the shortest path.
The "sort demo" creates lists of random numbers, and trains a graph network to sort the list. After a sequence of message-passing steps, the model makes an accurate prediction of which elements (columns in the figure) come next after each other (rows).
The "physics demo" creates random mass-spring physical systems, and trains a graph network to predict the state of the system on the next timestep. The model's next-step predictions can be fed back in as input to create a rollout of a future trajectory. Each subplot below shows the true and predicted mass-spring system states over 50 steps. This is similar to the model and experiments in Battaglia et al. (2016)'s "interaction networks".
The "graph nets basics demo" is a tutorial containing step by step examples about how to create and manipulate graphs, how to feed them into graph networks and how to build custom graph network modules.
To install the necessary dependencies, run:
$ pip install jupyter matplotlib scipy
To try the demos, run:
$ cd <path-to-graph-nets-library>/demos
$ jupyter notebook
then open a demo through the Jupyter notebook interface.
Check out these high-quality open-source libraries for graph neural networks:
pytorch_geometric: See MetaLayer for an analog of our Graph Nets interface.