Logo: Avatar Forge Pipeline

Avatar Forge Pipeline

Communautéit
LycheeAILab
avatar-forge-pipeline

Create a final zeroshot talking-avatar video or prepare its script from a reference video. Use when WorkBuddy should accept an uploaded video or authorized Douyin link, transcribe and rewrite spoken copy, authenticate with LycheeAILab, clone an authorized voice, synthesize target speech, build an internal motion template, fast-clone a digital human, run zeroshot inference, or resume an interrupted job.

Iwwersiicht

EditeurLycheeAILab
Repositoryavatar-forge
Skill-Nummavatar-forge-pipeline
Stären
107
Forks
22
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    LycheeAILab huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Avatar Forge Pipeline an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/LycheeAILab/avatar-forge/tree/main/workbuddy/avatar-forge-pipeline
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LycheeAILab/avatar-forge.git /tmp/avatar-forge
mkdir -p .claude/skills
cp -r /tmp/avatar-forge/workbuddy/avatar-forge-pipeline .claude/skills/avatar-forge-pipeline
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Avatar Forge Pipeline an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Avatar Forge Pipeline automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Avatar Forge Pipeline net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Avatar Forge Pipeline for WorkBuddy

Identify the installed release

Read the adjacent VERSION file when asked which release is installed. Report that exact value instead of inferring a version from conversation history or documentation prose. This package is release 2.3.0.

Keep the final-output contract

Return only the final MP4 produced by LycheeAILab zeroshot inference unless the user explicitly requests standalone LycheeTTS audio.

  • RunningHub is allowed only for the internal motion-template stage.
  • Never return the RunningHub template, URL, task ID, payload, or file.
  • Fast clone and zeroshot inference must use the LycheeAILab digital-human platform.
  • Delete the internal template after fast clone succeeds.
  • Never resubmit a paid stage when a saved task can be resumed.

Select the requested capability

  • Person video: authorized person MP4 + finished audio, or script + reference voice / speaker_id -> fast clone -> zeroshot. Use --video instead of --image; no RunningHub calls.

  • Complete: portrait + authorized reference voice or existing LycheeTTS speaker_id + script -> internal template -> target speech -> fast clone -> zeroshot MP4.

  • Avatar only: portrait + finished WAV/MP3 -> internal template -> fast clone -> zeroshot MP4.

  • Zeroshot only: ready asset_id + player_id + finished WAV/MP3 -> zeroshot MP4.

  • Clone voice: authorized reference audio -> LycheeTTS clone through Lab; normalize requestId as speakerId when needed.

  • Voice only: existing speaker_id + script -> LycheeTTS MP3 through Lab, only when explicitly requested.

  • Reference-video script: uploaded video or authorized Douyin URL -> local video -> original transcript -> rewritten speaking script. Stop unless the user asks to continue.

Run from the Skill directory

WorkBuddy exposes the installed directory as ${CODEBUDDY_SKILL_DIR}. Use absolute paths for all user inputs and outputs.

powershell
python "${CODEBUDDY_SKILL_DIR}/scripts/run_pipeline.py" `
  --image "C:/absolute/input/person.png" `
  --voice "C:/absolute/input/reference.wav" `
  --script-file "C:/absolute/input/script.txt" `
  --output "C:/absolute/output/avatar-zeroshot.mp4"

On macOS or Linux:

bash
python3 "${CODEBUDDY_SKILL_DIR}/scripts/run_pipeline.py" \
  --image "/absolute/input/person.png" \
  --voice "/absolute/input/reference.wav" \
  --script-file "/absolute/input/script.txt" \
  --output "/absolute/output/avatar-zeroshot.mp4"

Before any paid stage, confirm that the user is authorized to use the portrait, voice, and script. If authentication is missing, run:

powershell
python "${CODEBUDDY_SKILL_DIR}/scripts/run_pipeline.py" --login-only

The browser must open https://lab.lycheeai.com.cn. The randomized 127.0.0.1 callback is local-only and returns the user's revocable Lab credential to the local process; it is not a web service address.

Before uploading a portrait, show this notice and obtain confirmation:

请确认人物脸部清晰、没有遮挡、完整露出,且人物在画面中的比例适中。模糊、遮脸、面部超出画面或人物过大/过小都会影响数字人效果。

Inspect the image when possible. Request a replacement if the face is unclear, obscured, cropped, unusably exposed, or poorly scaled.

Prepare a script from video

This section extracts spoken copy only. If the user wants to animate the person in the video, use the direct person-video workflow below, not a portrait extraction or transcription workflow.

Read references/video-recreation.md first. For a local or uploaded video:

The WorkBuddy package includes a cookie-free Douyin engine derived from the proven DouK request flow, with yt-dlp as a fallback. The installer installs requirements.txt; do not require a separate downloader project, browser cookies, Windows DPAPI, or a ChatGPT browser extension.

