ComfyUI Node

Artist Name Converter

To plain, in one pass

By zisonMyu·Created 4 months ago·Updated 3 months ago· 2
Artist Name Converter
    • converted_artists
    • detected_source_style
    artist_names
    source_style
    target_style
    escape_parenthesestrue

    Every anime ecosystem has its own way of tagging the artist, and they don't agree. Plain SD just writes wlop. The Anima crowd writes @wlop. NoobAI and NovelAI want artist:wlop. And NewBie tucks the whole list inside a <style> element. If you keep artist lists around - a style library, a set of tags you swap between checkpoints - you've probably got them all in one dialect and need them in another. ArtistNameConverter is the standalone list version of that problem: no full prompt, no weights, just names in, names out.

    It's the sibling of the pack's ArtistPrefixConverter, and the split between them is worth knowing before you pick. This node works on a list of artist names only - multiline or comma-separated. If you have a full prompt with weights and other tags mixed in, use ArtistPrefixConverter or the main converter instead. If you have a clean list, this is the one.

    How it works

    You paste names into artist_names (it splits on commas and newlines), pick source_style and target_style, and it rewrites the prefixes. The options are the four dialects: plain SD, @ - SD(anima), artist: - NAI, and NewBie <style>. Source can be Auto-detect, which sniffs for @ or artist: prefixes and reports what it found in detected_source_style.

    Mechanically it's straightforward: strip any existing @ or artist: prefix, clean up, re-apply the target's prefix, and join back up. escape_parentheses (on by default) escapes literal parens in artist names - relevant because Danbooru handles like ask(askzy) exist, and an unescaped paren will be read as an emphasis marker by an SD-family text encoder.

    One output detail: targeting NewBie <style> wraps the whole list in an XML element - <style>wlop, torino_aqua</style> - because that's where NewBie's format expects artists to live.

    The honest limits

    Because this node only deals with prefixes, it can't identify a plain artist name as an artist - wlop with no @ and no artist: is just a word to it. So converting plain SD to @ - SD(anima) won't magically know which of your tags are artists; if that's the job, you need the exact-artist detection path in the main converter, which uses the Danbooru artist CSV. This node is for the case where the prefixes already exist, or where you're adding a prefix to a list you curated yourself. Feed it @torino_aqua, artist:ask(askzy), wlop and it'll sort them into whichever dialect you ask for.

    Install

    Same as every node in this pack: search "ComfyUI-Prompt-Format-Converter" in ComfyUI Manager, or cd ComfyUI/custom_nodes && git clone https://github.com/zisonMyu/ComfyUI-Prompt-Format-Converter, then restart. It's a couple hundred lines of standard-library Python - no dependencies, no models, works offline.

    CategoryPrompt Tools/Artist

    Inputs (4)

    NameTypeDefaultDescription
    artist_namesSTRING
    source_styleCOMBO4 options: Auto-detect, plain SD, @ - SD(anima), artist: - NAI
    target_styleCOMBO4 options: plain SD, @ - SD(anima), artist: - NAI, NewBie <style>
    escape_parenthesesBOOLEANtrue

    Outputs (2)

    NameTypeDescription
    converted_artistsSTRING
    detected_source_styleSTRING