Spaces:
Paused
Paused
Download src/config/crop_config.py from SubspaceDev/LivePortrait: direct link, hf CLI and curl.
- Browser
- Download file 439 Bytes
-
https://huggingface.co/spaces/SubspaceDev/LivePortrait/resolve/main/src/config/crop_config.py
- Command line
-
hf download hf://spaces/SubspaceDev/LivePortrait/src/config/crop_config.py
-
curl -L -o crop_config.py https://huggingface.co/spaces/SubspaceDev/LivePortrait/resolve/main/src/config/crop_config.py
439 Bytes
| # coding: utf-8 | |
| """ | |
| parameters used for crop faces | |
| """ | |
| import os.path as osp | |
| from dataclasses import dataclass | |
| from typing import Union, List | |
| from .base_config import PrintableConfig | |
| # use repr from PrintableConfig | |
| class CropConfig(PrintableConfig): | |
| dsize: int = 512 # crop size | |
| scale: float = 2.3 # scale factor | |
| vx_ratio: float = 0 # vx ratio | |
| vy_ratio: float = -0.125 # vy ratio +up, -down | |