# Faster_RCNN **Repository Path**: linzhchen/Faster_RCNN ## Basic Information - **Project Name**: Faster_RCNN - **Description**: Faster_RCNN - **Primary Language**: Python - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-08-18 - **Last Updated**: 2021-11-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Faster RCNN > Faster RCNN implement by tf2
![result.jpg](https://i.loli.net/2020/11/13/Tr7IR2bW8Bk4gDN.jpg) ## 1. Quick Start. 1. Clone the repository. ``` $ git clone https://github.com/verages/Faster_RCNN.git ``` 2. You are supposed to install some dependencies before getting out hands with these codes. ``` $ cd Faster_RCNN $ pip install -r requirements.txt ``` 3. Download VOC weights. ``` $ wget https://github.com/verages/Faster_RCNN/releases/download/v1.0/frcnn.h5 ``` ## 2. Train your dataset. One files are required as follows: - [`train.txt`](https://github.com/Runist/YOLOv3/blob/main/config/train.txt): ``` xxx/xxx.jpg 174,101,349,351,14 xxx/xxx.jpg 104,78,375,183,0 133,88,197,123,0 195,180,213,229,14 26,189,44,238,14 # image_path x_min,y_min,x_max,y_max,class_id x_min,y_min,...,class_id # make sure that x_max < width and y_max < height ``` And you need edit config.py: ```python annotation_path = "./config/train.txt" class_names = ['aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'car', 'cat', 'chair', 'cow', 'diningtable', 'dog', 'horse', 'motorbike', 'person', 'pottedplant', 'sheep', 'sofa', 'train', 'tvmonitor'] ``` Finally ``` $ mkdir logs $ cd logs $ mkdir model $ python train.py ``` ## 3. Show your predict result. ``` $ python predict.py ``` If your want to change picture path, please edit predict.py: ```python if __name__ == '__main__': img_path = "Your image path." ``` ## 4. Reference. - [bubbliiiing/faster-rcnn-keras](https://github.com/bubbliiiing/faster-rcnn-keras)