# RFCN-tensorflow
**Repository Path**: zhuang_shuo/RFCN-tensorflow
## Basic Information
- **Project Name**: RFCN-tensorflow
- **Description**: RFCN implementation in TensorFlow
- **Primary Language**: Python
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-03-31
- **Last Updated**: 2024-11-23
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
TensorFlow implementation of RFCN
=================================
Paper is available on https://arxiv.org/abs/1605.06409.
Building
--------
The ROI pooling and the MS COCO loader needs to be compiled first. To do so, run make in the root directory of the project. You may need to edit *BoxEngine/ROIPooling/Makefile* if you need special linker/compiler options.
*NOTE:* If you have multiple python versions on your system, and you want to use a different one than "python", provide an environment variable called PYTHON before calling make. For example: PYTHON=python3 make
You may get undefined symbol problems while trying to load the .so file. This will be the case if you built your TensorFlow version yourself and the Makefile fails to auto-detect your ABI version. You may encounter errors like "tensorflow.python.framework.errors_impl.NotFoundError: BoxEngine/ROIPooling/roi_pooling.so: undefined symbol: \_ZN10tensorflow7strings6StrCatB5cxx11ERKNS0_8AlphaNumE" in the log. In this case clean the project (make clean) and rebuild it with USE_OLD_EABI=0 flag (USE_OLD_EABI=0 make).
You may want to build ROI pooling without GPU support. Use the USE_GPU=0 flag to turn off the CUDA part of the code.
You may want to install python dependencies by running:
pip install --user -r packages.txt
Testing
-------
You can run trained models with test.py. Model path should be given without file extension (without .data* and .index). An example:

Pretrained model
----------------
You can download a pretrained model from here:
http://xdever.engineerjs.com/rfcn-tensorflow-export.tar.bz2
Extract it to your project directory. Then you can run the network with the following command:
./test.py -n export/model -i \ -o \