Restore automatic video batch continuation and prepare stable Comfy loading
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { createUpscaleHost } from './upscale-host.mjs'
|
||||
import { stableMemoryArgs } from './comfy-memory-policy.mjs'
|
||||
import { createGpuReservation } from './gpu-reservation.mjs'
|
||||
import { createGpuProxy } from './gpu-proxy.mjs'
|
||||
import { createYueGpHost } from './yuegp-host.mjs'
|
||||
@@ -265,6 +266,9 @@ function resolveHeadlessLaunch() {
|
||||
]
|
||||
const extraArgs = String(inst.launchArgs || '').trim()
|
||||
if (extraArgs) args.push(...extraArgs.split(/\s+/).filter(Boolean))
|
||||
const cliPath = join(inst.installPath, 'ComfyUI', 'comfy', 'cli_args.py')
|
||||
const memoryArgs = stableMemoryArgs(args, { cliSource: existsSync(cliPath) ? readFileSync(cliPath, 'utf8') : '' })
|
||||
args.splice(0, args.length, ...memoryArgs)
|
||||
if (extraConfig) args.push('--extra-model-paths-config', extraConfig)
|
||||
if (existsSync(roots.input)) args.push('--input-directory', roots.input)
|
||||
if (existsSync(roots.output)) args.push('--output-directory', roots.output)
|
||||
|
||||
Reference in New Issue
Block a user