Code Monkey home page Code Monkey logo

ikrl's Introduction

IKRL

Image-embodied Knowledge Representation Learning (IJCAI-2017)

New: Add dataset

INTRODUCTION

Image-embodied Knowledge Representation Learning (IKRL)

Image-embodied Knowledge Representation Learning (IJCAI-2017)

Written by Ruobing Xie

COMPILE

Just type make in the folder ./

DATA

We use a new dataset WN9-IMG, with triples extracted from WN18 and images extracted from ImageNet.

There are additional files needed in training, pre-training is optional:

  1. image2vec_fc7.txt: image feature vector, pre-trained by AlexNet (fc7 layer)
  2. (optional) entity2vec.unif / relation2vec.unif: entity & relation vector, pre-trained by TransE
  3. (optional) image_mat.unif: image projection matrix, pre-trained by IKRL (AVG)

For image2vec_fc7.txt, it is a file that contains the image feature vectors of all images learned by AlexNet (or other models). Due to its large size, we do not release our features. However, it is very easy to use other visual features learned by updated visual encoders and images.

Step1. Collect (multiple) images for all entities.

Step2. Learn image feature vectors for all images by AlexNet (or other models). We use the last hidden embedding (fc7 layer) as IKRL's image features.

Please refer to the original paper for more details:

Ruobing Xie, Zhiyuan Liu, Huanbo Luan, Maosong Sun. Image-embodied Knowledge Representation Learning. The 26th International Joint Conference on Artificial Intelligence (IJCAI'17).

RUN

train: time ./Train_transI -size 50 -margin 4 -method 0

test: ./Test unif

CITE

If the codes or datasets help you, please cite the following paper:

Ruobing Xie, Zhiyuan Liu, Huanbo Luan, Maosong Sun. Image-embodied Knowledge Representation Learning. The 26th International Joint Conference on Artificial Intelligence (IJCAI'17).

ikrl's People

Contributors

xrb92 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ikrl's Issues

can you give some advice on how to build the dataset?

Hi! I'm trying to build the dataset according to the "image_list" you shared, but I'm in trouble getting all these data. I was planning to delete images in ILSVRC 2012 dataset, but there are only 1000 synsets in ILSVRC, which is far less than yours. I also considered downloading images from imagenet directly, but many links are invalid now. So, can you give me some advice on how to build the dataset? Thanks in advance!

Entity & relation Vector - TransE

Hello,

Thank you for sharing the code. Is it possible to also the pre-trained TransE relation and entity vectors? It is is mentioned that they are available in the data file. I unzipped the file and the data were missing.
Thanks in advance!
Best,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.