Logo : Avatar Forge Pipeline

Avatar Forge Pipeline

Communauté
LycheeAILab
avatar-forge-pipeline

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

Présentation

ÉditeurLycheeAILab
Dépôtavatar-forge
Nom de la compétenceavatar-forge-pipeline
Étoiles
107
Forks
22
Fichiers inclus
23
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 23

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par LycheeAILab sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Avatar Forge Pipeline dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/LycheeAILab/avatar-forge/tree/main/plugins/avatar-forge/skills/avatar-forge-pipeline
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet 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/plugins/avatar-forge/skills/avatar-forge-pipeline .claude/skills/avatar-forge-pipeline
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Avatar Forge Pipeline dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Avatar Forge Pipeline dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Avatar Forge Pipeline n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Avatar Forge Pipeline

Identify the installed release

When asked about the installed or latest available capability, read the adjacent VERSION file and report that exact value. Do not infer a version from conversation history, README prose, authentication state, or an older standalone Skill. This package is release 2.3.0.

If both this plugin Skill and a legacy standalone ~/.codex/skills/avatar-forge-pipeline are present, stop and explain the name collision. Preserve the legacy directory as a timestamped backup outside the active skills directory, then start a new Codex task before validating capabilities.

Enforce the delivery contract

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

  • Never return, present, or call a RunningHub template the final digital-human video.
  • Never stop after the internal template task.
  • Never use RunningHub for fast clone or zeroshot inference.
  • Never expose a RunningHub URL, task ID, payload, or internal template file to the user.
  • Never replace the zeroshot result with a secondary packaged render.
  • Delete the local internal template after fast clone succeeds.

Choose a capability

  • Person video: authorized person MP4 + finished WAV/MP3, or script + reference voice / speaker_id → fast clone → zeroshot MP4. Use --video instead of --image; skip RunningHub entirely.

  • 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 the returned requestId as speakerId when no explicit speakerId is present; this is the identifier accepted by LycheeTTS inference.

  • Voice only: existing speaker_id + script → LycheeTTS MP3 through Lab. Use only when the user explicitly asks for audio.

  • Reference-video script: uploaded video or authorized Douyin URL → local video → original transcript → rewritten speaking script. Stop there unless the user asks to continue into voice or avatar generation.

Do not offer template-only or clone-only output as a finished user deliverable.

Run the complete workflow

  1. Confirm the user is authorized to use the portrait, reference voice, and script.
  2. Require one portrait image, one UTF-8 script file, and either one WAV/MP3 reference voice or an existing speaker_id.
  3. Authenticate through LycheeAILab. Never ask for provider credentials.
  4. Run the command below once. The script stores hidden recovery state beside the output and resumes the exact stage after interruption.
  5. Verify that the delivered MP4 has video and audio streams and positive duration.
  6. Return only the zeroshot MP4 path. For failures, report only the failed stage and a sanitized error; never expose internal provider IDs, URLs, payloads, or media.
powershell
python scripts/run_pipeline.py `
  --image input/person.png `
  --voice input/reference.wav `
  --script-file input/script.txt `
  --output output/avatar-zeroshot.mp4

Resolve scripts/, assets/, and references/ relative to this SKILL.md. On WorkBuddy, ${CODEBUDDY_SKILL_DIR} points to this directory; on Codex, use the installed Skill directory supplied by the host.

Always use the bundled assets/template-driver.wav for the internal motion template. Do not ask the user for template text or template-driving audio. Never send the user's script, reference voice, finished audio, or LycheeTTS target speech to the template stage.

Before submitting any portrait, show this notice and obtain confirmation:

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

Inspect the image when possible. Reject or request a replacement when facial features are unclear, important facial areas are obscured, the face is cropped, exposure is unusable, or subject scale is unsuitable.

Prepare a script from video

For using the person in a video, do not transcribe it or extract a portrait for RunningHub. Read the person-video instructions below. This section is only for extracting/reworking spoken copy.

Read references/video-recreation.md before downloading, transcribing, or rewriting a reference video.

The Skill includes a cookie-free Douyin engine derived from the user's proven DouK request flow, with yt-dlp as a fallback. If python scripts/doctor.py reports dependencies missing, install requirements.txt automatically before continuing. Never require the user to install a separate downloader, export browser cookies, use Edge/Chrome DPAPI, or install a ChatGPT browser extension.

For an uploaded/local video:

powershell
python scripts/prepare_video_source.py --video input/reference.mp4

For an authorized Douyin link, use the downloader installed with this Skill:

powershell
python scripts/prepare_video_source.py `
  --douyin-url "https://v.douyin.com/..." `
  --output 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 tell the user to download the video manually merely because Edge DPAPI or a browser extension is unavailable. If both engines fail, report their sanitized errors and stop; never ask for, read, print, copy, or save browser cookies.

