Giter Site home page Giter Site logo

hitdet.pytorch's Introduction

Hit-Detector Code Base

Implementation of our CVPR2020 paper Hit-Detector: Hierarchical Trinity Architecture Search for Object Detection

We released the searched Hit-Detector Architecture.

Environments

  • Python 3.6
  • Pytorch>=1.1.0
  • Torchvision == 0.3.0

You can directly run the code sh env.sh to setup the running environment. We use 8 GPUs (32GB V100) to train our detector, you can adjust the batch size in configs by yourselves.

Data Preparatoin

Your directory tree should be look like this:

$HitDet.pytorch/data
├── coco
│   ├── annotations
│   ├── train2017
│   └── val2017
│
├── VOCdevkit
│   ├── VOC2007
│   │   ├── Annotations
│   │   ├── ImageSets
│   │   ├── JPEGImages
│   │   ├── SegmentationClass
│   │   └── SegmentationObject
│   └── VOC2012
│       ├── Annotations
│       ├── ImageSets
│       ├── JPEGImages
│       ├── SegmentationClass
│       └── SegmentationObject

Getting Start

Our pretrained backbone params can be found in BaiduCloud. pwd: jbsm or GoogleDrive

Train the searched model:

cd scripts
sh train_hit_det.sh

Results on COCO minival

Model Params mAP
FPN 41.8M 36.6
Hit-Det 27.6M 41.3

Citation

@InProceedings{guo2020hit,
author = {Guo, Jianyuan and Han, Kai and Wang, Yunhe and Zhang, Chao and Yang, Zhaohui and Wu, Han and Chen, Xinghao and Xu, Chang},
title = {Hit-Detector: Hierarchical Trinity Architecture Search for Object Detection},
booktitle = {arXiv preprint arXiv:2003.11818},
year = {2020}
}

Acknowledgement

Our code is based on the open source project MMDetection.

hitdet.pytorch's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hitdet.pytorch's Issues

Training details of the search phase

Thanks for your excellent work!

I'm trying to reproduce the paper, but I have some confusion about the search phase.

Could you please further describe the training details of the search phase, such as batch size, image size and so on?

Looking forward to your reply.

Search and Inference

@ggjy Thank you for your hard work,

  • Will the architecture search code and documentation be released?
  • How to predict a single image using your trained model?

Welcome update to OpenMMLab 2.0

Welcome update to OpenMMLab 2.0

I am Vansin, the technical operator of OpenMMLab. In September of last year, we announced the release of OpenMMLab 2.0 at the World Artificial Intelligence Conference in Shanghai. We invite you to upgrade your algorithm library to OpenMMLab 2.0 using MMEngine, which can be used for both research and commercial purposes. If you have any questions, please feel free to join us on the OpenMMLab Discord at https://discord.gg/amFNsyUBvm or add me on WeChat (van-sin) and I will invite you to the OpenMMLab WeChat group.

Here are the OpenMMLab 2.0 repos branches:

OpenMMLab 1.0 branch OpenMMLab 2.0 branch
MMEngine 0.x
MMCV 1.x 2.x
MMDetection 0.x 、1.x、2.x 3.x
MMAction2 0.x 1.x
MMClassification 0.x 1.x
MMSegmentation 0.x 1.x
MMDetection3D 0.x 1.x
MMEditing 0.x 1.x
MMPose 0.x 1.x
MMDeploy 0.x 1.x
MMTracking 0.x 1.x
MMOCR 0.x 1.x
MMRazor 0.x 1.x
MMSelfSup 0.x 1.x
MMRotate 1.x 1.x
MMYOLO 0.x

Attention: please create a new virtual environment for OpenMMLab 2.0.

Search cost

Hi there, thanks for sharing your work! It's very inspiring. I have a question for searching time cost, which is not specified in your paper. Would you please tell me an approximate number, for example, how many GPU days? Thanks a lot!

