render까지 8초 shortform pipeline 형성
This commit is contained in:
1 parent
05747f6b8f
commit
659fd53b97
30 files changed
+1203
-30
No files matched your search
@@ -0,0 +1,9 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class BgmAudio:
|
||||
mp3: bytes
|
||||
seconds: int # 요청한 목표 길이
|
||||
duration: float # Suno가 돌려준 실제 길이
|
||||
task_id: str
|
||||
@@ -0,0 +1,28 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class FrameVerdict(BaseModel):
|
||||
index: int
|
||||
time: float
|
||||
legible: bool
|
||||
broken: str
|
||||
|
||||
|
||||
class TitleGateVerdict(BaseModel):
|
||||
passed: bool
|
||||
reason: str = ""
|
||||
skip: str = "" # 판단 근거가 없어 통과시킨 사유
|
||||
pixel_score: float | None = None # 글리프 휘도차 A
|
||||
pixel_hard: bool = False # 하드컷 초과 — VLM 2단으로 넘어감
|
||||
samples: list[float] = []
|
||||
frames: list[FrameVerdict] = []
|
||||
|
||||
|
||||
@dataclass
|
||||
class I2vResult:
|
||||
clip: bytes
|
||||
credits: float # generate create 응답에 크레딧이 없어 cost 조회값을 쓴다
|
||||
model: str
|
||||
title_gate: TitleGateVerdict
|
||||
@@ -0,0 +1,11 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class RenderResult:
|
||||
video: bytes
|
||||
thumbnail: bytes # 첫 프레임. 정지 광고판 컷이 곧 썸네일이다
|
||||
duration: float
|
||||
frames: int
|
||||
width: int
|
||||
height: int
|
||||
@@ -21,7 +21,7 @@ class NarrationCue(BaseModel):
|
||||
|
||||
|
||||
class NarrationTimeline(BaseModel):
|
||||
"""씬·카메라 비트가 이 큐에 맞춰진다. 오디오가 타이밍을 결정한다."""
|
||||
"""씬·카메라 비트를 여기 큐에 맞춘다."""
|
||||
engine: str
|
||||
voice: str
|
||||
lead_in: float
|
||||
|
||||
Reference in new issue
Block a user