Giter Club home page Giter Club logo

cizsl's Introduction

CIZSL

Creativity Inspired Zero-Shot Learning

Please contact us at [email protected] and [email protected] for questions. The initial version of the code was written by Mohamed Elhoseiny and then it was followed by several improvements written by Mohamed Elfeki.

Mohamed Elhoseiny, Mohamed Elfeki, Creativity Inspired Zero Shot Learning, Thirty-sixth International Conference on Computer Vision (ICCV), 2019

Requirements

Python 3.5

Pytorch 0.4.1

sklearn, scipy, matplotlib, numpy, random, copy

How to run?

Data: download the [dataset CUBird and NABird](https://www.dropbox.com/s/9qovr86kgogkl6r/CUB_NAB_Data.zip

Please put the uncompressed data to the folder "data"

Set the experiment parameters as parser arguments: Dataset, Splitmode, model-number, and the main_dir in "train_CIZSL.py"

Set the value of creativity_weight with the corresponding value to the dataset/splitmode found in the main of "train_CIZSL.py". If the value of the weight is unknown, set 'validate' to 1, and it will perform cross-validation to obtain the optimal weight, then use it to infer the ZSL.

P.S. We obtained those values by cross-validation, which can be found in "return_best_creativity_weight_validation" function

Run "train_CIZSL.py" as follows

With Cross Validation (Slower)

python train_CIZSL.py --dataset CUB --splitmode easy --validate 1

python train_CIZSL.py --dataset CUB --splitmode hard --validate 1

python train_CIZSL.py --dataset NAB --splitmode easy --validate 1

python train_CIZSL.py --dataset CUB --splitmode hard --validate 1

Without Cross Validation (Faster), creativity_weight selected by cross validation.

python train_CIZSL.py --dataset CUB --splitmode easy --creativity_weight 0.0001

python train_CIZSL.py --dataset CUB --splitmode hard --creativity_weight 0.1

python train_CIZSL.py --dataset NAB --splitmode easy --creativity_weight 1

python train_CIZSL.py --dataset CUB --splitmode hard --creativity_weight 0.1

cizsl's People

Contributors

m-elfeki avatar mhelhoseiny avatar sherif-abdelkarim avatar

Watchers

James Cloos avatar

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.