Skip to content

Shenrui-Ma/video-regen-recipes / templates/character-short/bit-by-bit-heartache

bit-by-bit-heartache

Verified

用角色参考图在本机制作 Heartache 连续动作配乐短片.

FileKindSize
.gitignoreother430 B
LICENSEother1.1 KB
LICENSES.mdmarkdown1.4 KB
README.mdmarkdown9.3 KB
SKILL.mdskill md7.3 KB
assets/README.mdmarkdown4.9 KB
assets/default/manifest.jsonconfig3.8 KB
assets/runtime-assets.jsonconfig5.5 KB
profile.jsonconfig3.8 KB
prompts/ref2va.template.txtmarkdown1.6 KB
prompts/yaoguang.historical.txtmarkdown5.0 KB
references/background-removal.mdmarkdown5.5 KB
references/changelog.mdmarkdown916 B
references/character-input.mdmarkdown4.7 KB
references/deployment.mdmarkdown4.9 KB
references/editing.mdmarkdown3.7 KB
references/environment.lock.jsonconfig1.5 KB
references/first-segment-validation.jsonconfig1.8 KB
references/generation.mdmarkdown3.8 KB
references/media-preflight.mdmarkdown4.2 KB
references/native-continuation.mdmarkdown17.8 KB
references/node-sources.jsonconfig6.7 KB
references/node-sources.mdmarkdown3.8 KB
references/package-verification.jsonconfig1.7 KB
references/reference-check.jsonconfig968 B
references/reproduction.mdmarkdown10.1 KB
references/validation.mdmarkdown2.6 KB
references/workflow-recovery.mdmarkdown2.2 KB
references/workflow.lock.jsonconfig1.2 KB
references/yaoguang-run.jsonconfig7.4 KB
scripts/character/prepare_character.pyscript6.5 KB
scripts/distribution/fetch_assets.pyscript5.8 KB
scripts/distribution/package_skill.pyscript5.6 KB
scripts/plan_segments.pyscript3.4 KB
scripts/prepare_driver.pyscript5.2 KB
scripts/render_default.pyscript5.5 KB
scripts/runtime/graphs.pyscript11.3 KB
scripts/runtime/heartache.pyscript14.6 KB
scripts/runtime/local_io.pyscript3.3 KB
scripts/runtime/media.pyscript13.2 KB
scripts/runtime/run_segment.pyscript13.3 KB
sources.mdmarkdown2.4 KB
tests/test_background_removal.pyscript2.6 KB
tests/test_character_input.pyscript12.2 KB
tests/test_default.pyscript879 B
tests/test_distribution.pyscript12.3 KB
tests/test_media_preflight.pyscript2.1 KB
tests/test_prepare_driver.pyscript1.9 KB
tests/test_release_review.pyscript1.7 KB
tests/test_reproduction.pyscript1.9 KB
tests/test_runtime_cli.pyscript11.3 KB
tests/test_runtime_graph.pyscript4.8 KB
tests/test_runtime_io.pyscript2.1 KB
tests/test_runtime_media.pyscript10.2 KB
tests/test_runtime_runner.pyscript1.6 KB
tests/test_segment_plan.pyscript3.4 KB
tests/test_skill_contract.pyscript1.6 KB
workflows/continue.editor.jsonconfig23.8 KB
workflows/first.editor.jsonconfig19.8 KB
workflows/node-schema.jsonconfig22.2 KB
workflows/provenance.jsonconfig911 B

tests/test_background_removal.py

View on GitHub
"""Offline checks for the optional RMBG step.

This template no longer carries the background-removal graph: it references the
toolkit package instead. These tests keep the pointer honest and make sure the
cut-out step stays out of the H3 graphs. No model or GPU execution.
"""
import json
from pathlib import Path
import unittest

ROOT = Path(__file__).resolve().parents[1]
PIN = '667eafd'


class BackgroundRemovalTests(unittest.TestCase):
    def test_template_no_longer_carries_the_rmbg_graph(self):
        for stale in ('workflows/rmbg.api.json',
                      'references/rmbg-models.json',
                      'references/rmbg-model-manifest.json'):
            self.assertFalse((ROOT / stale).is_file(), stale)

    def test_environment_lock_points_at_the_optional_workflow(self):
        lock = json.loads((ROOT / 'references/environment.lock.json').read_text())
        rows = lock['optional_workflows']
        self.assertEqual(len(rows), 1)
        row = rows[0]
        self.assertEqual(row['id'], 'rmbg-2-character-alpha')
        self.assertEqual(row['path'], 'workflows/images/rmbg-2-alpha')
        self.assertIn(PIN, row['tree_url'])
        self.assertIn('去背景', row['purpose'])

    def test_guide_references_the_toolkit_package_and_keeps_the_rules(self):
        text = (ROOT / 'references/background-removal.md').read_text()
        self.assertIn('workflows/images/rmbg-2-alpha', text)
        self.assertNotIn('workflows/rmbg.api.json', text)
        # 槽位语义与白底合成必须留下:丢掉任何一条都会误导使用者
        for kept in ('输出0', '输出2', 'character-white', '#FFFFFF'):
            self.assertIn(kept, text, kept)
        # 节点许可与模型授权是两件事
        self.assertIn('GPL-3.0', text)
        self.assertIn('BRIA', text)
        # 占位符名要与 toolkit 的图一致
        self.assertIn('{{input_image}}', text)
        self.assertIn('{{alpha_prefix}}', text)
        self.assertIn('{{mask_prefix}}', text)

    def test_character_input_points_at_the_toolkit_package(self):
        text = (ROOT / 'references/character-input.md').read_text()
        self.assertIn('rmbg-2-alpha', text)
        self.assertNotIn('workflows/rmbg.api.json', text)

    def test_rmbg_is_not_a_dependency_of_the_h3_graphs(self):
        graphs = list((ROOT / 'workflows').glob('*.api.json')) + list((ROOT / 'workflows').glob('*.editor.json'))
        self.assertTrue(graphs, 'expected the H3 graphs to be present')
        for other in graphs:
            self.assertNotIn('"class_type": "RMBG"', other.read_text(), other.name)


if __name__ == '__main__':
    unittest.main()
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall