Coder Social home page Coder Social logo

longlongaaago / ccml_learning Goto Github PK

View Code? Open in Web Editor NEW
30.0 3.0 5.0 808 KB

This is the offical website for paper ''Category-consistent deep network learning for accurate vehicle logo recognition''

License: MIT License

Python 100.00%
deep-neural-networks vehicle self-supervised-learning segmentation

ccml_learning's Introduction

The Pytorch Implementation of Category-consistent deep network learning for accurate vehicle logo recognition

Framework Architecture

Image

Requirements

  • Pytorch==1.0.1 or higher
  • opencv version: 4.1.0

Datasets

  • XMU:
  • HFUT-VL1 and HFUT-VL2:
    • Y. Yu, J. Wang, J. Lu, Y. Xie, and Z. Nie, Vehicle logo recognition based on overlapping enhanced patterns of oriented edge magnitudes, Computers & Electrical Engineering 71 (2018) 273โ€“283.
    • https://github.com/HFUT-VL/HFUT-VL-dataset
  • CompCars:
    • L. Yang, P. Luo, C. C. Loy, and X. Tang, A large-scale car dataset for fine-grained categorization and verification, in: Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, 2015, pp. 3973-3981.
    • http://mmlab.ie.cuhk.edu.hk/datasets/comp_cars/index.html
  • VLD-45:

VLF-net for classification (Vehicle logo feature extraction network)

  • Training with the classification pipeline

    • training XMU dataset
    python train.py --dataset_name XMU --framework Classification_Network
    
    • training HFUT-VL1 dataset
    python train.py --dataset_name HFUT_VL1 --framework Classification_Network
    
    • training HFUT-VL2 dataset
    python train.py --dataset_name HFUT_VL2 --framework Classification_Network
    
    • training CompCars dataset
    python train.py --dataset_name CompCars --framework Classification_Network
    
    • training VLD-45 dataset
    python train.py --dataset_name VLD-45 --framework Classification_Network
    
  • Testing with the classification pipeline

    • testing XMU dataset
    python test.py --dataset_name XMU --framework Classification_Network
    
    • testing HFUT-VL1 dataset
    python test.py --dataset_name HFUT_VL1 --framework Classification_Network
    
    • testing HFUT-VL2 dataset
    python test.py --dataset_name HFUT_VL2 --framework Classification_Network
    
    • testing CompCars dataset
    python test.py --dataset_name CompCars --framework Classification_Network
    
    • testing VLD-45 dataset
    python test.py --dataset_name VLD-45 --framework Classification_Network
    

VLF-net for category-consistent mask learning

  • Step 1:

    • Generation of the category-consistent masks. There are more details for the co-localization method PSOL.
    • Please note that we use the generated binary-masks directly instead of the predicted boxes.
    1. Download the source codes of [PSOL](https://github.com/tzzcl/PSOL).
    2. Add the generate_mask_imagenet.py from our project to the PSOL folder. 
    3. Run the generate_mask_imagenet.py
    - For the generate_mask_imagenet.py
      --input_size    input size for each image (448 for default)
      --gpu           which gpus to use 
      --output_path   the output pseudo boxes folder
      --batch_size    batch_size for executing forward pass of CNN
      --output_mask_path the output pseudo mask folder
    
  • Step 2:

    • After generating the category-consistent masks, we can further organize the training and testing data which are as below:
    root/
          test/
              dog/xxx.png
              dog/xxz.png
              cat/123.png
              cat/nsdf3.png
          train/
              dog/xxx.png
              dog/xxz.png
              cat/123.png
              cat/nsdf3.png
          mask/
              dog/xxx.png
              dog/xxz.png
              cat/123.png
              cat/nsdf3.png
    
    Note that each image has the corresponding generated category-consistent mask.
  • Step 3:

    • Now, you can training the model with the category-consistent mask learning framework

    • Training with the category-consistent deep network learning framework pipeline

      • training XMU dataset
      python train.py --dataset_name XMU --framework CCML_Network
      
      • training HFUT-VL1 dataset
      python train.py --dataset_name HFUT_VL1 --framework CCML_Network
      
      • training HFUT-VL2 dataset
      python train.py --dataset_name HFUT_VL2 --framework CCML_Network
      
      • training CompCars dataset
      python train.py --dataset_name CompCars --framework CCML_Network
      
      • training VLD-45 dataset
      python train.py --dataset_name VLD-45 --framework CCML_Network
      
    • Testing with the category-consistent deep network learning framework pipeline

      • testing XMU dataset
      python test.py --dataset_name XMU --framework CCML_Network
      
      • testing HFUT-VL1 dataset
      python test.py --dataset_name HFUT_VL1 --framework CCML_Network
      
      • testing HFUT-VL2 dataset
      python test.py --dataset_name HFUT_VL2 --framework CCML_Network
      
      • testing CompCars dataset
      python test.py --dataset_name CompCars --framework CCML_Network
      
      • testing VLD-45 dataset
      python test.py --dataset_name VLD-45 --framework CCML_Network
      

Experiments

Image

Image

Bibtex

  • If you find our code useful, please cite our paper:
    @article{LU2021,
    title = {Category-consistent deep network learning for accurate vehicle logo recognition},
      journal = {Neurocomputing},
      year = {2021},
      issn = {0925-2312},
      doi = {https://doi.org/10.1016/j.neucom.2021.08.030},
      url = {https://www.sciencedirect.com/science/article/pii/S0925231221012145},
      author = {Wanglong Lu and Hanli Zhao and Qi He and Hui Huang and Xiaogang Jin}
      }
    

Acknowledgements

ccml_learning's People

Contributors

chenchangzu avatar kaijieshi7 avatar longlongaaago avatar taowangzj 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

Watchers

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