Skip to content

apogre/LTN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LOGIC TENSOR NETWORKS FOR SEMANTIC IMAGE INTERPRETATION

  • This repository contains an implementation of Logic Tensor Network for Semantic Image Interpretation, the generated grounded theories, python scripts for baseline and grounded theories evaluation and the PascalPart dataset.
  • All the material in the repository is the implementation of the paper Logic Tensor Networks for Semantic Image Interpretation.
  • Download the repository, unzip the file LTN_SII.zip and move into the LTN_SII/code folder.
  • Before execute LTN install TensorFlow 0.12 library https://www.tensorflow.org/. We tested LTN on Ubuntu Linux with Python 2.7.6.
  • You can use/test the trained grounded theories or train a new grounded theory, see how-tos below.

Structure of LTN_SII folder

  • pascalpart_dataset.tar.gz: it contains the annotations (e.g., small specific parts are merged into bigger parts) of pascalpart dataset in pascalvoc style. This folder is necessary if you want to train Fast-RCNN (https://github.com/rbgirshick/fast-rcnn) on this dataset for computing the grounding/features vector of each bounding box.

  • code: it contains the data, the output folder and the source code of LTN.

    • data: the training set, the test set and the ontology that defines the mereological axioms.
    • results: the output of the evaluation of the baseline and of the grounded theories;
    • models: the trained grounded theories.

How to train a grounded theory

$ python train.py
  • Trained grounded theories are in the models folder.

How to evaluate the grounded theories and the baselines

$ python evaluate.py
  • Results are in the results folder.
  • More detailed results are in results/report.csv.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages