Repository navigation
feat(avatar): 연습생 얼굴을 직접 그리는 아바타 (GPU 렌더 서버) - #40
Lee-Soyeon wants to merge 18 commits into
Conversation
호스팅 아바타(Simli 등) 대신 에이전트가 자기 영상 트랙에 얼굴을 직접 올린다. - fancall.agent.avatar: 말소리 → 40ms 단위 얼굴 프레임 + 같은 길이의 음성 프레임을 짝지어 내보내는 RenderedVideoGenerator. 말이 없을 때는 무음을 계속 보내 (continuous 렌더러) 듣는 얼굴이 멈추지 않고, 팬이 끊으면 남은 말을 버린다 - WebSocketRenderer: GPU 렌더 서버(tools/ditto_render_server.py, Ditto 스트리밍)와 통신. 서버는 80ms 뒤를 보고 그리므로 프레임이 늦게 오면 음성을 들고 기다린다 - FakeRenderer + IdleClip: GPU 없이도 통화가 돌아가게 대기 프레임에 입을 그린다 - 설정 RENDER_URL / RENDER_PHOTO / RENDER_LAYOUT / RENDER_IDLE_DIR / RENDER_WIDTH·HEIGHT. RENDER_URL이 있으면 호스팅 아바타보다 먼저 쓴다 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
Monochrome slide page with the mouth-model comparison videos, measurements, dialogue test results and the decisions left for the morning. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
Inference on a 6s clip drops from 164s (20 steps) to 51s (8 steps + DeepCache) and 40s (5 steps + DeepCache) on a T4 with the same mouth-sound correlation. Still slower than real time. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
…rding Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
- visual12-report.html: 유튜브 영통팬싸 12fps 분석(시선·머리·표정·손·장면), 요소별 실시간 생성 방법과 시간 예산. 실제 영상 프레임은 공개 레포라 제외 - naturalness-review.html: 10/29 눈 판정(사진 1장 방식 탈락, 얼굴 교체 통과), Puck·Gemma·LiveKit 크레딧, 남은 길 A/B Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AUm3yxum3wRFVbeon6JVQn
- §5: 시선·끄덕임·깜빡임·장면 길이·말할 때/들을 때 차이·얼굴 크기 합격선 (중앙값·사분위) - visual12-report: 144편 최종 집계, 입 재합성 실측(Fish ko 0.46 · Puck en 0.23 · Puck ko 0.11), 통화 지연 실측 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AUm3yxum3wRFVbeon6JVQn
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AUm3yxum3wRFVbeon6JVQn
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AUm3yxum3wRFVbeon6JVQn
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AUm3yxum3wRFVbeon6JVQn
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AUm3yxum3wRFVbeon6JVQn
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AUm3yxum3wRFVbeon6JVQn
📦 fancall 개발은 buppy 모노레포로 옮겼습니다fancall은 이제 algorima/buppy 안의 모듈(
이 PR#37 위에 쌓여 있습니다. 경로 대응
옮기는 방법algorima/buppy#1499와 같은 경로 매핑으로 이 PR의 커밋을 다시 쓴 뒤 buppy에 cherry-pick합니다. 작성자와 커밋 메시지가 그대로 남고, 메시지의 git clone https://github.com/algorima/fancall.git fancall-buppy && cd fancall-buppy
BASE=feat/pass-naturalness; PR_BRANCH=feat/rendered-avatar
for b in "$BASE" "$PR_BRANCH"; do git show-ref -q --verify "refs/heads/$b" || git branch "$b" "origin/$b"; done
git filter-repo --force --refs "$BASE" "$PR_BRANCH" \
--path backend/fancall/ --path backend/tests/unit/ \
--path frontend/src/client.ts --path frontend/src/index.ts --path frontend/src/schemas.ts \
--path frontend/src/components/ --path frontend/src/i18n/translations.ts \
--path frontend/src/i18n/locales/ --path frontend/src/repositories/ \
--path-rename backend/tests/unit/:backend/tests/unit/test_fancall/ \
--path-rename frontend/src/:frontend/src/fancall/ \
--message-callback 'import re
return re.sub(rb"\(#(\d+)\)", rb"(aioiahq/fancall#\1)", message)'cd ../buppy && git fetch origin main && git switch -c <새 브랜치> origin/main
git fetch ../fancall-buppy "$BASE:fancall/$BASE" "$PR_BRANCH:fancall/$PR_BRANCH"
git cherry-pick "fancall/$BASE..fancall/$PR_BRANCH"buppy에서 달라진 점
옮긴 뒤에는 이 PR에 buppy PR 링크를 남기고 닫아 주세요. Generated by Claude Code · session session_01T5SeyErbjJvce4P8rjmZzs Generated by Claude Code |
|
buppy 이식 순서 (기록용) buppy의 fancall 스택은 #1508 → #1503(#15·#18) → #1504(#26·#32·#27) → #1505(#31·#33) → #1506(#19·#20)입니다. 모두 fancall에서 이미 머지된 PR만 옮겼고, 지금 열린 PR과 겹치는 커밋은 없습니다.
#17 의존 문제 #34~#43은 모두 #17 브랜치( 이 PR은 5번 단계이고 #37 위에 있습니다. Generated by Claude Code · session session_01T5SeyErbjJvce4P8rjmZzs Generated by Claude Code |
|
@ywkim 이 PR은 buppy로 옮기지 않고 닫습니다.
🤖 Generated with Claude Code |
요약
연습생 얼굴을 우리 GPU 서버에서 직접 그려 통화 영상 트랙에 올립니다. Simli 같은 호스팅 아바타 없이, 사진 한 장과 말소리로 입·눈·고갯짓이 움직이는 얼굴을 만듭니다. 말이 없을 때도 얼굴이 멈추지 않고, 팬이 끊으면 입도 같이 멈춥니다.
목적
Simli 아바타는 "입이 어색하고 인위적"이라는 반려를 받았고(2026-10-26), Anam은 연습생 얼굴을 미성년으로 판정해 거절했으며, Tavus는 유료 요금제가 필요합니다. 공개 모델(Ditto, Apache-2.0)을 우리 서버에서 돌리면 분당 비용이 Anam·Tavus의 1/10 이하로 내려가고, 얼굴·입 모양을 우리가 직접 고칠 수 있습니다.
주요 변경 사항
직접 그리는 아바타 (
fancall.agent.avatar)RenderedVideoGenerator: 말소리를 40ms 단위로 렌더러에 보내 얼굴 프레임을 받고, 같은 40ms의 음성과 짝지어 내보냅니다. 렌더러가 느려도 입과 소리가 어긋나지 않습니다.WebSocketRenderer: GPU 렌더 서버와 통신. 서버가 80ms 뒤를 보고 그리므로 프레임이 늦게 오면 음성을 들고 기다립니다.FakeRenderer+IdleClip: GPU 없이도 통화가 돌아가게 대기 프레임에 입을 그립니다 (개발·테스트용).GPU 렌더 서버 (
tools/ditto_render_server.py)설정
RENDER_URL/RENDER_PHOTO/RENDER_LAYOUT/RENDER_IDLE_DIR/RENDER_WIDTH·RENDER_HEIGHT.RENDER_URL이 있으면 호스팅 아바타보다 먼저 씁니다.판정표 기록 (
docs/call-naturalness-criteria.md§3.1)테스트 체크리스트
RENDER_IDLE_DIR만 설정하고 통화를 걸면 GPU 없이 대기 프레임 얼굴이 나오고, 말할 때 입이 움직인다RENDER_URL로 렌더 서버에 연결하면 연습생 얼굴이 말소리에 맞춰 움직이고, 말이 없을 때도 깜빡인다아직 안 된 것
🤖 Generated with Claude Code
https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz