Repository navigation
docs(examples): add a drone footage example edited end to end by one agent - #537
Conversation
…agent One drone-editor agent stabilises raw footage with Gyroflow, grades it in FilmCraft from DJI's LUT, adds ElevenLabs sound effects and music through a secret, and exports once per platform shape into the chat's artifacts. Gyroflow needs a GPU, which the local cluster only has on Podman with libkrun, so the example ships the tasks and the image for that stopgap.
|
@infer CI is failing - can you fix this? |
|
Model: Todos
Pull Request✅ Infer Result: SuccessDone - CI is green again. What was wrong: The The fix (commit Verification: the pre-commit hook ran the full suite (frontend build + 252 unit tests, cargo fmt/clippy/check/test, 306 Rust tests - all pass), and the new run on One note: the other failing CI run I saw belongs to PR #539 ( Model: Tokens: 1,377,475 in · 11,813 out · 1,389,288 total (17 requests) Tool calls: 25 total · 100% success rate TracesStatsTriggered by edenreich · Infer Action · OSS |
…ata instead of a computer image
…ks on an Apple silicon host (#1813) ## Summary The computer image gets Vulkan, so an app on a computer uses the host's GPU when the pod is given one and nobody has to install a driver through user data first. `libvulkan1`, `mesa-vulkan-drivers` and `vulkan-tools` go on the image, about 145 MB on disk. On arm64 Mesa's Venus driver is replaced by one built with a downstream change for the 16 KiB memory pages of an Apple silicon host. Ubuntu's build fails there with `ERROR_OUT_OF_HOST_MEMORY`, and an Apple silicon Mac is the one place an arm64 computer gets a GPU today. amd64 keeps Ubuntu's driver. Found while running the drone footage example of the desktop app (inference-gateway/desktop#537), which had to build its own image for this. inference-gateway/desktop#536 is the other half - giving the pod the GPU device. ## Changes - `computer/Dockerfile` - the three packages, and a `venus` stage that builds `libvulkan_virtio.so` from Ubuntu's Mesa source with the patch, on arm64 only - `computer/venus-16k.patch` - the downstream change, vendored so a release does not depend on freedesktop's GitLab. From https://gitlab.freedesktop.org/slp/mesa/-/commit/761ef1ec5ff2aae1cc3dc8bbc22b3d06ef04b549 - `.gitattributes` - the patch keeps its whitespace - `docs/computer-use.md` - says Vulkan is on the image ## Verified - Built for arm64 with `task container:build:computer`. The `venus` stage takes under a minute natively - On a k3s cluster in a Podman libkrun VM on an M4 Pro, as user `infer` with nothing installed, `vulkaninfo --summary` lists `Virtio-GPU Venus (Apple M4 Pro)` as an integrated GPU ahead of `llvmpipe` - On Docker, where the pod has no GPU, it lists `llvmpipe` alone ## Not verified - The multi-arch release build. The arm64 stage runs under emulation on the release runner and will take longer than it did natively - The amd64 image was not built - The patch is marked a hack by its author and is not upstream. It has to be checked again when Ubuntu moves to a new Mesa - A GPU does not make every app faster. FilmCraft exported 300 frames at 4.5 frames a second and 17.5 GB of memory on the GPU, against 6.8 frames a second and 5.7 GB on software rendering
…ithout naming an issue
…the download nobody could run
|
🎉 This PR is included in version 0.67.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Adds
examples/drone-footage: onedrone-editoragent turns raw drone footage into a finished clip on a computer of its own. It reads the footage from a read-only folder, finds the stretches with movement, stabilises them with Gyroflow, builds and grades the edit in FilmCraft starting from DJI's LUT, generates sound effects and music with ElevenLabs through a secret, and exports once per platform shape into the chat's Artifacts.The example was run end to end through the Desktop app on the local cluster with
ollama_cloud/glm-5.3-flash: 25 minutes, four exports of 40.04 s at about 40 MB each, listed under Artifacts and saved to Downloads with Save artifact.It does not run on the app's Docker cluster as it is today. Gyroflow needs a GPU - 18 frames in 10 minutes without one, 150 frames in 7 seconds with the Mac's - and the app cannot give its local cluster one yet (#536). The README says so up front and points to #536, which holds the Podman and libkrun stopgap the run used. The stopgap is not part of the example: the GPU of the local cluster is #536 and a Vulkan driver that works on a Mac belongs on the computer image, which is inference-gateway/cli's.
Closes #535
Changes
examples/drone-footage/README.md- what the example does, setup through Settings, the secret, the run, the read-only proof, the GPU section and the numbers of the run it was written fromexamples/drone-footage/agents/drone-editor.md- the agent: one heavy job at a time, work inside its starting directory, FilmCraft with its window open and driven over its control channel, the eleven steps from brief to delivery, one of them a check of the sound on the first export - a picture of frames over the waveform and a loudness measurement, since the agent cannot hearexamples/drone-footage/Taskfile.yml-upanddownin the shape ofexamples/filmcraftexamples/drone-footage/gyroflow/Dockerfile- builds Gyroflow v1.7.0 for arm64 Linux, which Gyroflow publishes no build forREADME.md- links the exampleSpike results
The issue asks for these on the issue. They are here instead, by request.
filmcraft-cligrades and exports with no window, and the same commands drive the open window over--bridge. One master sequence nests into a sequence per shape, each with a crop of its own. It imports 10-bit H.264 but renders it as offline media, so Gyroflow writes 10-bit HEVC. Export runs at about 20 frames a second for 1080p on 12 CPUs and is no faster with the GPUDifferences from the issue
ELEVENLABS_KEY. The app refusesELEVENLABS_API_KEYas a secret, since it is a provider key of the gatewayTextToSFXandTextToMusictools through the gateway would keep the key from the agent, but a workspace cannot switch them on from Settings yetFound on the way
KillShellasks for approvalbackend/src/agent/events.rsonly looks in its own list of streamed calls. Not fixed hereNot verified
task uppasses with the tools already in place. From an empty folder its steps ran one by one, the Gyroflow build as a plaindocker buildof the same Dockerfile.task downwas only dry-run, since the cluster of the run still mounts the folder