Spaces:
Runtime error
Runtime error
# 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 | |