test 파일 이동
This commit is contained in:
parent
659fd53b97
commit
5c84733a8b
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
# 프로젝트
|
||||
backend/test_*/
|
||||
# 프로젝트 — 폴더를 옮겨도 따라가도록 경로 없이 잡는다
|
||||
test_result/
|
||||
test_image/
|
||||
# 시크릿
|
||||
.env
|
||||
.env.*
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
"""bgm 수동 확인용. **Suno는 실제 과금이 나간다.**
|
||||
|
||||
사용: uv run python test_bgm.py <포스터경로>
|
||||
사용: uv run python -m tests.test_bgm <포스터경로>
|
||||
test_result/<이름>.narration.txt(bgm_style)와 <이름>.tts.txt(total)를 재사용한다.
|
||||
없으면 앞 단계부터 돌린다. 결과는 <이름>.bgm.mp3 와 <이름>.bgm.txt.
|
||||
"""
|
||||
@ -12,7 +12,7 @@ from pathlib import Path
|
||||
from models.tts import NarrationTimeline
|
||||
from services.bgm import generate_bgm
|
||||
from services.tts import synthesize
|
||||
from test_tts import load_narration
|
||||
from tests.test_tts import load_narration
|
||||
|
||||
TEST_RESULT_DIR = Path(__file__).parent / "test_result"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
"""detect 수동 확인용.
|
||||
|
||||
사용: uv run python test_detect.py <포스터경로>
|
||||
사용: uv run python -m tests.test_detect <포스터경로>
|
||||
결과는 test_result/ 아래에 .detect.txt / .grid.jpg / .check.jpg 세 파일로 떨어진다.
|
||||
"""
|
||||
import asyncio
|
||||
@ -1,6 +1,6 @@
|
||||
"""i2v 수동 확인용.
|
||||
|
||||
사용: uv run python test_i2v.py <포스터경로>
|
||||
사용: uv run python -m tests.test_i2v <포스터경로>
|
||||
test_result/<이름>.i2v.txt(프롬프트)와 <이름>.detect.txt(영역)를 쓴다.
|
||||
결과는 <이름>.clip.mp4 와 <이름>.title_gate.txt.
|
||||
"""
|
||||
@ -1,6 +1,6 @@
|
||||
"""motion 수동 확인용.
|
||||
|
||||
사용: uv run python test_motion.py <포스터경로> [모션키,쉼표구분]
|
||||
사용: uv run python -m tests.test_motion <포스터경로> [모션키,쉼표구분]
|
||||
모션키를 주면 VLM을 건너뛰고 그 목록으로 프롬프트를 만든다(빈 문자열이면 0종).
|
||||
결과는 test_result/<이름>.motion.txt(채택·탈락)와 <이름>.i2v.txt(프롬프트 원문)로 떨어진다.
|
||||
"""
|
||||
@ -1,6 +1,6 @@
|
||||
"""narration 수동 확인용.
|
||||
|
||||
사용: uv run python test_narration.py <포스터경로>
|
||||
사용: uv run python -m tests.test_narration <포스터경로>
|
||||
같은 포스터의 test_result/<이름>.detect.txt 가 있으면 재사용하고, 없으면 detect부터 돌린다.
|
||||
결과는 test_result/<이름>.narration.txt 로 떨어진다.
|
||||
"""
|
||||
@ -1,6 +1,6 @@
|
||||
"""render 수동 확인용.
|
||||
|
||||
사용: uv run python test_render.py <포스터경로> [클립경로]
|
||||
사용: uv run python -m tests.test_render <포스터경로> [클립경로]
|
||||
클립을 생략하면 test_result/<이름>.clip.mp4 를 쓴다.
|
||||
나레이션(.tts.mp3)·타임라인(.tts.txt)·BGM(.bgm.mp3)은 있으면 얹고 없으면 건너뛴다.
|
||||
결과는 <이름>.final.mp4 와 <이름>.thumb.jpg.
|
||||
@ -1,6 +1,6 @@
|
||||
"""tts 수동 확인용.
|
||||
|
||||
사용: uv run python test_tts.py <포스터경로>
|
||||
사용: uv run python -m tests.test_tts <포스터경로>
|
||||
test_result/<이름>.narration.txt 가 있으면 재사용하고, 없으면 앞 단계부터 돌린다.
|
||||
결과는 <이름>.tts.mp3(합쳐진 나레이션)와 <이름>.tts.txt(타임라인)로 떨어진다.
|
||||
"""
|
||||
@ -11,7 +11,7 @@ from pathlib import Path
|
||||
from answers.narration_answer import NarrationAnswer
|
||||
from services.narration import generate_narration
|
||||
from services.tts import synthesize
|
||||
from test_narration import load_regions
|
||||
from tests.test_narration import load_regions
|
||||
|
||||
TEST_RESULT_DIR = Path(__file__).parent / "test_result"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user