Test error after 6 epochs

Hi, I met with some errors while reporting the evaluation metrics. It won't be able to find the results after 6 epochs. And the validation accuracy is decreasing during training.

2020-06-27 06:10:10,721 - INFO - Epoch [1][29317/29317] lr: 0.02000, bbox_mAP: 0.1380, bbox_mAP_50: 0.2780, bbox_mAP_75: 0.1230, bbox_mAP_s: 0.0660, bbox_mAP_m: 0.1570, bbox_mAP_l: 0.1900, bbox_mAP_copypaste: 0.138 0.278 0.123 0.066 0.157 0.190

2020-06-27 06:10:10,721 - INFO - Epoch [1][29317/29317] lr: 0.02000, bbox_mAP: 0.1380, bbox_mAP_50: 0.2780, bbox_mAP_75: 0.1230, bbox_mAP_s: 0.0660, bbox_mAP_m: 0.1570, bbox_mAP_l: 0.1900, bbox_mAP_copypaste: 0.138 0.278 0.123 0.066 0.157 0.190

2020-06-27 11:37:35,337 - INFO - Epoch [2][29317/29317] lr: 0.02000, bbox_mAP: 0.0670, bbox_mAP_50: 0.1270, bbox_mAP_75: 0.0660, bbox_mAP_s: 0.0370, bbox_mAP_m: 0.0850, bbox_mAP_l: 0.0750, bbox_mAP_copypaste: 0.067 0.127 0.066 0.037 0.085 0.075

2020-06-27 17:05:47,249 - INFO - Epoch [3][29317/29317] lr: 0.02000, bbox_mAP: 0.0160, bbox_mAP_50: 0.0280, bbox_mAP_75: 0.0180, bbox_mAP_s: 0.0120, bbox_mAP_m: 0.0300, bbox_mAP_l: 0.0100, bbox_mAP_copypaste: 0.016 0.028 0.018 0.012 0.030 0.010

2020-06-27 22:33:56,026 - INFO - Epoch [4][29317/29317] lr: 0.02000, bbox_mAP: 0.0030, bbox_mAP_50: 0.0050, bbox_mAP_75: 0.0030, bbox_mAP_s: 0.0030, bbox_mAP_m: 0.0040, bbox_mAP_l: 0.0000, bbox_mAP_copypaste: 0.003 0.005 0.003 0.003 0.004 0.000

2020-06-28 04:01:11,995 - INFO - Epoch [5][29317/29317] lr: 0.02000, bbox_mAP: 0.0000, bbox_mAP_50: 0.0000, bbox_mAP_75: 0.0000, bbox_mAP_s: 0.0000, bbox_mAP_m: 0.0000, bbox_mAP_l: 0.0000, bbox_mAP_copypaste: 0.000 0.000 0.000 0.000 0.000 0.000

2020-06-28 09:28:33,976 - INFO - Epoch [6][29317/29317] lr: 0.02000, bbox_mAP: 0.0000, bbox_mAP_50: 0.0000, bbox_mAP_75: 0.0000, bbox_mAP_s: 0.0000, bbox_mAP_m: 0.0000, bbox_mAP_l: 0.0000, bbox_mAP_copypaste: 0.000 0.000 0.000 0.000 0.000 0.000

2020-06-28 14:55:26,538 - ERROR - The testing results of the whole dataset is empty.

serching code plan?

Is there a plan for uploading the NAS code ?
I only find the searched network code in this repo.

WORKDIR = './ work_dirs/hitdet_1x/ '

WORKDIR = './ work_dirs/hitdet_1x/ '作者您好,这个文件目录在哪个地方呢,我没有找到,或者这个目录的目的是什么

Running on colab

Thanks for this repository

I was wondering whether anyone has managed to get this running on colab, on a custom dataset

When?

Hello, thanks for sharing your nice work. And could I ask when do you plan to release the code?

Thanks~

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.