TTFNet
An anchor-free real-time detector that trains in hours by encoding many samples per box.
Detection and tracking · 233 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 45.7M
- Operations
- 233
- Framework
- PyTorch
- Recurrent
- No
- Published
- AAAI 2020
- Cited by
- 11 (as of 5 October 2026)
- Authors
- Zili Liu, Tu Zheng, Guodong Xu and others
- Source
- GitHub: ZJULearning/ttfnet
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m14422
- Graph hash
- 5ef2e7b9ded14b34bc78f6c0f8bbb656562b12306b0e6b0c6a958778ca6650ee
- Skeleton hash
- 0fbd3acb9c07b9cf597fb1e0aeff229339eb8a083ab35a170e8d5f1ed46e6932
- Architecture hash
- ef8db077af8fc54b011e735c5f3f04f90dd75c9f32ff1ea103ed88d2604bd829
- Diagram SHA-256
- 208849abcd27c8c462d43ae8953c0247c06f841e65dfd66a552b409102371520
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
TTFNet, the Training-Time-Friendly Network, is a real-time object detector designed around a goal most detectors miss: short training time, fast inference and high accuracy at once. It starts from a light-head, single-stage, anchor-free design for inference speed, then works on shortening training. The repository describes it as needing only two detection heads, one for object localization and one for size regression, with no time-consuming post-processing.
The key observation is that encoding more training samples from each annotated box plays a similar role to increasing the batch size, which allows a larger learning rate and faster training. So the paper uses Gaussian kernels to encode training samples for both center localization and size regression, treating all pixels inside a Gaussian area of the object as regression samples. The Gaussian kernel also accounts for the box's aspect ratio, which the authors argue CenterNet's isotropic kernel does not. Samples are weighted by object size and Gaussian probability, and the regressed boxes are trained with a GIoU loss.
Features from the backbone are up-sampled to 1/4 of the input resolution, with shortcut connections bringing in features from stages 2, 3 and 4 of the backbone. The member traced here is the DarkNet-53 version at the 2x schedule, run on a 512x512 image, so its two output maps are 128x128 at 80 classes and 4 box sides. On MS COCO the paper reports training time cut by more than seven times against previous real-time detectors while keeping state-of-the-art performance. The released TTFNet-53 (2x) checkpoint reaches 35.1 AP at 54.4 FPS after 6.1 training hours on 8 GTX 1080Ti GPUs. The code lives in an mmdetection fork, with the DarkNet part transplanted from MXNet GluonCV and pieces borrowed from CornerNet and CenterNet.
Key idea. Gaussian-kernel encoding of many training samples per annotated box, for both localization and size regression, so an anchor-free detector trains more than seven times faster.
- TTFNet
- Training-Time-Friendly Network
- TTFNet-53
- real-time object detection
- anchor-free detector
- CenterNet
- DarkNet-53
- COCO
- mmdetection
AI-written summary, checked automatically against its sources; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{liu2019trainingtimefriendlynetworkrealtimeobject,
title={Training-Time-Friendly Network for Real-Time Object Detection},
author={Zili Liu and Tu Zheng and Guodong Xu and Zheng Yang and Haifeng Liu and Deng Cai},
year={2019},
eprint={1909.00700},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1909.00700},
}