Download mmpose/models/data_preprocessors/data_preprocessor.py from bdsqlsz/SDPose: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/spaces/bdsqlsz/SDPose/resolve/main/mmpose/models/data_preprocessors/data_preprocessor.py
- Command line
-
hf download hf://spaces/bdsqlsz/SDPose/mmpose/models/data_preprocessors/data_preprocessor.py
-
curl -L -o data_preprocessor.py https://huggingface.co/spaces/bdsqlsz/SDPose/resolve/main/mmpose/models/data_preprocessors/data_preprocessor.py
416 Bytes
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| # All rights reserved. | |
| # | |
| # This source code is licensed under the license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| from mmengine.model import ImgDataPreprocessor | |
| from mmpose.registry import MODELS | |
| class PoseDataPreprocessor(ImgDataPreprocessor): | |
| """Image pre-processor for pose estimation tasks.""" | |