Prefer a trusted transcription tool already available to the agent. For fully local transcription, install the optional dependency only when needed and run:

powershell
python -m pip install -r requirements-transcription.txt
python scripts/transcribe_video.py input/reference.mp4 --output output/transcript-original.txt

Rewrite the transcript as a new spoken script and save it separately as script-rewritten.txt. Preserve the original transcript, factual meaning, names, and numbers; change structure, hook, pacing, transitions, and conclusion rather than only replacing synonyms. Never fabricate claims. Ask for the desired platform, duration, audience, tone, or call to action only when those cannot be reasonably inferred.

The image workflow's internal order is fixed (person-video mode skips step 1 and uses the uploaded MP4 in step 3):

  1. Use the portrait and bundled fixed short audio to create one internal motion template.
  2. If only a reference voice is supplied, clone it once through Lab, save the returned requestId as speakerId, then use the protected Lab voice endpoint to generate target speech. Retry transient “voice preparing” responses with bounded backoff. The client must send only the user's Lab bearer token; the LycheeTTS API Key remains encrypted in the Lab database.
  3. Send the internal template to LycheeAILab fast clone (v2clone) and obtain player_id.
  4. Send player_id and the LycheeTTS target speech to LycheeAILab zeroshot inference.

Submit a reference voice separately when cloning is needed:

powershell
python scripts/run_pipeline.py --clone-voice --voice input/reference.wav

The clone response may contain only requestId. LycheeTTS accepts that identifier as speakerId; continue automatically and never ask the user to retrieve it manually. Do not invent a clone-status endpoint. 5. Download and return only the zeroshot MP4.

RunningHub is allowed only behind step 1. Steps 3 and 4 must use the LycheeAILab digital-human platform.

Use a person video directly

Confirm authorization to use the depicted person's likeness and target voice. Inspect the video: prefer one continuously visible person, a clear unobstructed face, and no scene cuts. Request a replacement if the subject is ambiguous or unsuitable. This fast-clone + zeroshot path does not guarantee exact preservation of the source's movements, duration, or every scene.

Use a readable MP4 (at most 100 MiB, 120 seconds, 1080p (long edge ≤1920 / short edge ≤1080), 25fps, FFprobe required). Do not silently transcode, trim, replace it with a photo, or route through RunningHub. Source video is clone material; its original audio is not automatically the target speech or a voice-cloning reference.

powershell
python scripts/run_pipeline.py --video input/person.mp4 --avatar-only --audio input/speech.mp3 --output output/avatar-zeroshot.mp4

For script-driven speech, replace --avatar-only --audio ... with --script-file input/script.txt --voice input/reference.wav (or --speaker-id ...). The source video is preserved. Reuse saved assetId/playerId with --infer-only for later speech changes. Final speech/video is limited to 300 seconds by Lab; if exceeded, explain the maximum and direct long-video requests to https://lab.lycheeai.com.cn/ customer support. Never truncate silently.

Recovery rules

  • Re-run the same command with the same --output; the hidden .avatar-forge/<output-stem>/state.json resumes saved stages.
  • Do not use --reset-state after a timeout unless the user explicitly authorizes a new paid workflow.
  • A timeout is not failure. Query the saved template, clone, or inference ID.
  • Never resubmit the internal template because fast clone or zeroshot is still processing.
  • Never resubmit fast clone after player_id is stored.
  • Never resubmit zeroshot after its request ID is stored.

Authenticate safely

Run python scripts/run_pipeline.py --login-only when authentication is needed. The browser uses https://lab.lycheeai.com.cn; a randomized loopback callback returns only the user's revocable Lab API Key. LycheeTTS, RunningHub, and digital-human provider credentials remain server-side.

Load references when needed

Verify without spending

  • Run python -m py_compile scripts/run_pipeline.py scripts/prepare_video_source.py scripts/douk_downloader/download.py scripts/douk_downloader/a_bogus.py scripts/transcribe_video.py scripts/test_pipeline_no_spend.py.
  • Run python scripts/test_workflow_contract.py, python scripts/test_pipeline_no_spend.py, python scripts/test_video_source_no_network.py, python scripts/test_douyin_downloader_no_network.py, and the secret scan.
  • Do not submit a real provider task solely to test installation or documentation.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Avatar Forge Pipeline ?

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

Pourquoi utiliser Avatar Forge Pipeline sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Avatar Forge Pipeline se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Avatar Forge Pipeline dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/LycheeAILab/avatar-forge/tree/main/plugins/avatar-forge/skills/avatar-forge-pipeline. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Avatar Forge Pipeline ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Avatar Forge Pipeline ?

Autant que vous le souhaitez. Vous pouvez utiliser Avatar Forge Pipeline avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Avatar Forge Pipeline est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par LycheeAILab sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