lcode-cli 0.45.0__tar.gz → 0.46.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/CHANGELOG.md +17 -1
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/PKG-INFO +1 -1
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/modes.md +14 -2
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/quickstart.md +1 -1
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/usage.md +1 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/__init__.py +1 -1
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/media.py +154 -18
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/media.toml +58 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/media_catalog.py +2 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/repl.py +35 -4
- lcode_cli-0.46.0/src/lcode/workflows/smooth-film.json +78 -0
- lcode_cli-0.46.0/src/lcode/workflows/sound-stable-audio.json +144 -0
- lcode_cli-0.46.0/src/lcode/workflows/upscale-video-esrgan.json +89 -0
- lcode_cli-0.46.0/src/lcode/workflows/wan21-vace.json +173 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_media_catalog.py +6 -4
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_video.py +92 -1
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.editorconfig +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.github/CODEOWNERS +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.github/ISSUE_TEMPLATE/model_request.yml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.github/dependabot.yml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.github/workflows/ci.yml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.github/workflows/docs.yml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.github/workflows/release.yml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.gitignore +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/.pre-commit-config.yaml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/AGENTS.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/CODE_OF_CONDUCT.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/CONTRIBUTING.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/LICENSE +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/README.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/SECURITY.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/action.yml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/agents.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/assets/demo.svg +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/assets/extra.css +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/automation.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/bench.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/changelog.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/commands.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/configuration.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/contributing.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/editors.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/git.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/hooks.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/how-it-works.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/index.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/installation.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/lsp.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/mcp.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/memory.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/models.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/sandbox.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/search.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/servers.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/docs/troubleshooting.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/examples/README.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/examples/api/fix_tests.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/examples/commands/review.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/examples/skills/commit-message/SKILL.md +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/examples/skills/commit-message/scripts/staged.sh +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/install.sh +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/mkdocs.yml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/overrides/main.html +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/pyproject.toml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/scripts/make_logos.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/scripts/record_demo.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/scripts/social-preview.html +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/__main__.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/acp.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/action.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/agent.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/api.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/backends.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/bench.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/bench_backend.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/bench_runtime.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/catalog.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/checkpoints.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/checks.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/cli.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/clipboard.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/cloud.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/codesearch.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/comfy.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/config.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/context.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/edits.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/escalate.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/extensions.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/frontmatter.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/gitflow.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/hardware.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/hooks.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/imageopts.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/jobs.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/limits.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/lsp.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/matching.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/mcp/__init__.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/mcp/auth.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/mcp/catalog.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/mcp/catalog.toml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/mcp/client.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/mcp/commands.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/mcp/config.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/mcp/http.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/mcp/manager.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/mcp/protocol.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/mcp/server.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/mcp/stdio.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/memory.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/models.toml +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/modes.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/notify.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/ollama.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/permissions.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/planning.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/preview.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/render.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/repeats.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/repomap.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/residency.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/review.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/sandbox.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/screenshots.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/secretscan.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/servers/__init__.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/servers/encord.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/servers/valohai.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/servers/xai.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/sessions.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/steer.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/subagents.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/tools.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/unreachable.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/update.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/vision.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/web.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/workflows/__init__.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/workflows/flux2-klein-4b-t2i.json +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/workflows/remove-background.json +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/workflows/upscale-esrgan.json +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/workflows/wan21-fun-camera.json +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/workflows/wan22-fun-inp-5b.json +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/workflows/wan22-ti2v-5b.json +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/src/lcode/workflows/z-image-turbo-t2i.json +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/comfy_standin.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/conftest.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/fake_lsp_server.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/fake_mcp_server.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_acp.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_action.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_agent.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_api.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_backends.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_bench.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_catalog.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_checkpoints.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_checks.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_cli.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_clipboard.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_cloud.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_codesearch.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_comfy.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_config.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_context.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_context_picker.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_escalate.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_extensions.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_gitflow.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_hooks.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_image_edit.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_image_generate.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_jobs.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_look.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_lsp.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_matching.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_mcp.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_memory.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_model_picker.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_modes.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_permissions.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_plan_mode.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_repeats.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_repomap.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_residency.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_review.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_robustness.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_sandbox.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_screenshots.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_secretscan.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_servers.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_sessions.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_steer.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_stuck.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_subagents.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_tools.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_update.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_vision.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_web.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/tests/test_xai.py +0 -0
- {lcode_cli-0.45.0 → lcode_cli-0.46.0}/uv.lock +0 -0
|
@@ -6,6 +6,21 @@ All notable changes to lcode are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.46.0] - 2026-10-24
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Video mode: references, restyling, smoother and bigger clips, sound** (#154, part 2). See
|
|
14
|
+
[Video mode](https://nasser1941.github.io/lcode/modes/#video-mode).
|
|
15
|
+
- **`@cat.png @hat.png --ref …`** makes a clip that follows reference pictures, and
|
|
16
|
+
**`/restyle 4 …`** makes a clip again in a new look following its outlines (Wan 2.1 VACE 1.3B).
|
|
17
|
+
- **`/smooth 4`** doubles (or quadruples) the frames with FILM, **`/upscale 4`** now works on clips,
|
|
18
|
+
and **`/sound 4 …`** adds sound made by Stable Audio Open to a clip.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Extending a clip keeps its pace: a 16 fps camera clip extended with the 24 fps model played too fast.
|
|
23
|
+
|
|
9
24
|
## [0.45.0] - 2026-10-24
|
|
10
25
|
|
|
11
26
|
### Added
|
|
@@ -982,7 +997,8 @@ First public release.
|
|
|
982
997
|
- `AGENTS.md` project instructions and `/init` to generate them.
|
|
983
998
|
- One-line installer for Linux and macOS.
|
|
984
999
|
|
|
985
|
-
[Unreleased]: https://github.com/nasser1941/lcode/compare/v0.
|
|
1000
|
+
[Unreleased]: https://github.com/nasser1941/lcode/compare/v0.46.0...HEAD
|
|
1001
|
+
[0.46.0]: https://github.com/nasser1941/lcode/compare/v0.45.0...v0.46.0
|
|
986
1002
|
[0.45.0]: https://github.com/nasser1941/lcode/compare/v0.44.0...v0.45.0
|
|
987
1003
|
[0.44.0]: https://github.com/nasser1941/lcode/compare/v0.43.0...v0.44.0
|
|
988
1004
|
[0.43.0]: https://github.com/nasser1941/lcode/compare/v0.42.0...v0.43.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: lcode-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.46.0
|
|
4
4
|
Summary: A local-first terminal coding agent powered by open-weight models on your own GPU or Mac, via Ollama.
|
|
5
5
|
Project-URL: Homepage, https://nasser1941.github.io/lcode/
|
|
6
6
|
Project-URL: Documentation, https://nasser1941.github.io/lcode/
|
|
@@ -177,6 +177,20 @@ video ❯ /play
|
|
|
177
177
|
- **Extend a clip:** `/extend 4 --seconds 3 it flies away` continues clip #4 from its last frame
|
|
178
178
|
and joins the new part after it, as one longer clip (`…-extended.mp4`; 3 s more in about a
|
|
179
179
|
minute at `fast`).
|
|
180
|
+
- **Reference pictures:** `@cat.png @hat.png --ref the cat wears the hat in a garden` makes a clip
|
|
181
|
+
that shows what the pictures show (who, what, where), not starting from them. Wan 2.1 VACE 1.3B
|
|
182
|
+
makes these (832×480, 16 fps; a 3 s clip in about 3 minutes).
|
|
183
|
+
- **Restyle a clip:** `/restyle 4 as a watercolor painting --style watercolor` makes clip #4 again in
|
|
184
|
+
a new look, following its outlines (Canny edges, up to its first 81 frames). VACE 1.3B follows them
|
|
185
|
+
loosely: the layout and motion carry over, sizes can change. Naming the style with `--style`
|
|
186
|
+
helps. About 5 minutes for 3 s.
|
|
187
|
+
- **Smoother:** `/smooth 4` (or `/smooth 4 4`) adds in-between frames with FILM: 2 or 4 times the
|
|
188
|
+
frames per second, in seconds.
|
|
189
|
+
- **Bigger:** `/upscale 4` works on clips too (Real-ESRGAN, 2 or 4 times): 864×480 becomes 1728×960
|
|
190
|
+
in about 2 minutes for 3 s.
|
|
191
|
+
- **Sound:** `/sound 4 wings buzzing and birdsong` adds sound effects or ambience made by Stable
|
|
192
|
+
Audio Open 1.0 (up to 47 s; seconds to make), as an AAC track in the MP4 (`…-sound.mp4`). Its
|
|
193
|
+
license is the Stability AI Community License: free under $1M yearly revenue.
|
|
180
194
|
- **Which model:** the one you chose (`/models`) makes ordinary clips. For first and last frames or a
|
|
181
195
|
camera move, lcode uses the model that can, installs it when you agree, and says so.
|
|
182
196
|
- **Long renders:** progress shows the step and the time left. With `notify` on, lcode sends a
|
|
@@ -278,8 +292,6 @@ themselves:
|
|
|
278
292
|
|
|
279
293
|
## Coming next
|
|
280
294
|
|
|
281
|
-
- **#154 More video:** several reference images, smoother and bigger clips (frame interpolation,
|
|
282
|
-
upscaling), restyling a video, and sound.
|
|
283
295
|
- **#155 Movies:** storyboards with a consistent cast, shots stitched into one film.
|
|
284
296
|
- **#156 Prompt assistant:** a small local model for prompts and follow-ups.
|
|
285
297
|
- **#157 Cloud generation**, with costs shown (Grok Imagine first).
|
|
@@ -84,6 +84,7 @@ reasoning is on.
|
|
|
84
84
|
| `/options`, `/again`, `/vary N`, `/gallery`, `/open N` | Image mode: [options for the session, follow-ups on results](modes.md#results) |
|
|
85
85
|
| `/edit N`, `/use N`, `/extend N`, `/upscale N`, `/nobg N` | Image mode: [edit, follow, outpaint, upscale, cut out](modes.md#editing) |
|
|
86
86
|
| `/animate N`, `/play N` | [Video mode](modes.md#video-mode): animate image N; play a clip |
|
|
87
|
+
| `/restyle N`, `/smooth N`, `/sound N`, `/upscale N` | [Video mode](modes.md#video-mode): a new look, more frames, sound, more pixels |
|
|
87
88
|
| `/permissions [ask\|plan\|auto-edit\|yolo]` | Set the permission mode |
|
|
88
89
|
| `/cd DIR` | Change the working directory |
|
|
89
90
|
| `/todos` | Show the model's task list |
|
|
@@ -6,10 +6,12 @@ sizes, variations and a gallery come with #151, video with #153.
|
|
|
6
6
|
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
|
+
import json
|
|
9
10
|
import os
|
|
10
11
|
import random
|
|
11
12
|
import re
|
|
12
13
|
import shutil
|
|
14
|
+
import struct
|
|
13
15
|
import subprocess
|
|
14
16
|
import sys
|
|
15
17
|
import time
|
|
@@ -269,6 +271,7 @@ def thumbnail(server: comfy.Server, outputs: dict, node: str = THUMB_NODES[1]) -
|
|
|
269
271
|
|
|
270
272
|
SIZE_FLAG = re.compile(r"(?:^|\s)--?(ar|aspect|size)\b")
|
|
271
273
|
MASK_FLAG = re.compile(r'(?:^|\s)--mask\s+("[^"]+"|\S+)')
|
|
274
|
+
REF_FLAG = re.compile(r"(?:^|\s)--refs?\b")
|
|
272
275
|
|
|
273
276
|
|
|
274
277
|
def request(
|
|
@@ -276,6 +279,8 @@ def request(
|
|
|
276
279
|
) -> list[Made]:
|
|
277
280
|
"""A typed request: its @references (images to edit or follow), --mask, and flags (--n 4 --ar 16:9 …, over
|
|
278
281
|
the session's /options), then the images."""
|
|
282
|
+
as_references = bool(REF_FLAG.search(text))
|
|
283
|
+
text = REF_FLAG.sub(" ", text)
|
|
279
284
|
mask = None
|
|
280
285
|
m = MASK_FLAG.search(text)
|
|
281
286
|
if m:
|
|
@@ -292,8 +297,12 @@ def request(
|
|
|
292
297
|
if agent.settings.mode == "video":
|
|
293
298
|
if mask:
|
|
294
299
|
raise MediaError("Video mode doesn't take a mask: @photo.png starts a video from a picture.")
|
|
295
|
-
|
|
296
|
-
|
|
300
|
+
if as_references and not sources:
|
|
301
|
+
raise MediaError("--ref makes the @pictures references: @cat.png @hat.png --ref the cat wears the hat")
|
|
302
|
+
frames = [] if as_references else [str(p) for p in sources[:2]]
|
|
303
|
+
refs = [str(p) for p in sources] if as_references else []
|
|
304
|
+
job = {"kind": "video", "prompt": prompt, "options": options, "sources": frames, "mask": None, "pads": None,
|
|
305
|
+
"keep_shape": not SIZE_FLAG.search(text), "refs": refs} # fmt: skip
|
|
297
306
|
return redo(agent, job, cancelled, ask)
|
|
298
307
|
job = {"kind": "edit" if sources else "image", "prompt": prompt, "options": options,
|
|
299
308
|
"sources": [str(p) for p in sources], "mask": str(mask) if mask else None, "pads": None,
|
|
@@ -492,8 +501,13 @@ def generate_video(
|
|
|
492
501
|
start = sources[0] if sources else None
|
|
493
502
|
end = sources[1] if len(sources) > 1 else None
|
|
494
503
|
clip = Path(job["extend"]) if job.get("extend") else None
|
|
495
|
-
|
|
496
|
-
|
|
504
|
+
refs = [Path(p) for p in job.get("refs") or []]
|
|
505
|
+
restyle = Path(job["restyle"]) if job.get("restyle") else None
|
|
506
|
+
task = (
|
|
507
|
+
"restyle" if restyle else "references" if refs else "first-last-frame" if end
|
|
508
|
+
else "camera" if options.camera else "image-to-video" if clip else ""
|
|
509
|
+
) # fmt: skip
|
|
510
|
+
model = video_model(agent, task)
|
|
497
511
|
files = ensure_installed(agent, model, server, ask)
|
|
498
512
|
workflow = comfy.load_workflow(model.workflow)
|
|
499
513
|
seed = options.seed if options.seed is not None else random.randrange(2**32)
|
|
@@ -511,6 +525,14 @@ def generate_video(
|
|
|
511
525
|
if clip is not None: # the new part continues the clip, so it has its size
|
|
512
526
|
width, height = job["size"]
|
|
513
527
|
fps = int(workflow.defaults.get("fps", 24))
|
|
528
|
+
if clip is not None: # one clip, one pace: the new part plays at the clip's fps
|
|
529
|
+
fps = int(clip_info(clip)["fps"] or fps)
|
|
530
|
+
if restyle is not None: # the restyled clip has the clip's size and pace (up to the model's length)
|
|
531
|
+
info = clip_info(restyle)
|
|
532
|
+
width, height = (info["width"] // 16 * 16 or 832), (info["height"] // 16 * 16 or 480)
|
|
533
|
+
fps = int(info["fps"] or fps)
|
|
534
|
+
options = replace(options, seconds=min(options.seconds if job.get("seconds_given") else 99,
|
|
535
|
+
(min(info["frames"] or 81, 81) - 1) / fps)) # fmt: skip
|
|
514
536
|
text = imageopts.styled(prompt, options.style)
|
|
515
537
|
values = {**workflow.defaults, **files, "prompt": text, "seed": seed, "width": width, "height": height,
|
|
516
538
|
"length": imageopts.frames(options.seconds, fps), "fps": fps} # fmt: skip
|
|
@@ -535,28 +557,75 @@ def generate_video(
|
|
|
535
557
|
graph[latent]["inputs"]["end_image"] = ["8101", 0]
|
|
536
558
|
if clip is not None:
|
|
537
559
|
continue_clip(graph, latent, server.upload(clip), values["length"])
|
|
560
|
+
vace = edits.node_of(graph, "WanVaceToVideo")
|
|
561
|
+
if refs and vace is not None:
|
|
562
|
+
graph[vace]["inputs"]["reference_image"] = reference_strip(graph, [server.upload(p) for p in refs])
|
|
563
|
+
if restyle is not None and vace is not None:
|
|
564
|
+
graph[vace]["inputs"]["control_video"] = control_from(graph, server.upload(restyle), values["length"])
|
|
538
565
|
except (comfy.ComfyError, OSError) as e:
|
|
539
566
|
raise MediaError(f"Couldn't hand the files to ComfyUI: {e}") from e
|
|
540
567
|
add_thumbnail(graph, width, height)
|
|
541
568
|
meta = describe_job(model, workflow, prompt, text, seed, values, options, files)
|
|
542
569
|
meta.update({"seconds": round((values["length"] - 1) / fps, 2), "fps": fps, "frames": values["length"],
|
|
543
570
|
"start_image": shown(agent, start) if start else "", "end_image": shown(agent, end) if end else "",
|
|
544
|
-
"camera": options.camera, "extends": shown(agent, clip) if clip else ""
|
|
545
|
-
|
|
546
|
-
|
|
571
|
+
"camera": options.camera, "extends": shown(agent, clip) if clip else "",
|
|
572
|
+
"references": [shown(agent, p) for p in refs],
|
|
573
|
+
"restyles": shown(agent, restyle) if restyle else ""}) # fmt: skip
|
|
574
|
+
keys = ("kind", "prompt", "sources", "mask", "pads", "keep_shape", "extend", "size", "refs", "restyle")
|
|
575
|
+
remembered = {k: job.get(k) for k in keys}
|
|
576
|
+
stem = f"{clip.stem}-extended" if clip else (f"{restyle.stem}-restyled" if restyle else "")
|
|
547
577
|
plan = Plan(model, workflow, graph, meta, prompt, seed, options, "video", job.get("sources") or [], remembered,
|
|
548
578
|
stem) # fmt: skip
|
|
549
579
|
return run_plan(agent, server, plan, cancelled, label)
|
|
550
580
|
|
|
551
581
|
|
|
552
|
-
VIDEO_LATENTS = ("Wan22ImageToVideoLatent", "WanFunInpaintToVideo", "WanCameraImageToVideo")
|
|
582
|
+
VIDEO_LATENTS = ("Wan22ImageToVideoLatent", "WanFunInpaintToVideo", "WanCameraImageToVideo", "WanVaceToVideo")
|
|
553
583
|
WHY = {
|
|
554
584
|
"first-last-frame": "a clip between two frames",
|
|
555
585
|
"camera": "a camera move",
|
|
556
586
|
"image-to-video": "continuing a clip",
|
|
587
|
+
"references": "following reference pictures",
|
|
588
|
+
"restyle": "restyling a clip",
|
|
557
589
|
}
|
|
558
590
|
|
|
559
591
|
|
|
592
|
+
def reference_strip(graph: dict, names: list[str]) -> list:
|
|
593
|
+
"""The reference pictures side by side in one image, as VACE takes them."""
|
|
594
|
+
graph["8300"] = {"class_type": "LoadImage", "inputs": {"image": names[0]}}
|
|
595
|
+
strip = ["8300", 0]
|
|
596
|
+
for k, name in enumerate(names[1:], 1):
|
|
597
|
+
load, stitch = str(8300 + 2 * k - 1), str(8300 + 2 * k)
|
|
598
|
+
graph[load] = {"class_type": "LoadImage", "inputs": {"image": name}}
|
|
599
|
+
graph[stitch] = {
|
|
600
|
+
"class_type": "ImageStitch",
|
|
601
|
+
"inputs": {"image1": strip, "direction": "right", "match_image_size": True, "spacing_width": 0,
|
|
602
|
+
"spacing_color": "white", "image2": [load, 0]},
|
|
603
|
+
} # fmt: skip
|
|
604
|
+
strip = [stitch, 0]
|
|
605
|
+
return strip
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
def control_from(graph: dict, clip_name: str, length: int) -> list:
|
|
609
|
+
"""Restyling: the clip's outlines (Canny edges), frame by frame, for VACE to follow."""
|
|
610
|
+
graph["8400"] = {"class_type": "LoadVideo", "inputs": {"file": clip_name}}
|
|
611
|
+
graph["8401"] = {"class_type": "GetVideoComponents", "inputs": {"video": ["8400", 0]}}
|
|
612
|
+
graph["8402"] = {
|
|
613
|
+
"class_type": "ImageFromBatch",
|
|
614
|
+
"inputs": {"image": ["8401", 0], "batch_index": 0, "length": length},
|
|
615
|
+
}
|
|
616
|
+
latent = edits.node_of(graph, "WanVaceToVideo")
|
|
617
|
+
w, h = graph[latent]["inputs"]["width"], graph[latent]["inputs"]["height"]
|
|
618
|
+
graph["8403"] = {
|
|
619
|
+
"class_type": "ImageScale",
|
|
620
|
+
"inputs": {"image": ["8402", 0], "upscale_method": "bilinear", "width": w, "height": h, "crop": "center"},
|
|
621
|
+
}
|
|
622
|
+
graph["8404"] = {
|
|
623
|
+
"class_type": "Canny",
|
|
624
|
+
"inputs": {"image": ["8403", 0], "low_threshold": 0.3, "high_threshold": 0.6},
|
|
625
|
+
}
|
|
626
|
+
return ["8404", 0]
|
|
627
|
+
|
|
628
|
+
|
|
560
629
|
def video_model(agent: Agent, task: str) -> catalog.MediaModel:
|
|
561
630
|
"""The video model for a job: the chosen one, or the first that does what the job needs."""
|
|
562
631
|
chosen = current(agent, "video")
|
|
@@ -582,6 +651,46 @@ def continue_clip(graph: dict, latent: str, clip_name: str, length: int) -> None
|
|
|
582
651
|
graph[video]["inputs"]["images"] = ["8204", 0]
|
|
583
652
|
|
|
584
653
|
|
|
654
|
+
VIDEO_TYPES = (".mp4", ".webm", ".mkv", ".mov")
|
|
655
|
+
TOOL_NAMES = {"upscale": "upscaled", "remove-background": "nobg", "interpolate": "smooth", "sound": "sound"}
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
def is_video(path: Path) -> bool:
|
|
659
|
+
return path.suffix.lower() in VIDEO_TYPES
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
def clip_info(path: Path) -> dict:
|
|
663
|
+
"""A clip's fps, seconds, frames, width and height: from lcode's JSON next to it, else its MP4 header."""
|
|
664
|
+
info = {"fps": 24.0, "seconds": 0.0, "frames": 0, "width": 0, "height": 0}
|
|
665
|
+
try:
|
|
666
|
+
meta = json.loads(path.with_suffix(".json").read_text())
|
|
667
|
+
info.update({k: meta[k] for k in info if isinstance(meta.get(k), (int, float))})
|
|
668
|
+
except (OSError, ValueError):
|
|
669
|
+
pass
|
|
670
|
+
if not info["seconds"]:
|
|
671
|
+
info["seconds"] = mp4_seconds(path)
|
|
672
|
+
if not info["frames"] and info["seconds"]:
|
|
673
|
+
info["frames"] = round(info["seconds"] * info["fps"]) + 1
|
|
674
|
+
return info
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
def mp4_seconds(path: Path) -> float:
|
|
678
|
+
"""An MP4's length from its movie header (mvhd), or 0."""
|
|
679
|
+
try:
|
|
680
|
+
data = path.read_bytes()
|
|
681
|
+
except OSError:
|
|
682
|
+
return 0.0
|
|
683
|
+
i = data.find(b"mvhd")
|
|
684
|
+
if i < 4:
|
|
685
|
+
return 0.0
|
|
686
|
+
version = data[i + 4]
|
|
687
|
+
if version == 1:
|
|
688
|
+
scale, duration = struct.unpack(">IQ", data[i + 24 : i + 36])
|
|
689
|
+
else:
|
|
690
|
+
scale, duration = struct.unpack(">II", data[i + 16 : i + 24])
|
|
691
|
+
return duration / scale if scale else 0.0
|
|
692
|
+
|
|
693
|
+
|
|
585
694
|
def apply_tool(
|
|
586
695
|
agent: Agent,
|
|
587
696
|
task: str,
|
|
@@ -589,27 +698,52 @@ def apply_tool(
|
|
|
589
698
|
scale: int = 2,
|
|
590
699
|
cancelled: Callable[[], bool] = lambda: False,
|
|
591
700
|
ask: Callable[[str], bool] | None = None,
|
|
701
|
+
prompt: str = "",
|
|
592
702
|
) -> Made:
|
|
593
|
-
"""
|
|
703
|
+
"""A tool model on one image or clip: /upscale (both), /nobg (pictures), /smooth and /sound (clips)."""
|
|
704
|
+
video = is_video(source)
|
|
705
|
+
if task == "remove-background" and video:
|
|
706
|
+
raise MediaError("/nobg works on pictures.")
|
|
707
|
+
if task in ("interpolate", "sound") and not video:
|
|
708
|
+
raise MediaError(f"/{'smooth' if task == 'interpolate' else 'sound'} works on clips.")
|
|
709
|
+
if task == "sound" and not prompt.strip():
|
|
710
|
+
raise MediaError("Say what it should sound like: /sound 4 waves and seagulls")
|
|
594
711
|
server = prepare(agent, ask, cancelled)
|
|
595
712
|
model = catalog.load().tool(task)
|
|
596
713
|
files = ensure_installed(agent, model, server, ask)
|
|
597
|
-
workflow = comfy.load_workflow(model.workflow)
|
|
714
|
+
workflow = comfy.load_workflow(model.video_workflow if video and model.video_workflow else model.workflow)
|
|
598
715
|
try:
|
|
599
716
|
name = server.upload(source)
|
|
600
|
-
|
|
717
|
+
if video:
|
|
718
|
+
info = clip_info(source)
|
|
719
|
+
width, height = info["width"] or 864, info["height"] or 480
|
|
720
|
+
else:
|
|
721
|
+
width, height = edits.image_size(source)
|
|
601
722
|
except (comfy.ComfyError, OSError, edits.EditError) as e:
|
|
602
|
-
raise MediaError(f"Couldn't hand the
|
|
603
|
-
values = {**workflow.defaults, **files, "image": name}
|
|
723
|
+
raise MediaError(f"Couldn't hand the file to ComfyUI: {e}") from e
|
|
724
|
+
values = {**workflow.defaults, **files, ("video" if video else "image"): name}
|
|
725
|
+
seed = 0
|
|
726
|
+
if video:
|
|
727
|
+
values["fps"] = info["fps"]
|
|
604
728
|
if task == "upscale":
|
|
605
729
|
values["scale_by"] = scale / 4 # Real-ESRGAN makes 4 times the size; scaled back for 2
|
|
606
730
|
width, height = width * scale, height * scale
|
|
731
|
+
elif task == "interpolate":
|
|
732
|
+
values["multiplier"], values["fps"] = scale, info["fps"] * scale
|
|
733
|
+
elif task == "sound":
|
|
734
|
+
seed = random.randrange(2**32)
|
|
735
|
+
values.update({"prompt": prompt.strip(), "seed": seed, "seconds": max(1.0, info["seconds"])})
|
|
607
736
|
graph = comfy.fill(workflow.graph, values)
|
|
608
737
|
add_thumbnail(graph, width, height)
|
|
609
|
-
what =
|
|
610
|
-
|
|
738
|
+
what = {
|
|
739
|
+
"upscale": f"upscaled {scale}×",
|
|
740
|
+
"remove-background": "background removed",
|
|
741
|
+
"interpolate": f"{scale}× the frames",
|
|
742
|
+
"sound": f"sound: {prompt.strip()}",
|
|
743
|
+
}[task]
|
|
744
|
+
label = f"{what} ({shown(agent, source)})"
|
|
611
745
|
meta = {
|
|
612
|
-
"prompt":
|
|
746
|
+
"prompt": label,
|
|
613
747
|
"model": model.name,
|
|
614
748
|
"model_key": model.key,
|
|
615
749
|
"workflow": workflow.key,
|
|
@@ -617,8 +751,10 @@ def apply_tool(
|
|
|
617
751
|
"files": files,
|
|
618
752
|
"created": time.strftime("%Y-%m-%dT%H:%M:%S%z"),
|
|
619
753
|
}
|
|
620
|
-
|
|
621
|
-
|
|
754
|
+
if video:
|
|
755
|
+
meta.update({"fps": values["fps"], "seconds": info["seconds"], "width": width, "height": height})
|
|
756
|
+
suffix = {"upscale": f"upscaled-{scale}x", "interpolate": f"smooth-{scale}x"}.get(task, TOOL_NAMES[task])
|
|
757
|
+
plan = Plan(model, workflow, graph, meta, label, seed, imageopts.Options(), task, [str(source)], {},
|
|
622
758
|
f"{source.stem}-{suffix}") # fmt: skip
|
|
623
759
|
return run_plan(agent, server, plan, cancelled, "")
|
|
624
760
|
|
|
@@ -101,6 +101,7 @@ publisher = "Xintao Wang et al."
|
|
|
101
101
|
license = "BSD-3-Clause"
|
|
102
102
|
tasks = ["upscale"]
|
|
103
103
|
workflow = "upscale-esrgan"
|
|
104
|
+
video_workflow = "upscale-video-esrgan"
|
|
104
105
|
files = { model = "realesrgan-x4" }
|
|
105
106
|
notes = "/upscale: 2× or 4× the pixels"
|
|
106
107
|
|
|
@@ -196,3 +197,60 @@ measured = "3 s clip (49 frames, 832×480): 115 s on an RTX 4080 Laptop, 12 GB"
|
|
|
196
197
|
notes = "camera moves (--camera pan-left, zoom-in, …), small and fast, 16 fps"
|
|
197
198
|
quality = { fast = [12, 0.38], balanced = [20, 0.38], best = [30, 0.38] }
|
|
198
199
|
negative = true
|
|
200
|
+
|
|
201
|
+
[files.wan21-vace-1-3b]
|
|
202
|
+
folder = "diffusion_models"
|
|
203
|
+
name = "wan2.1_vace_1.3B_fp16.safetensors"
|
|
204
|
+
url = "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_1.3B_fp16.safetensors"
|
|
205
|
+
gb = 4.31
|
|
206
|
+
|
|
207
|
+
[files.film-net]
|
|
208
|
+
folder = "frame_interpolation"
|
|
209
|
+
name = "film_net_fp16.safetensors"
|
|
210
|
+
url = "https://huggingface.co/Comfy-Org/frame_interpolation/resolve/main/frame_interpolation/film_net_fp16.safetensors"
|
|
211
|
+
gb = 0.07
|
|
212
|
+
|
|
213
|
+
[files.stable-audio-open]
|
|
214
|
+
folder = "checkpoints"
|
|
215
|
+
name = "stable-audio-open-1.0.safetensors"
|
|
216
|
+
url = "https://huggingface.co/Comfy-Org/stable-audio-open-1.0_repackaged/resolve/main/stable-audio-open-1.0.safetensors"
|
|
217
|
+
gb = 4.85
|
|
218
|
+
|
|
219
|
+
[files.t5-base]
|
|
220
|
+
folder = "text_encoders"
|
|
221
|
+
name = "t5-base.safetensors"
|
|
222
|
+
url = "https://huggingface.co/ComfyUI-Wiki/t5-base/resolve/main/t5-base.safetensors"
|
|
223
|
+
gb = 0.89
|
|
224
|
+
|
|
225
|
+
[models.wan21-vace-1-3b]
|
|
226
|
+
name = "Wan 2.1 VACE 1.3B"
|
|
227
|
+
mode = "video"
|
|
228
|
+
publisher = "Alibaba (Wan-AI)"
|
|
229
|
+
license = "Apache 2.0"
|
|
230
|
+
tasks = ["references", "restyle"]
|
|
231
|
+
workflow = "wan21-vace"
|
|
232
|
+
files = { model = "wan21-vace-1-3b", text_encoder = "umt5-xxl-fp8", vae = "wan21-vae" }
|
|
233
|
+
measured = "3 s clip from references (832×480): 190 s; restyling 3 s: 320 s, on an RTX 4080 Laptop, 12 GB"
|
|
234
|
+
notes = "clips that follow reference pictures (--ref), or restyle a clip (/restyle)"
|
|
235
|
+
quality = { fast = [12, 0.38], balanced = [20, 0.38], best = [30, 0.38] }
|
|
236
|
+
negative = true
|
|
237
|
+
|
|
238
|
+
[models.film]
|
|
239
|
+
name = "FILM"
|
|
240
|
+
mode = "tool"
|
|
241
|
+
publisher = "Google Research"
|
|
242
|
+
license = "Apache 2.0"
|
|
243
|
+
tasks = ["interpolate"]
|
|
244
|
+
workflow = "smooth-film"
|
|
245
|
+
files = { model = "film-net" }
|
|
246
|
+
notes = "/smooth: twice the frames per second"
|
|
247
|
+
|
|
248
|
+
[models.stable-audio-open]
|
|
249
|
+
name = "Stable Audio Open 1.0"
|
|
250
|
+
mode = "tool"
|
|
251
|
+
publisher = "Stability AI"
|
|
252
|
+
license = "Stability AI Community License"
|
|
253
|
+
tasks = ["sound"]
|
|
254
|
+
workflow = "sound-stable-audio"
|
|
255
|
+
files = { model = "stable-audio-open", text_encoder = "t5-base" }
|
|
256
|
+
notes = "/sound: sound effects and ambience for a clip, up to 47 s"
|
|
@@ -71,6 +71,7 @@ class MediaModel:
|
|
|
71
71
|
quality: dict[str, tuple[int, float]] = field(default_factory=dict, hash=False) # preset -> (steps, megapixels)
|
|
72
72
|
negative: bool = False # whether it uses a negative prompt
|
|
73
73
|
edit: str = "" # how it edits images ("reference-latent"), or empty: it doesn't
|
|
74
|
+
video_workflow: str = "" # a tool's workflow for clips, when it works on them too (upscaling)
|
|
74
75
|
|
|
75
76
|
def preset(self, quality: str) -> tuple[int | None, float]:
|
|
76
77
|
"""(steps, megapixels) for a quality preset: None steps keeps the workflow's."""
|
|
@@ -163,6 +164,7 @@ def load() -> Catalog:
|
|
|
163
164
|
{name: (int(v[0]), float(v[1])) for name, v in (m.get("quality") or {}).items()},
|
|
164
165
|
bool(m.get("negative", False)),
|
|
165
166
|
m.get("edit", ""),
|
|
167
|
+
m.get("video_workflow", ""),
|
|
166
168
|
)
|
|
167
169
|
return Catalog(files, models)
|
|
168
170
|
|
|
@@ -87,9 +87,12 @@ COMMANDS = {
|
|
|
87
87
|
"/edit": "Image mode: change an image by instruction, e.g. /edit 3 make the sky purple (@photo.png: references)",
|
|
88
88
|
"/use": "Image mode: images the next requests follow, e.g. /use 3 or /use photo.png (/use off)",
|
|
89
89
|
"/extend": "Outpaint an image (/extend 3 --ar 16:9), or continue a clip in video mode (/extend 4 --seconds 3)",
|
|
90
|
-
"/upscale": "
|
|
90
|
+
"/upscale": "2 or 4 times the pixels of an image or a clip, e.g. /upscale 3 4",
|
|
91
91
|
"/nobg": "Image mode: remove the background (a transparent PNG), e.g. /nobg 3",
|
|
92
92
|
"/animate": "Image mode: make a video starting from an image, e.g. /animate 3 the waves roll in (video mode)",
|
|
93
|
+
"/smooth": "Video mode: 2 or 4 times the frames (smoother motion), e.g. /smooth 4",
|
|
94
|
+
"/sound": "Video mode: add sound to a clip, e.g. /sound 4 waves and seagulls",
|
|
95
|
+
"/restyle": "Video mode: the same clip in a new look, e.g. /restyle 4 as a watercolor painting",
|
|
93
96
|
"/play": "Play a video in your player, e.g. /play 4 (default: the last)",
|
|
94
97
|
"/cd": "Change the working directory",
|
|
95
98
|
"/todos": "Show the current todo list",
|
|
@@ -1404,9 +1407,12 @@ def respond(agent: Agent, line: str) -> None:
|
|
|
1404
1407
|
|
|
1405
1408
|
IMAGE_COMMANDS = (
|
|
1406
1409
|
"/options", "/again", "/vary", "/gallery", "/open", "/play", "/edit", "/use", "/extend", "/upscale", "/nobg",
|
|
1407
|
-
"/animate",
|
|
1410
|
+
"/animate", "/smooth", "/sound", "/restyle",
|
|
1408
1411
|
) # fmt: skip
|
|
1409
|
-
VIDEO_TOO = (
|
|
1412
|
+
VIDEO_TOO = (
|
|
1413
|
+
"/options", "/again", "/vary", "/gallery", "/open", "/play", "/use", "/extend", "/upscale", "/smooth", "/sound",
|
|
1414
|
+
"/restyle",
|
|
1415
|
+
) # what video mode has # fmt: skip
|
|
1410
1416
|
NUMBER = re.compile(r"^#?(\d+)$")
|
|
1411
1417
|
|
|
1412
1418
|
|
|
@@ -1464,7 +1470,8 @@ def image_command(agent: Agent, cmd: str, arg: str) -> None:
|
|
|
1464
1470
|
return
|
|
1465
1471
|
if cmd == "/vary":
|
|
1466
1472
|
job = dict(entry.get("job") or {"kind": "image", "sources": [], "mask": None, "pads": None})
|
|
1467
|
-
|
|
1473
|
+
tools = ("upscale", "remove-background", "interpolate", "sound")
|
|
1474
|
+
if entry.get("kind") in tools or job["kind"] not in ("image", "edit", "video"):
|
|
1468
1475
|
c.print(f"[yellow]#{entry['n']} is {escape(entry['prompt'])}: /vary the image it came from.[/]")
|
|
1469
1476
|
return
|
|
1470
1477
|
job["prompt"] = entry["prompt"] if job["kind"] == "image" else job.get("prompt", entry["prompt"])
|
|
@@ -1525,6 +1532,30 @@ def image_command(agent: Agent, cmd: str, arg: str) -> None:
|
|
|
1525
1532
|
agent, run=lambda cancel, ask: media.apply_tool(agent, "upscale", source, int(scale), cancel, ask)
|
|
1526
1533
|
)
|
|
1527
1534
|
return
|
|
1535
|
+
if cmd == "/smooth":
|
|
1536
|
+
times = int(rest.strip().lower().rstrip("x×") or "2")
|
|
1537
|
+
if times not in (2, 4):
|
|
1538
|
+
c.print("[yellow]/smooth makes 2 or 4 times the frames: /smooth 4 2[/]")
|
|
1539
|
+
return
|
|
1540
|
+
make_image(
|
|
1541
|
+
agent, run=lambda cancel, ask: media.apply_tool(agent, "interpolate", source, times, cancel, ask)
|
|
1542
|
+
)
|
|
1543
|
+
return
|
|
1544
|
+
if cmd == "/sound":
|
|
1545
|
+
make_image(agent, run=lambda cancel, ask: media.apply_tool(agent, "sound", source, 1, cancel, ask, rest))
|
|
1546
|
+
return
|
|
1547
|
+
if cmd == "/restyle":
|
|
1548
|
+
if not media.is_video(source):
|
|
1549
|
+
c.print("[yellow]/restyle works on clips: /restyle 4 as a watercolor painting.[/]")
|
|
1550
|
+
return
|
|
1551
|
+
text, options = imageopts.parse(rest, imageopts.replace_seed(agent.image_options, n=1))
|
|
1552
|
+
if not text:
|
|
1553
|
+
c.print("[yellow]Say the new look: /restyle 4 as a watercolor painting[/]")
|
|
1554
|
+
return
|
|
1555
|
+
job = {"kind": "video", "prompt": text, "options": options, "sources": [], "mask": None, "pads": None,
|
|
1556
|
+
"keep_shape": True, "restyle": str(source), "seconds_given": "--seconds" in rest} # fmt: skip
|
|
1557
|
+
make_image(agent, run=lambda cancel, ask: media.redo(agent, job, cancel, ask))
|
|
1558
|
+
return
|
|
1528
1559
|
if cmd == "/nobg":
|
|
1529
1560
|
make_image(
|
|
1530
1561
|
agent, run=lambda cancel, ask: media.apply_tool(agent, "remove-background", source, 2, cancel, ask)
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "ComfyUI's template utility_video_frame_interpolation, in API format",
|
|
3
|
+
"defaults": {
|
|
4
|
+
"multiplier": 2,
|
|
5
|
+
"fps": 48
|
|
6
|
+
},
|
|
7
|
+
"labels": {
|
|
8
|
+
"1": "loading the clip",
|
|
9
|
+
"2": "reading its frames",
|
|
10
|
+
"3": "loading FILM",
|
|
11
|
+
"4": "making the in-between frames",
|
|
12
|
+
"5": "making the video",
|
|
13
|
+
"6": "saving"
|
|
14
|
+
},
|
|
15
|
+
"graph": {
|
|
16
|
+
"1": {
|
|
17
|
+
"class_type": "LoadVideo",
|
|
18
|
+
"inputs": {
|
|
19
|
+
"file": "$video"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"2": {
|
|
23
|
+
"class_type": "GetVideoComponents",
|
|
24
|
+
"inputs": {
|
|
25
|
+
"video": [
|
|
26
|
+
"1",
|
|
27
|
+
0
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"3": {
|
|
32
|
+
"class_type": "FrameInterpolationModelLoader",
|
|
33
|
+
"inputs": {
|
|
34
|
+
"model_name": "$model"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"4": {
|
|
38
|
+
"class_type": "FrameInterpolate",
|
|
39
|
+
"inputs": {
|
|
40
|
+
"interp_model": [
|
|
41
|
+
"3",
|
|
42
|
+
0
|
|
43
|
+
],
|
|
44
|
+
"images": [
|
|
45
|
+
"2",
|
|
46
|
+
0
|
|
47
|
+
],
|
|
48
|
+
"multiplier": "$multiplier"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"5": {
|
|
52
|
+
"class_type": "CreateVideo",
|
|
53
|
+
"inputs": {
|
|
54
|
+
"images": [
|
|
55
|
+
"4",
|
|
56
|
+
0
|
|
57
|
+
],
|
|
58
|
+
"audio": [
|
|
59
|
+
"2",
|
|
60
|
+
1
|
|
61
|
+
],
|
|
62
|
+
"fps": "$fps"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"6": {
|
|
66
|
+
"class_type": "SaveVideo",
|
|
67
|
+
"inputs": {
|
|
68
|
+
"video": [
|
|
69
|
+
"5",
|
|
70
|
+
0
|
|
71
|
+
],
|
|
72
|
+
"filename_prefix": "lcode/video",
|
|
73
|
+
"format": "mp4",
|
|
74
|
+
"codec": "auto"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|