GithubHelp home page GithubHelp logo

knut0815 / fashioniqchallenge2020 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nashory/fashioniqchallenge2020

0.0 0.0 0.0 1.19 MB

2nd Place Team's Solution for Fashion IQ Challenge 2020

Shell 0.12% Python 99.88%

fashioniqchallenge2020's Introduction

FashionIQChallenge2020

2nd Place Team's Solution for Fashion IQ Challenge 2020

(1) Environment Setup

  • Prepare Data:
    Download Dataset from here

Image download script has been added. (12/07/2020)

run_download_image.sh

The data structure should look like:

cd ./ours/train
dataset
   ├──image_splits
   │       ├──split.dress.train.json
   │       ├──...
   │       ├──split.toptee.test.json
   │
   ├──captions
   │       ├──cap.dress.train.json
   │       ├──...
   │       ├──cap.toptee.test.json
   │
   ├──images
           ├──B000OHM9FI.jpg
           ├──...
           ├──B000M89C40.jpg
  • Install required packages using virtualenv
python3 -m virtualenv --python=python3 py3
. py3/bin/activate
pip install -r requirements.txt
  • Download required files: word2vec, sentence_embedding, image_emedding
    Download from here: google drive
cd ./ours/train
tar -xvf assets.tar

(2) Train a Single Model (TIRG, Best Score: 37.18)

Run the script below.

overall score curve
loss curve
cd ours/train
python3 main.py \
    --warmup \
    --gpu_id '0' \
    --method 'tirg' \
    --text_method 'lstm-gru' \
    --expr_name 'devel' \
    --data_root './dataset' \
    --backbone 'resnet152' \
    --fdims 2048 \
    --epochs 100 \
    --batch_size 32 \
    --image_size 224 \
    --normalize_scale 5.0 \
    --lr 0.00011148 \
    --lrp 0.48 \
    --lr_decay_steps "10,20,30,40,50,60,70" \
    --lr_decay_factor 0.4747

(3) Ensemble Scores using Bayesian Optimization

(i) get the score output on test/val:

cd ours/tools
python3 get_score.py --data_root './dataset' --expr_name 'devel'

(ii) get emsemble score using Bayesian Optimization provided by hyperopt:
Check the name of output score saved in ours/tools/output_score.
if the candidate models are: ['20200605122245_devel', '20200605152325_devel']

python3 optimize_score.py --data_root './dataset' --repos '20200605122245_devel,20200605152325_devel'

Authors

fashioniqchallenge2020's People

Contributors

nashory avatar wookie0 avatar yoonjaecho 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.