Code Monkey home page Code Monkey logo

tvvsd's Introduction

Transductive Visual Verb Sense Disambiguation (DRAFT)

This repository contains the code to run the experiments presented in the paper Transductive Visual Verb Sense Disambiguation which will be published on WACV2021 (link still not available).

Installation

The project is runs on Python 3.6 and relies on the following packages:

  • pytorch 1.0.0
  • torchvision 0.2.1
  • pandas 0.24.2
  • numpy 1.17.3

Conda environment

Required packages can be easily installed using the conda YAML file:

conda env create --file conda_env.yml

Required data

The data features and required labels can be downloaded from here. The downloaded folder must be called "data" and must be placed into the project folder.

Experiments

Running the experiments script without any optional parameter will use default ones, running the transduction on VerSe dataset using as input a data-point and a verb, as described in the paper. The number of labelled data-points per class will change from 1 to 20.

python -m run_experiments

The annotations used are the ones from COCO (GOLD).

Parameters

Optional parameters can be specified:

usage: run_experiments.py [-h] [-G | -P] [-m MAX_LABELS] [-i ITERATIONS] [-a]

optional arguments:
  -h, --help            show this help message and exit
  -G, --gold_captions   Use GOLD captions from COCO.
  -P, --pred_captions   use PRED captions extracted with NeuralBabyTalk.
  -m MAX_LABELS, --max_labels MAX_LABELS
                        The maximum number of labeled data-points to use for
                        each sense.
  -i ITERATIONS, --iterations ITERATIONS
                        The number of Replicator Dynamics iterations to be
                        run.
  -a, --all_senses      Ignore input verb, run inference on the senses of all
                        verbs for each data point.

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.