facebookresearch/fvcore
A FAIR core library providing common PyTorch utilities and training infrastructure for computer vision research frameworks.

fvcore is a lightweight utility library that provides essential functionality shared across multiple computer vision research projects at Facebook AI Research. It includes common PyTorch layers, functions, and losses, along with tools for flop and parameter counting, BatchNorm statistics recomputation, and scale-invariant hyperparameter scheduling. The library serves as a foundational dependency for frameworks like Detectron2, PySlowFast, and ClassyVision.