All Projects → louis-she → Sfd.pytorch

louis-she / Sfd.pytorch

Licence: mit
S3FD: single shot face detector in pytorch

Projects that are alternatives of or similar to Sfd.pytorch

Lidc nodule detection
lidc nodule detection with CNN and LSTM network
Stars: ✭ 187 (+61.21%)
Mutual labels:  jupyter-notebook, detection
Sipmask
SipMask: Spatial Information Preservation for Fast Image and Video Instance Segmentation (ECCV2020)
Stars: ✭ 255 (+119.83%)
Mutual labels:  jupyter-notebook, detection
Clandmark
Open Source Landmarking Library
Stars: ✭ 204 (+75.86%)
Mutual labels:  jupyter-notebook, detection
Dstl unet
Dstl Satellite Imagery Feature Detection
Stars: ✭ 117 (+0.86%)
Mutual labels:  jupyter-notebook, detection
Picanet
Stars: ✭ 35 (-69.83%)
Mutual labels:  jupyter-notebook, detection
Anomaly detection tuto
Anomaly detection tutorial on univariate time series with an auto-encoder
Stars: ✭ 144 (+24.14%)
Mutual labels:  jupyter-notebook, detection
Triplet Attention
Official PyTorch Implementation for "Rotate to Attend: Convolutional Triplet Attention Module." [WACV 2021]
Stars: ✭ 222 (+91.38%)
Mutual labels:  jupyter-notebook, detection
Simpsonrecognition
Detect and recognize The Simpsons characters using Keras and Faster R-CNN
Stars: ✭ 131 (+12.93%)
Mutual labels:  jupyter-notebook, detection
Yet Another Efficientdet Pytorch
The pytorch re-implement of the official efficientdet with SOTA performance in real time and pretrained weights.
Stars: ✭ 4,945 (+4162.93%)
Mutual labels:  jupyter-notebook, detection
Automl
Google Brain AutoML
Stars: ✭ 4,795 (+4033.62%)
Mutual labels:  jupyter-notebook, detection
Raspberrypi Facedetection Mtcnn Caffe With Motion
MTCNN with Motion Detection, on Raspberry Pi with Love
Stars: ✭ 204 (+75.86%)
Mutual labels:  jupyter-notebook, detection
Facemaskdetection
开源人脸口罩检测模型和数据 Detect faces and determine whether people are wearing mask.
Stars: ✭ 1,677 (+1345.69%)
Mutual labels:  jupyter-notebook, detection
Tensorflow 2.x Yolov3
YOLOv3 implementation in TensorFlow 2.3.1
Stars: ✭ 300 (+158.62%)
Mutual labels:  jupyter-notebook, detection
Social Media Depression Detector
😔 😞 😣 😖 😩 Detect depression on social media using the ssToT method introduced in our ASONAM 2017 paper titled "Semi-Supervised Approach to Monitoring Clinical Depressive Symptoms in Social Media"
Stars: ✭ 45 (-61.21%)
Mutual labels:  jupyter-notebook, detection
Mtcnn
MTCNN face detection implementation for TensorFlow, as a PIP package.
Stars: ✭ 1,689 (+1356.03%)
Mutual labels:  jupyter-notebook, detection
Jwst
Python library for science observations from the James Webb Space Telescope
Stars: ✭ 115 (-0.86%)
Mutual labels:  jupyter-notebook
Halogen
Automatically create YARA rules from malicious documents.
Stars: ✭ 116 (+0%)
Mutual labels:  detection
Cpm
Convolutional Pose Machines in TensorFlow
Stars: ✭ 115 (-0.86%)
Mutual labels:  jupyter-notebook
Bayareadlschool
Slides and exercises for the Theano tutorial at the Deep Learning School in Stanford, September 24-25, 2016
Stars: ✭ 115 (-0.86%)
Mutual labels:  jupyter-notebook
Stocksentimenttrading
Algorithmic Trading using Sentiment Analysis on News Articles
Stars: ✭ 115 (-0.86%)
Mutual labels:  jupyter-notebook

sfd.pytorch

sfd implementation for face recognition in pytorch. Paper at: SFD: Single Shot Scale-invariant Face Detector

Need help 💦

This repo is still under developing, any issue or pull request is very welcome. Currently the weights given bellow achieve 0.7 mAP on all the validation set of wider face. I'm still training it with my poor 1080ti. Anyone with more computing resources wants to train this please open an issue to get in touched.

Requirements

  • Python 3.6
  • Pytorch 0.4
  • TensorBoard(Optional)

TODOs

  • [x] Training on wider faces.
  • [x] Inference tools and API.
  • [x] Non-maximum suppression at reference.
  • [x] TensorBoard supported.
  • [x] Evaluation.
  • [x] Image augmentation.
  • [ ] Multi-class detection.

Detection

The detector.py is executable and programmable, see inference.ipynb for a quick look at how to use the detector API. Using the following command for directly use it in the command line.

python3 detector.py --image ./image/test.jpg --model ./epoch_204.pth.tar

The trained model epoch_204.pth.tar can be downloaded from Baidu Yun or Google Drive.

The detector will draw bounding boxes and the result is showing bellow

Train

To train with the wider_face dataset, download and extract everything in one directory named wider_face. The file trees should then look like this,

└── wider_face
    ├── Submission_example.zip
    ├── wider_face_split
    │   ├── readme.txt
    │   ├── wider_face_test_filelist.txt
    │   ├── wider_face_test.mat
    │   ├── wider_face_train_bbx_gt.txt
    │   ├── wider_face_train.mat
    │   ├── wider_face_val_bbx_gt.txt
    │   └── wider_face_val.mat
    ├── wider_face_split.zip
    ├── WIDER_test
    │   └── images
    ├── WIDER_test.zip
    ├── WIDER_train
    │   └── images
    ├── WIDER_train.zip
    ├── WIDER_val
    │   └── images
    └── WIDER_val.zip

In the config.py, set the DATASET_DIR to the path of wider_face, and set the LOG_DIR to whatever but a existed directory. Now it's ready to train with the following command,

python3 main.py # there is no stdout

The training log is in LOG_DIR/log.txt, and models will be saved at LOG_DIR/models/epoch_xx.pth. There are many options in config.py(including learning rate or resumption) for you to tweak to get a better model.

TensorBoard

If you have TensorBoard installed, set TENSOR_BOARD_ENABLED to True in the config.py, you can use the following command to quickly start the TensorBoard server.

./bin/tensorboard

To visualize how the loss is changing.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].