HOGGenerator¶
- class mmpretrain.models.selfsup.HOGGenerator(nbins=9, pool=8, gaussian_window=16)[source]¶
Generate HOG feature for images.
This module is used in MaskFeat to generate HOG feature. The code is modified from file slowfast/models/operators.py. Here is the link of HOG wikipedia.
- Parameters:
- forward(x)[source]¶
Generate hog feature for each batch images.
- Parameters:
x (torch.Tensor) – Input images of shape (N, 3, H, W).
- Returns:
Hog features.
- Return type: