GithubHelp home page GithubHelp logo

ai_product-competition's Introduction

CVPR 2020 AliProducts Challenge: Large-scale Product Recognition

Main requirements

  • torch == 1.0.1
  • torchvision == 0.2.2_post3
  • Python 3

Environmental settings

This repository is developed using python 3.5.2 on Ubuntu 16.04.5 LTS. The CUDA and CUDNN version is 9.0 and 7.1.3 respectively. For AiProducts experiments, we use four NVIDIA 1080ti GPU cards for training and testing. Other platforms or GPU cards are not fully tested.

Technical report

More technical details please see technical report.pdf.

Pretrain models

We provide the pretrain backbone of resnet50 or resnet101 trained on ImageNet , which will put in the fold of ./pretrain_models. And we also provide the best model of resnest50 BaiduYun link, keyword: g2xy, GoogleDrive link

Usage

Decompress three json files of train/val/test datasets in the fold of ./dataset/AiProducts, more details please see the config files in the fold of ./configs.

# Get dataset of AiProducts
sh ./dataset/get_dataset_AiProducts.sh
# Training the model and the models will be saved in the fold of ./log/AiProducts 
python main.py  
# Finetune the model
python main.py --RESUME_MODEL ./log/AiProducts/best_model.pth --DATASET_TRAIN_JSON ./dataset/AiProducts/converted_val.json 
# Test the model
python test.py --RESUME_MODEL ./log/AiProducts/best_model.pth
# Adjust the classifier using the tau-norm method and the models will be saved in the fold of ./log_tau
python tau_norm.py --RESUME_MODEL ./log/AiProducts/best_model.pth

More experiments need to be tried such as different image size, backbone, optimizer or learning rate decay method which noly need change the config file.

Data format

The annotation of a dataset is a dict consisting of two field: annotations and num_classes. The field annotations is a list of dict with fpath and category_id.

Here is an example.

AiProducts
{
    'annotations': 
	[
        {
		"category_id": 0, 
		"fpath": "/val/00000/1849756.jpg"
        },
        ...
    ]
    'num_classes': 50030
}

Acknowledge

Thanks for the help of my partners Baole Wei, Yirong Yang. Please let me know if you encounter any issues(my email [email protected]).

ai_product-competition's People

Contributors

mingliangzhang2018 avatar

Watchers

James Cloos avatar shawxiao 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.