Add MOSS-Image on the Image v2 path and stop the queue calling it Klein.
The bench queue labeled every engine except Krea, Qwen, MiniMax, and LTX as Klein, and the v2 starter treated any engine other than Krea as Flux. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2,8 +2,7 @@ import { addStudioJob, kickStudioQueue, listStudioJobs, videoJobsBusy } from '~/
|
||||
import { comfyConfigured } from '~/server/utils/comfy'
|
||||
import {
|
||||
IMAGE_V2_CFG_DEFAULT,
|
||||
IMAGE_V2_KREA_CFG,
|
||||
IMAGE_V2_KREA_STEPS,
|
||||
imageV2SamplingDefaults,
|
||||
IMAGE_V2_STEPS_DEFAULT,
|
||||
IMAGE_V2_TURBO_CFG,
|
||||
IMAGE_V2_TURBO_STEPS,
|
||||
@@ -54,12 +53,13 @@ export default defineEventHandler(async (event) => {
|
||||
const negative = buildAssetPackNegative(
|
||||
String(body?.negative_prompt ?? body?.negative ?? '').trim()
|
||||
)
|
||||
const turbo = parseBool(body?.turbo)
|
||||
const steps = engine === 'krea'
|
||||
? clampImageSteps(body?.steps, IMAGE_V2_KREA_STEPS)
|
||||
const turbo = engine === 'moss' ? false : parseBool(body?.turbo)
|
||||
const sampling = imageV2SamplingDefaults(engine)
|
||||
const steps = engine === 'krea' || engine === 'moss'
|
||||
? clampImageSteps(body?.steps, sampling.steps)
|
||||
: turbo ? IMAGE_V2_TURBO_STEPS : clampImageSteps(body?.steps, IMAGE_V2_STEPS_DEFAULT)
|
||||
const cfg = engine === 'krea'
|
||||
? clampImageCfg(body?.cfg, IMAGE_V2_KREA_CFG)
|
||||
const cfg = engine === 'krea' || engine === 'moss'
|
||||
? clampImageCfg(body?.cfg, sampling.cfg)
|
||||
: turbo ? IMAGE_V2_TURBO_CFG : clampImageCfg(body?.cfg, IMAGE_V2_CFG_DEFAULT)
|
||||
const seed = body?.seed != null && String(body.seed) !== '' && String(body.seed) !== 'random'
|
||||
? Number(body.seed)
|
||||
|
||||
Reference in New Issue
Block a user