Spaces:
Running on Zero
Running on Zero
Download fab/data/transforms/__init__.py from hugging-apps/fab-body-estimation: direct link, hf CLI and curl.
- Browser
- Download file 585 Bytes
-
https://huggingface.co/spaces/hugging-apps/fab-body-estimation/resolve/main/fab/data/transforms/__init__.py
- Command line
-
hf download hf://spaces/hugging-apps/fab-body-estimation/fab/data/transforms/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/hugging-apps/fab-body-estimation/resolve/main/fab/data/transforms/__init__.py
585 Bytes
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| # SPDX-License-Identifier: LicenseRef-SAM-License | |
| # From SAM 3D Body (https://github.com/facebookresearch/sam-3d-body), modified for FAB; licence: third_party_licenses/SAM-License.txt | |
| from .bbox_utils import ( | |
| bbox_cs2xywh, | |
| bbox_cs2xyxy, | |
| bbox_xywh2cs, | |
| bbox_xywh2xyxy, | |
| bbox_xyxy2cs, | |
| bbox_xyxy2xywh, | |
| flip_bbox, | |
| get_udp_warp_matrix, | |
| get_warp_matrix, | |
| ) | |
| from .common import ( | |
| Compose, | |
| GetBBoxCenterScale, | |
| NormalizeKeypoint, | |
| SquarePad, | |
| TopdownAffine, | |
| VisionTransformWrapper, | |
| ) | |