diff --git a/.buildinfo b/.buildinfo index 1cf365c..e6ea9d2 100644 --- a/.buildinfo +++ b/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 0febc9a8ec9663e155219d91ce58fb9a +config: ef759d831c964bc4ef0b7946c051c81f tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/_modules/example/boilerplate.html b/_modules/example/boilerplate.html index b928c22..18df6e2 100644 --- a/_modules/example/boilerplate.html +++ b/_modules/example/boilerplate.html @@ -5,7 +5,7 @@
-
Inpainting_Anime_Full = "nai-diffusion-inpainting"
Inpainting_Furry = "furry-diffusion-inpainting"
- Anime_v2 = "nai-diffusion-2"
Large_Portrait_v2 = (1024, 1536)
Large_Landscape_v2 = (1536, 1024)
- Large_Square_v2 = (1472, 1472)
Preset_Bad_Anatomy = 2
Preset_None = 3
- Preset_v2_Heavy = 4
- Preset_v2_Light = 5
- Preset_v2_None = 6
},
# v2
ImageModel.Anime_v2: {
- UCPreset.Preset_v2_Heavy: "nsfw, lowres, bad, text, error, missing, extra, fewer, cropped, jpeg artifacts, "
+ UCPreset.Preset_Heavy: "nsfw, lowres, bad, text, error, missing, extra, fewer, cropped, jpeg artifacts, "
"worst quality, bad quality, watermark, displeasing, unfinished, chromatic aberration, scan, "
"scan artifacts",
- UCPreset.Preset_v2_Light: "nsfw, lowres, jpeg artifacts, worst quality, watermark, blurry, "
+ UCPreset.Preset_Light: "nsfw, lowres, jpeg artifacts, worst quality, watermark, blurry, "
"very displeasing",
- UCPreset.Preset_v2_None: "lowres",
+ UCPreset.Preset_None: "lowres",
},
}
@@ -222,6 +237,8 @@ Source code for novelai_api.ImagePreset
_UC_Presets[ImageModel.Inainting_Anime_Curated] = _UC_Presets[ImageModel.Anime_Curated]
_UC_Presets[ImageModel.Inpainting_Anime_Full] = _UC_Presets[ImageModel.Anime_Full]
_UC_Presets[ImageModel.Inpainting_Furry] = _UC_Presets[ImageModel.Furry]
+ _UC_Presets[ImageModel.Anime_v3] = _UC_Presets[ImageModel.Anime_v2]
+ _UC_Presets[ImageModel.Inpainting_Anime_v3] = _UC_Presets[ImageModel.Anime_v2]
_CONTROLNET_MODELS = {
ControlNetModel.Palette_Swap: "hed",
@@ -298,6 +315,10 @@ Source code for novelai_api.ImagePreset
add_original_image: bool
#: Mask for inpainting (b64-encoded black and white png image, white is the inpainting area)
mask: str
+ #: https://docs.novelai.net/image/stepsguidance.html#prompt-guidance-rescale
+ cfg_rescale: float
+ #: ??? (TODO: use an enum ? - valid values: native, karras, exponential, polyexponential)
+ noise_schedule: str
_DEFAULT = {
"legacy": False,
@@ -317,6 +338,8 @@ Source code for novelai_api.ImagePreset
"decrisper": False,
"controlnet_strength": 1.0,
"add_original_image": False,
+ "cfg_rescale": 0.0,
+ "noise_schedule": "native",
}
_settings: Dict[str, Any]
@@ -550,7 +573,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.ImagePreset
diff --git a/_modules/novelai_api/Keystore.html b/_modules/novelai_api/Keystore.html
index 4ef7d06..f983e09 100644
--- a/_modules/novelai_api/Keystore.html
+++ b/_modules/novelai_api/Keystore.html
@@ -5,7 +5,7 @@
- novelai_api.Keystore — NovelAI API 0.20.0 documentation
+ novelai_api.Keystore — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.Keystore
@@ -260,7 +260,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.Keystore
diff --git a/_modules/novelai_api/NovelAIError.html b/_modules/novelai_api/NovelAIError.html
index ed76ec5..eee72d6 100644
--- a/_modules/novelai_api/NovelAIError.html
+++ b/_modules/novelai_api/NovelAIError.html
@@ -5,7 +5,7 @@
- novelai_api.NovelAIError — NovelAI API 0.20.0 documentation
+ novelai_api.NovelAIError — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.NovelAIError
@@ -105,7 +105,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.NovelAIError
diff --git a/_modules/novelai_api/NovelAI_API.html b/_modules/novelai_api/NovelAI_API.html
index 704f97d..8ddfd0d 100644
--- a/_modules/novelai_api/NovelAI_API.html
+++ b/_modules/novelai_api/NovelAI_API.html
@@ -5,7 +5,7 @@
- novelai_api.NovelAI_API — NovelAI API 0.20.0 documentation
+ novelai_api.NovelAI_API — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.NovelAI_API
@@ -194,7 +194,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.NovelAI_API
diff --git a/_modules/novelai_api/Preset.html b/_modules/novelai_api/Preset.html
index e1b096d..651e94e 100644
--- a/_modules/novelai_api/Preset.html
+++ b/_modules/novelai_api/Preset.html
@@ -5,7 +5,7 @@
- novelai_api.Preset — NovelAI API 0.20.0 documentation
+ novelai_api.Preset — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.Preset
@@ -677,7 +677,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.Preset
diff --git a/_modules/novelai_api/SchemaValidator.html b/_modules/novelai_api/SchemaValidator.html
index fa045e1..e42979b 100644
--- a/_modules/novelai_api/SchemaValidator.html
+++ b/_modules/novelai_api/SchemaValidator.html
@@ -5,7 +5,7 @@
- novelai_api.SchemaValidator — NovelAI API 0.20.0 documentation
+ novelai_api.SchemaValidator — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.SchemaValidator
@@ -121,7 +121,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.SchemaValidator
diff --git a/_modules/novelai_api/StoryHandler.html b/_modules/novelai_api/StoryHandler.html
index cf42824..73d92f4 100644
--- a/_modules/novelai_api/StoryHandler.html
+++ b/_modules/novelai_api/StoryHandler.html
@@ -5,7 +5,7 @@
- novelai_api.StoryHandler — NovelAI API 0.20.0 documentation
+ novelai_api.StoryHandler — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.StoryHandler
@@ -551,7 +551,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.StoryHandler
diff --git a/_modules/novelai_api/Tokenizer.html b/_modules/novelai_api/Tokenizer.html
index ef75925..f8dd4e4 100644
--- a/_modules/novelai_api/Tokenizer.html
+++ b/_modules/novelai_api/Tokenizer.html
@@ -5,7 +5,7 @@
- novelai_api.Tokenizer — NovelAI API 0.20.0 documentation
+ novelai_api.Tokenizer — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.Tokenizer
@@ -298,7 +298,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.Tokenizer
diff --git a/_modules/novelai_api/_high_level.html b/_modules/novelai_api/_high_level.html
index 8672d6b..086c28f 100644
--- a/_modules/novelai_api/_high_level.html
+++ b/_modules/novelai_api/_high_level.html
@@ -5,7 +5,7 @@
- novelai_api._high_level — NovelAI API 0.20.0 documentation
+ novelai_api._high_level — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api._high_level
@@ -569,7 +569,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api._high_level
diff --git a/_modules/novelai_api/_low_level.html b/_modules/novelai_api/_low_level.html
index 6b4047b..3829215 100644
--- a/_modules/novelai_api/_low_level.html
+++ b/_modules/novelai_api/_low_level.html
@@ -5,7 +5,7 @@
- novelai_api._low_level — NovelAI API 0.20.0 documentation
+ novelai_api._low_level — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api._low_level
@@ -1002,7 +1002,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api._low_level
diff --git a/_modules/novelai_api/utils.html b/_modules/novelai_api/utils.html
index 79294cf..9a2562d 100644
--- a/_modules/novelai_api/utils.html
+++ b/_modules/novelai_api/utils.html
@@ -5,7 +5,7 @@
- novelai_api.utils — NovelAI API 0.20.0 documentation
+ novelai_api.utils — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.utils
@@ -456,7 +456,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
novelai_api.utils
diff --git a/_modules/tests/api/boilerplate.html b/_modules/tests/api/boilerplate.html
index 91661b2..edad82f 100644
--- a/_modules/tests/api/boilerplate.html
+++ b/_modules/tests/api/boilerplate.html
@@ -5,7 +5,7 @@
- tests.api.boilerplate — NovelAI API 0.20.0 documentation
+ tests.api.boilerplate — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
tests.api.boilerplate
@@ -251,7 +251,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
tests.api.boilerplate
diff --git a/_modules/tests/api/test_decrypt_encrypt_integrity_check.html b/_modules/tests/api/test_decrypt_encrypt_integrity_check.html
index a39b62d..d1eae58 100644
--- a/_modules/tests/api/test_decrypt_encrypt_integrity_check.html
+++ b/_modules/tests/api/test_decrypt_encrypt_integrity_check.html
@@ -5,7 +5,7 @@
- tests.api.test_decrypt_encrypt_integrity_check — NovelAI API 0.20.0 documentation
+ tests.api.test_decrypt_encrypt_integrity_check — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
tests.api.test_decrypt_encrypt_integrity_check
@@ -307,7 +307,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
tests.api.test_decrypt_encrypt_integrity_check
diff --git a/_modules/tests/api/test_textgen_presets.html b/_modules/tests/api/test_textgen_presets.html
index f109d4d..69c2e88 100644
--- a/_modules/tests/api/test_textgen_presets.html
+++ b/_modules/tests/api/test_textgen_presets.html
@@ -5,7 +5,7 @@
- tests.api.test_textgen_presets — NovelAI API 0.20.0 documentation
+ tests.api.test_textgen_presets — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
tests.api.test_textgen_presets
@@ -144,7 +144,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Module code »
tests.api.test_textgen_presets
diff --git a/_static/documentation_options.js b/_static/documentation_options.js
index 15bf5e5..ad76555 100644
--- a/_static/documentation_options.js
+++ b/_static/documentation_options.js
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
- VERSION: '0.20.0',
+ VERSION: '0.21.0',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
diff --git a/example/example.boilerplate.html b/example/example.boilerplate.html
index 554b1c3..2860d88 100644
--- a/example/example.boilerplate.html
+++ b/example/example.boilerplate.html
@@ -6,7 +6,7 @@
- boilerplate — NovelAI API 0.20.0 documentation
+ boilerplate — NovelAI API 0.21.0 documentation
@@ -52,7 +52,7 @@ Navigation
previous |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
example directory »
boilerplate
@@ -198,7 +198,7 @@ Navigation
previous |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
example directory »
boilerplate
diff --git a/example/example.html b/example/example.html
index ed3d9d7..813bb9e 100644
--- a/example/example.html
+++ b/example/example.html
@@ -6,7 +6,7 @@
- example directory — NovelAI API 0.20.0 documentation
+ example directory — NovelAI API 0.21.0 documentation
@@ -52,7 +52,7 @@ Navigation
previous |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
example directory
@@ -284,7 +284,7 @@ Navigation
previous |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
example directory
diff --git a/genindex.html b/genindex.html
index 85342e0..63696e9 100644
--- a/genindex.html
+++ b/genindex.html
@@ -5,7 +5,7 @@
- Index — NovelAI API 0.20.0 documentation
+ Index — NovelAI API 0.21.0 documentation
@@ -43,7 +43,7 @@ Navigation
modules |
- NovelAI API 0.20.0 documentation »
+ NovelAI API 0.21.0 documentation »
Index
@@ -145,6 +145,8 @@ A
Activity
Mask for inpainting (b64-encoded black and white png image, white is the inpainting area)
https://docs.novelai.net/image/stepsguidance.html#prompt-guidance-rescale
+??? (TODO: use an enum ? - valid values: native, karras, exponential, polyexponential)
+ImageModel.Inpainting_Anime_Full
ImageModel.Inpainting_Furry
ImageModel.Anime_v2
ImageModel.Anime_v3
ImageModel.Inpainting_Anime_v3
ControlNetModel
ImageResolution.Large_Portrait_v2
ImageResolution.Large_Landscape_v2
ImageResolution.Large_Square_v2
ImageResolution.Small_Portrait_v3
ImageResolution.Small_Landscape_v3
ImageResolution.Small_Square_v3
ImageResolution.Normal_Portrait_v3
ImageResolution.Normal_Landscape_v3
ImageResolution.Normal_Square_v3
ImageResolution.Large_Portrait_v3
ImageResolution.Large_Landscape_v3
ImageResolution.Large_Square_v3
ImageSampler
ImageGenerationType
ImagePreset.decrisper
ImagePreset.add_original_image
ImagePreset.mask
ImagePreset.cfg_rescale
ImagePreset.noise_schedule
ImagePreset.last_seed
ImagePreset.__init__()
ImagePreset.update()