Always prepend the Comfy identity prefix and keep refs on every shot.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -13,11 +13,11 @@ export function identityBoilerplate(extraRefs: number | number[] = 0) {
|
||||
: extras.length === 1
|
||||
? ` <Picture ${extras[0]}> is a secondary reference angle for profile details.`
|
||||
: ` ${extras.map(n => `<Picture ${n}>`).join(' and ')} are secondary reference angles for profile features only.`
|
||||
return `<Picture 1> is the exact facial identity, hairstyle, body proportions and clothing of the main character. Preserve this identity with high fidelity even when the subject temporarily leaves the frame and returns.${secondary}`
|
||||
return `<Picture 1> is the primary identity anchor defining exact facial geometry, hairstyle, and body proportions.${secondary} Strictly maintain the structural proportions of <Picture 1> with high fidelity when moving.`
|
||||
}
|
||||
|
||||
export function looksLikeIdentityPrompt(text: string) {
|
||||
return /primary identity anchor|exact facial identity/i.test(String(text || ''))
|
||||
return /^<Picture 1> is the (primary identity anchor|exact facial identity)/i.test(String(text || '').trim())
|
||||
}
|
||||
|
||||
export function buildIdentityPrompt(actionPrompt: string, extraRefs: number | number[] = 0) {
|
||||
|
||||
Reference in New Issue
Block a user