Giter Site home page Giter Site logo

hikapok / x-detector Goto Github PK

View Code? Open in Web Editor NEW
113.0 6.0 33.0 2.31 MB

Light-Head RCNN and One Novel Object Detector

License: Apache License 2.0

C 0.08% CMake 0.45% C++ 12.02% Cuda 3.91% Python 83.53%
light-head rcnn tensorflow objectdetection faster-rcnn rfcn-resnet

x-detector's Introduction

X-Detector

X-Detector is a collection of several object detection algorithms. And some of those have not appeared in any academic papers.

Up to now, this repository contains code of the re-implementent of Light-Head R-CNN and this trained version had got to 74.85%mAP(77.29%mAP using VOC12 evaluation alogorithm), more improvement is still in process. You can download the latest model weights (trained on PASCAL-07+12) from GoogleDrive.

Below is the training timeline of Light-Head RCNN for single 480x480 input image.

Besides, several other detectors(named "X-Det") are also included, the main idea behind "X-Det" is to introduce explicit attention mechanisms between feature map channels. But the current performance of them is only ~0.71mAP on PASCAL-VOC 2007 Test Dataset, more improvement may need to introduce FPN-like structure on the top feature map(I didn't try this which is beyond the initial purpose of "X-Det").

The pre-trained weights of backbone network can be found in Resnet-50 backbone and Xception backbone. The latest version of PsRoIAlign is here.

You can use part of these codes for your research purpose, without any permission but following Apache License 2.0. All codes were tested under TensorFlow 1.6, Python 3.5, Ubuntu 16.04.

Here are some demo result images of "X-Det"-V2, debugging is still in process to make better performance:

Update:

  • More than 7x performance improvement for Light-Head RCNN.
  • Fine-tunning modified resnet backbone for "X-Det".
  • Reorganize the order of the preprocessing pipeline.
  • Switch to sample-wise hard negtive mining.

Apache License 2.0

x-detector's People

Contributors

hikapok 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

x-detector's Issues

compilation error while building PSROIPooling

Hi all,
I can't build libps_roi_align.so, running into following error:
X-Detector/cpp/PSROIPooling$ cmake .
X-Detector/cpp/PSROIPooling$ make
[ 10%] Building NVCC (Device) object CMakeFiles/cuda_compile_4.dir/cuda_compile_4_generated_rotated_ps_roi_align_grad_op.cu.o
sh: 1: cannot create -/rotated_ps_roi_align_grad_op.cpp1.ii: Directory nonexistent
CMake Error at cuda_compile_4_generated_rotated_ps_roi_align_grad_op.cu.o.cmake:219 (message):
Error generating
/data/open_source_projects/object_detection/X-Detector/cpp/PSROIPooling/CMakeFiles/cuda_compile_4.dir//./cuda_compile_4_generated_rotated_ps_roi_align_grad_op.cu.o

CMakeFiles/ps_roi_align.dir/build.make:84: recipe for target 'CMakeFiles/cuda_compile_4.dir/cuda_compile_4_generated_rotated_ps_roi_align_grad_op.cu.o' failed
make[2]: *** [CMakeFiles/cuda_compile_4.dir/cuda_compile_4_generated_rotated_ps_roi_align_grad_op.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ps_roi_align.dir/all' failed
make[1]: *** [CMakeFiles/ps_roi_align.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Env: OS Ubuntu 18, python 3.6.6, tensorflow-gpu==1.11.0, cuda-9.0

Any help is highly appreciated

what about the speed and mAP vs yolov3

@HiKapok hi, have you ever try to train on COCO ? can the model be as good as the paper result (we can find its' mAP is close to yolov3, but 3 times fps to yolov2). Recently, I want to do human head detection, i want to use light-head-rcnn, can you give some advices? I am new in deep learning,thank you.

Error during loading lips_roi_align.so

Hi, thanks for sharing the code!
I went to cpp/PSROIPooling, and then executed cmake, and finally make, to generate the libps_roi_align.so file. But when I run the demo, I encountered this error:

tensorflow.python.framework.errors_impl.NotFoundError: ./cpp/PSROIPooling/libps_roi_align.so: undefined symbol: _ZN10tensorflow11GetNodeAttrERKNS_9AttrSliceENS_11StringPieceEPSs

I used exactly the same environment: tensorflow-1.6, python-3.5 and ubuntu 16.04. Also, I googled to find relevant topics but with no success.
Appreciate it if you can help.

Why tf tries to occupy so much GPU memory for simple test?

Hi there,
I'm trying to run your light_head_simple_demo.py with provided model model.ckpt-121397
But while starting the script I run into out of memory issue: while restoring parameters from the checkpoint tf tries to occupy > 14Gb of GPU and falls because I have less than 16Gb.
But the model weight file has size less than 0,5Gb.
Does it really require >16Gb? Or I have somewhere wrong settings for the model? How much memory does it requires for that test?

For test I use tensorflow docker container with pre-installed Ubuntu16, cuda9.0, tensorflow1.6, python 3.5

Thanks

cpp psroi pooling can not built

Same error:

oi_align_op.h:25:61: fatal error: third_party/eigen3/unsupported/Eigen/CXX11/Tensor: No such file or directory
compilation terminated.
CMake Error at cuda_compile_4_generated_rotated_ps_roi_align_grad_op.cu.o.cmake:220 (message):
  Error generating
  /media/jintain/sg/ai/career/robot/ctirobot/detect/X-Detector/cpp/PSROIPooling/build/CMakeFiles/cuda_compile_4.dir//./cuda_compile_4_generated_rotated_ps_roi_align_grad_op.cu.o


CMakeFiles/ps_roi_align.dir/build.make:84: recipe for target 'CMakeFiles/cuda_compile_4.dir/cuda_compile_4_generated_rotated_ps_roi_align_grad_op.cu.o' failed
make[2]: *** [CMakeFiles/cuda_compile_4.dir/cuda_compile_4_generated_rotated_ps_roi_align_grad_op.cu.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/ps_roi_align.dir/all' failed
make[1]: *** [CMakeFiles/ps_roi_align.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

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.