chenfei-wu/Relation-Network-Tensorflow là dự án Python với 1 sao. Tensorflow implementations of Relational Networks and a VQA dataset named Sort-of-CLEVR proposed by DeepMind.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
As part of the implementation series of Joseph Lim's group at USC, our motivation is to accelerate (or sometimes delay) research in the AI community by promoting open-source projects. To this end, we implement state-of-the-art research papers, and publicly share them with concise reports. Please visit our group github site for other projects.
This project is implemented by Shao-Hua Sun and reviewed by Youngwoon Lee.
Descriptions
This project includes a Tensorflow implementation of Relation Networks and a dataset generator which generates a synthetic VQA dataset named Sort-of-CLEVR proposed in the paper A Simple Neural Network Module for Relational Reasoning.
Relation Networks
Relational reasoning is an essential component of intelligent systems. To this end, Relation Networks (RNs) are proposed to solve problems hinging on inherently relational concepts. To be more specific, RN is a composite function:
,
where o represents inidividual object while f and g are functions dealing with relational reasoning which are implemented as MLPs. Note that objects mentioned here are not necessary to be real objects; instead, they could consist of the background, particular physical objects, textures, conjunctions of physical objects, etc. In the implementation, objects are defined by convoluted features. The model architecture proposed to solve Visual Question Answering (VQA) problems is as follows.
In addition to the RN model, a baseline model which consists of convolutional layers followed by MLPs is also provided in this implementation.
Sort-of-CLEVR
To verify the effectiveness of RNs, a synthesized VQA dataset is proposed in the paper named Sort-of-CLEVR. The dataset consists of paired questions and answers as well as images containing colorful shapes.
Each image has a number of shapes (rectangle or circle) which have different colors (red, blue, green, yellow, cyan, or magenta). Here are some examples of images.
Questions are separated into relational and non-relational questions which are encoded as binary strings to prevent the effect of language parsing and embedding; while answers are represented as one-hot vectors. Examples of images, questions and answers are as follow.
Given a queried color, all the possible questions are as follows.
Non-relational questions
Is it a circle or a rectangle?
Is it closer to the bottom of the image?
Is it on the left of the image?
Relational questions
The color of the nearest object?
The color of the farthest object?
And the possible answer is a fixed length one-hot vector whose elements represent
Generated files use HDF5 file format. Each data point contains an image, an one-hot vector q encoding a question, and an one-hot vector a encoding the corresponding answer.
Note that this implementation only follows the main idea of the original paper while differing a lot in implementation details such as model architectures, hyperparameters, applied optimizer, etc. Also, the design of Sort-of-CLEVR only follows the high-level ideas of the one proposed in the orginal paper.
*This code is still being developed and subject to change.
Prerequisites
Python 2.7 or Python 3.3+
Tensorflow 1.0.0
NumPy
PIL
matplotlib
h5py
progressbar
colorlog
Usage
Datasets
Generate a default Sort-of-CLEVR dataset:
$ python generator.py
Or generate your own Sort-of-CLEVR dataset by specifying args:
Or you can even change the number of shape presented in the images, the number of possible colors, types of questions and answers by configuring the file vqa_util.py.
Training
Train a RN model with a default Sort-of-CLEVR dataset:
During the training phase, the samples including images, questions, ground truth answers, and predicted answers can be monitored on Tensorboard if the library Tensorflow Plot is installed. Here is an example.
Testing
Test a trained model by specifying the dataset and the model used for training and a checkpoint:
chenfei-wu/Relation-Network-Tensorflow có bao nhiêu sao?
chenfei-wu/Relation-Network-Tensorflow có 1 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/chenfei-wu/Relation-Network-Tensorflow. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
chenfei-wu/Relation-Network-Tensorflow có phải mã nguồn mở không?
Có — chenfei-wu/Relation-Network-Tensorflow phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/chenfei-wu/Relation-Network-Tensorflow.
chenfei-wu/Relation-Network-Tensorflow còn đang phát triển không?
Commit gần nhất trên chenfei-wu/Relation-Network-Tensorflow là 9.4 năm trước (theo timestamp GitHub). Repo có 0 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
chenfei-wu/Relation-Network-Tensorflow dùng license gì?
chenfei-wu/Relation-Network-Tensorflow phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
chenfei-wu/Relation-Network-Tensorflow là gì?
chenfei-wu/Relation-Network-Tensorflow (chenfei-wu/Relation-Network-Tensorflow) là dự án Python trên GitHub. Theo mô tả gốc: Tensorflow implementations of Relational Networks and a VQA dataset named Sort-of-CLEVR proposed by DeepMind.
chenfei-wu/Relation-Network-Tensorflow viết bằng ngôn ngữ gì?
chenfei-wu/Relation-Network-Tensorflow chủ yếu viết bằng Python. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc thêm về chenfei-wu/Relation-Network-Tensorflow ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/chenfei-wu/Relation-Network-Tensorflow là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về Relation-Network-Tensorflow?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về Relation-Network-Tensorflow.