Rename caption GGUF NSFW labels to NS.

Point caption host scripts at the renamed local Comfy models folder and filenames; no Comfy workflow JSONs referenced those files.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-10-12 11:33:43 -05:00
co-authored by Cursor
parent 26a3bfb797
commit 7dcac5444c
4 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -6,13 +6,13 @@ import { pipeline } from 'node:stream/promises'
import { Transform } from 'node:stream'
import { captionStylePrompt, CAPTION_STYLES } from '../shared/caption.mjs'
const MODEL_NAME = 'Qwen2.5-VL-7B-NSFW-Caption-V4.Q5_K_M.gguf'
const MMPROJ_NAME = 'Qwen2.5-VL-7B-NSFW-Caption-V4.mmproj-f16.gguf'
const MODEL_NAME = 'Qwen2.5-VL-7B-NS-Caption-V4.Q5_K_M.gguf'
const MMPROJ_NAME = 'Qwen2.5-VL-7B-NS-Caption-V4.mmproj-f16.gguf'
function defaultModelsDir() {
const shared = process.env.COMFY_MODELS_ROOT
|| join(process.env.LOCALAPPDATA || '', 'Comfy-Desktop', 'ComfyUI-Shared', 'models')
return resolve(process.env.CAPTION_MODELS || join(shared, 'caption', 'qwen25vl-7b-nsfw-v4'))
return resolve(process.env.CAPTION_MODELS || join(shared, 'caption', 'qwen25vl-7b-ns-v4'))
}
/** Prefer winget ggml.llamacpp; never download. Process exit after one caption = keep_alive 0. */