콘텐츠로 이동

Analysis

vims.AnalysisHandler

build(config, data) classmethod

Build an AnalysisHandler object based on the provided configuration and data.

Parameters:

Name Type Description Default
config Dict

AnalysisHandler를 build 하기위한 config가 담겨 있는 dictionary 입니다.

{
    "checkpoint_path": str,  # 체크포인트 경로
    "password": Optional[str],  # 체크포인트 패스워드 (default None)
    "inference_options": Optional[Dict], # 인퍼런스 옵션 config (default None). 구조는 `get_default_inference_option`의 Keys 참고.
    "device": Union[int, str],  # GPU 번호 (int) or "cpu" (str) (default "cpu")
}

required
data List[Dict]

AnalysisHandler가 사용 할 data가 담겨 있는 dictionary list 입니다.

[
    {
        "clip_path": str,  # clip 경로
        "start_frame_idx": int, # 시작할 프레임 인덱스 (default 0)
        "end_frame_idx": Optional[int], # 끝날 프레임 인덱스 (default None)
    },
]

required

Returns:

Name Type Description
AnalysisHandler AnalysisHandler

An instance of the AnalysisHandler class.

Raises:

Type Description
SomeException

An exception that may be raised during the build process.