powershell
python "${CODEBUDDY_SKILL_DIR}/scripts/prepare_video_source.py" --video "C:/absolute/input/reference.mp4"

For an authorized Douyin URL:

powershell
python "${CODEBUDDY_SKILL_DIR}/scripts/prepare_video_source.py" `
  --douyin-url "https://v.douyin.com/..." `
  --output "C:/absolute/output/reference.mp4"

The command first uses the bundled cookie-free engine and automatically falls back to yt-dlp. Do not add browser-cookie flags or send the user to manually download merely because DPAPI or an extension is unavailable. Never ask for, read, print, copy, or save browser cookies.

Prefer an available trusted transcription tool. For optional fully local transcription:

powershell
python -m pip install -r "${CODEBUDDY_SKILL_DIR}/requirements-transcription.txt"
python "${CODEBUDDY_SKILL_DIR}/scripts/transcribe_video.py" "C:/absolute/input/reference.mp4" --output "C:/absolute/output/transcript-original.txt"

Keep transcript-original.txt unchanged and save the rewrite separately as script-rewritten.txt. Preserve facts, names, and numbers; rewrite the hook, structure, pacing, transitions, and conclusion. Never fabricate claims. Do not continue into voice or avatar generation unless the user asks.

Preserve the fixed stage order

The following template step applies only to images. Person-video mode skips it and sends the original MP4 to fast clone.

  1. Create the internal motion template from the portrait and bundled assets/template-driver.wav.
  2. Clone the authorized reference voice when needed and save the returned requestId as speakerId.
  3. Generate the formal target speech through the protected LycheeAILab LycheeTTS endpoint.
  4. Fast-clone the avatar through LycheeAILab and obtain player_id.
  5. Run LycheeAILab zeroshot inference with player_id and the formal target speech.
  6. Verify the MP4 has audio, video, and positive duration; return only that MP4.

Never use the user's script, reference voice, target audio, or LycheeTTS output to drive the template stage. Never ask for provider keys; the local client sends only the user's Lab credential.

Person-video workflow

Confirm authorization for the depicted person and target voice. Prefer a single clear, unobstructed face without cuts; do not promise exact preservation of source actions/scenes. Require a readable MP4 up to 100 MiB, 120 seconds, 1080p (long edge ≤1920 / short edge ≤1080), 25fps and FFprobe. Preserve the user's source file; never treat it as a disposable internal template or send it to RunningHub.

powershell
python "${CODEBUDDY_SKILL_DIR}/scripts/run_pipeline.py" --video "C:/absolute/person.mp4" --avatar-only --audio "C:/absolute/speech.mp3" --output "C:/absolute/result.mp4"

For generated speech replace --avatar-only --audio ... with --script-file ... --voice ... or --script-file ... --speaker-id .... Original video audio is not implicitly a voice reference. Persist assetId, clone and inference IDs, and playerId; reuse the last two asset/player values with --infer-only for future scripts. Lab limits final output to 300 seconds; direct long-video requests to https://lab.lycheeai.com.cn/ customer support, never silently trim.

Recovery rules

  • Re-run the identical command and output path to resume from .avatar-forge/<output-stem>/state.json.
  • A timeout is not a failure. Poll the saved template, clone, or inference request.
  • Do not use --reset-state unless the user explicitly authorizes a new paid workflow.
  • Do not resubmit template, fast-clone, or zeroshot stages whose task IDs are already saved.

Verify without spending

After installation, run only the local doctor unless the user explicitly authorizes a real generation:

powershell
python "${CODEBUDDY_SKILL_DIR}/scripts/doctor.py"

The doctor checks Python, requests, package files, and the fixed template-audio hash. It does not authenticate, upload media, or submit provider tasks.

Read supporting contracts when needed

  • Read references/workflow.md before changing or debugging stage order.
  • Read references/api-contracts.md for Lab request and response fields.
  • Read references/verification-gates.md before declaring a generated deliverable complete.
  • Read references/video-recreation.md before downloading, transcribing, or rewriting a reference video.

Heefeg gestallte Froen

Wat mécht de KI-Skill Avatar Forge Pipeline?

Create a final zeroshot talking-avatar video or prepare its script from a reference video. Use when WorkBuddy should accept an uploaded video or authorized Douyin link, transcribe and rewrite spoken copy, authenticate with LycheeAILab, clone an authorized voice, synthesize target speech, build an internal motion template, fast-clone a digital human, run zeroshot inference, or resume an interrupted job.

Firwat Avatar Forge Pipeline op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Avatar Forge Pipeline besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Avatar Forge Pipeline an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/LycheeAILab/avatar-forge/tree/main/workbuddy/avatar-forge-pipeline an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Avatar Forge Pipeline benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Avatar Forge Pipeline benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Avatar Forge Pipeline domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Avatar Forge Pipeline gratis?

Jo. LycheeAILab huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