Nodes/Comfyui-YuE2-T8/YuE2 导出工件
ComfyUI Node

YuE2 导出工件

Keep the take before the cleanup timer eats it

By T8mars·Created 3 days ago·Updated a day ago· 28
YuE2 导出工件
  • result
  • export_directory
destination

Every YuE2 node that produces audio also produces a YUE2_RESULT - the receipt for the whole job: audio, latents, tokens, the request, the config, timings, and the integrity manifests tying them together. YuE2 导出工件 copies that whole bundle somewhere permanent.

Why it matters more than it sounds

The pack has an automatic retention policy that it writes on first launch: finished jobs are kept 30 days, capped at 100 jobs and 100 GiB total; uploads for 7 days, logs for 30. A background pass runs every six hours and deletes what's over the line.

exports/, however, is explicitly exempt. So this node is the difference between "I'll come back to that take" and "where did my take go".

The second reason is reproducibility. For the advanced three-stage chain, the artifacts are the provenance - decoded audio whose manifest chain proves which plan, tokens and weights produced it. Copying just the FLAC throws that away.

Inputs and output

result - a YUE2_RESULT from any generating node: YuE2 生成歌曲, YuE2 渲染乐谱计划, YuE2 旋律重制, YuE2 参考音色翻唱, or YuE2 VAE 解码. destination - a folder name for the export, default empty.

export_directory - a string, the path it actually wrote to. The layout is exports/<destination>/<job_id>/, one subfolder per job, so exporting ten takes with the same destination gives you ten sibling folders rather than a collision.

There are no other inputs. If you're looking for a filename field: there isn't one. The job ID is the name.

Two behaviours worth knowing

It always re-runs. The node declares itself an output node and reports its change state as a non-comparable value, which is the standard ComfyUI idiom for "never cache me" - the same NaN trick the KB's plumbing doc describes, and the same one that makes a node at the end of a graph fire on every queue. That's what you want for a save node and it's a small cost, since there's nothing behind it.

Only completed jobs export. The worker refuses anything still running, cancelling or failed with "只能导出已完成任务的工件". One exception, and it's a good one: a voice-conversion comparison that partially completed is exportable, so a task where one of the two routes died still lets you keep the audio that survived.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/T8mars/Comfyui-YuE2-T8.git

Run install_runtime.bat once from the node directory, restart ComfyUI, and start the chain with YuE2 模型服务. Registry: comfy node install yue2-t8. All this node really needs is a running service and a finished job.

Where people get burned

The destination is sandboxed. It's resolved inside exports/, and a path that lands outside is rejected outright rather than silently reshaped. So my-takes/2026 is fine; D:\Music\output is not - the pack is refusing to use your ComfyUI graph as a general file-copy tool, which is a defensible position and a surprise if you expect a save-path box.

Exports are copies, not moves. The original job artifacts stay where they were and age out normally. Disk usage therefore roughly doubles for anything you export, and the guide's 60 GB recommendation doesn't include a growing exports folder. Clean it yourself; nothing else will.

Saving the FLAC is not the same as saving the work. If a take is worth keeping for its reproducibility rather than its audio, keep the full export. That's the whole point of this node over the Save Audio node you already have.

CategoryYuE2 音乐

Inputs (2)

NameTypeDefaultDescription
resultYUE2_RESULT
destinationSTRING

Outputs (1)

NameTypeDescription
export_directorySTRING