Code Monkey home page Code Monkey logo

adaptive_weighted_attribute's Introduction

adaptively_weighted_attribute

This is the code for our paper: adaptively weighted multi-task deep network for person attribute classification. If you find the project useful in your research, please consider citing.

Requirements

  • Caffe and pycaffe (see: Caffe installation instructions)

    Note: Caffe must be built with support for Python layers!

    # In your Makefile.config
    WITH_PYTHON_LAYER := 1

Prepare

  • create model folder and data folder under current project.
  • You can download the ResNet50 model and CelebA train, val, test files from google drive or baidu yun
  • put the resnet_50 folder under model folder
  • put the CelebA folder under data folder.

Train

  • Command : python train_model.py

adaptive_weighted_attribute's People

Contributors

qiexing 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  avatar

Watchers

 avatar  avatar  avatar

adaptive_weighted_attribute's Issues

Hello, sorry to bother you with a question about the design of the weight λ

As mentioned in the paper, trend = abs(cur_mean - pre_mean) / cur_mean. So for one particular attribute, if cur_mean equals pre_mean, then trend = 0, norm_trend = 0 and λ = 0. Does this mean in the next k iterations the weight of this attribute is 0 when calculating loss? If so, how does this make sense?

Besides, if cur_mean >> pre_mean, then trend ≈ 1. If cur_mean << pre_mean, then trend is a large number. Thus if the val loss of the latest k iterations is small and the val loss of the last 2k-k iterations is large, trend is more likely to be a large number. Does this mean λ is more likely to be a large number? What is the logic behind this or how this variation is related to weight?

Many thanks to you.

Can you share the test code?

Can you share the test code? I test the model in CelebA dataset. But only get the 89% acc in the eyeglasses attributes.

average acc 74%

I training the model as your expressed and only got an average acc 74%, Is there any trick in training and testing?

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.