Add HQ upscale override to MiniMax duration queue
This commit is contained in:
@@ -32,6 +32,7 @@ Options:
|
||||
--height <int> Output height. Default: ${DEFAULT_HEIGHT}
|
||||
--steps <int> First-pass steps. Default: ${DEFAULT_STEPS}
|
||||
--high-quality <bool> Enable HIGH QUALITY branch. Default: false
|
||||
--upscale-multiplier <n> Override RTX/HQ upscale multiplier. Default: prompt value
|
||||
--prefix <text> Output filename prefix root. Default: MiniMax/r2v-duration-sweep
|
||||
--out-dir <path> Run artifact directory. Default: ${DEFAULT_OUT_ROOT}/<timestamp>
|
||||
--dry-run Resolve prompts locally but do not submit
|
||||
@@ -55,6 +56,7 @@ function parseArgs(argv) {
|
||||
height: DEFAULT_HEIGHT,
|
||||
steps: DEFAULT_STEPS,
|
||||
highQuality: false,
|
||||
upscaleMultiplier: null,
|
||||
prefix: 'MiniMax/r2v-duration-sweep',
|
||||
outDir: '',
|
||||
dryRun: false,
|
||||
@@ -87,6 +89,7 @@ function parseArgs(argv) {
|
||||
case '--height': options.height = Math.trunc(Number(take())); break;
|
||||
case '--steps': options.steps = Math.trunc(Number(take())); break;
|
||||
case '--high-quality': options.highQuality = parseBoolean(take()); break;
|
||||
case '--upscale-multiplier': options.upscaleMultiplier = Number(take()); break;
|
||||
case '--prefix': options.prefix = take(); break;
|
||||
case '--out-dir': options.outDir = take(); break;
|
||||
default:
|
||||
@@ -134,6 +137,9 @@ function buildPrompt(basePrompt, variant, uploadedRefs) {
|
||||
prompt['550:537'].inputs.value = variant.durationSeconds;
|
||||
prompt['566'].inputs.value = variant.steps;
|
||||
prompt['715'].inputs.value = variant.highQuality;
|
||||
if (variant.upscaleMultiplier !== null) {
|
||||
prompt['723'].inputs.value = variant.upscaleMultiplier;
|
||||
}
|
||||
prompt['539'].inputs.noise_seed = variant.seed;
|
||||
prompt['591'].inputs.string_b = prompt['591'].inputs.string_b.replace(
|
||||
/A clean 10-second cinematic shot/,
|
||||
@@ -205,6 +211,7 @@ async function main() {
|
||||
height: options.height,
|
||||
steps: options.steps,
|
||||
highQuality: options.highQuality,
|
||||
upscaleMultiplier: options.upscaleMultiplier,
|
||||
seed: 8200 + index,
|
||||
prefix: options.prefix,
|
||||
}));
|
||||
@@ -221,6 +228,7 @@ async function main() {
|
||||
height: options.height,
|
||||
steps: options.steps,
|
||||
highQuality: options.highQuality,
|
||||
upscaleMultiplier: options.upscaleMultiplier,
|
||||
durations: options.durations,
|
||||
prefix: options.prefix,
|
||||
},
|
||||
@@ -239,6 +247,7 @@ async function main() {
|
||||
slug: variant.slug,
|
||||
durationSeconds: variant.durationSeconds,
|
||||
frameLength: prompt['576'].inputs.length,
|
||||
upscaleMultiplier: variant.upscaleMultiplier,
|
||||
dryRun: true,
|
||||
});
|
||||
continue;
|
||||
@@ -257,6 +266,7 @@ async function main() {
|
||||
slug: variant.slug,
|
||||
durationSeconds: variant.durationSeconds,
|
||||
frameLength: prompt['576'].inputs.length,
|
||||
upscaleMultiplier: variant.upscaleMultiplier,
|
||||
promptId,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user