novelai-2-local-prompt icon indicating copy to clipboard operation
novelai-2-local-prompt copied to clipboard

Script for Stable-Diffusion WebUI (AUTOMATIC1111) to convert the prompt format used by NovelAI.

novelai-2-local-prompt

Script for Stable-Diffusion WebUI (AUTOMATIC1111) to convert the prompt format used by NovelAI.
English 日本語

tldr

Add a button to convert the prompts used in NovelAI for use in the WebUI.
In addition, add a button that allows you to recall a previously used prompt.
NovelAIで使われるプロンプトを、WebUIで使えるように変換するボタンを追加します。
加えて、前に使ったプロンプトを呼び戻すことができるボタンも追加します。

Credits

https://rentry.org/43zdr
https://github.com/naisd5ch/novel-ai-5ch-wiki-js
nan-J NovelAI club

en

INSTALL

~~Put nai2local.js into your stable-diffusion-webui/javascript~~
Recommended: Use WebUI's Extensions tab
(Alternative):git clone https://github.com/animerl/novelai-2-local-prompt.git extensions/novelai-2-local-prompt

Usage

Simply click on NAIConvert. It will automatically process the brackets, prefix them with a quality tag, and insert a default value in the negative prompt. Multipliers are rounded off to four decimal places.

(a),{b},[c]
↓NAIConvert
masterpiece, best quality,
\(a\),(b:1.05),(c:0.9524)

Click History to call back previously generated prompts, starting with the newest. The default maximum number of saves is 10(MaxHistory).

ja

INSTALL

~~nai2local.jsstable-diffusion-webui/javascriptに入れてください。~~
推奨: WebUIのExtensionsタブからインストール。
もしくは、手動で:git clone https://github.com/animerl/novelai-2-local-prompt.git extensions/novelai-2-local-prompt

NAIConvertをクリックすると、自動で括弧が処理され、quality tagが追加され、ネガティブプロンプトにNovelAIが利用しているものが自動で追加されます。 ワードに対して適用される倍数は、小数点以下4桁で丸めています。

(a),{b},[c]
↓NAIConvert
masterpiece, best quality,
\(a\),(b:1.05),(c:0.9524)

Historyをクリックすると、前に生成したプロンプトを新しいものから順に呼び出します。最大保存数はデフォルトで10です(MaxHistory)