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