- [x] Remove `NovelAIMetadata` from utils, move to `from novelai_python.tool.image_metadata`
- [x] random prompt
diff
- utils.random_prompt
+ tool.random_prompt
- [x] Remove param in `API.generate(**kwarg)`
diff
:param override_headers:
:param session: session
- :param remove_sign: 移除追踪信息
- [x] Move `create_mask_from_sketch` to tool
diff
- from novelai_python.utils.useful import create_mask_from_sketch
+ from novelai_python.tool.paint_mask import create_mask_from_sketch
- [x] Add `tokenizer`
diff
+ from novelai_python.tokenizer import TokenizerUtil
- [x] Add `verify`
diff
+ from novelai_python.tool.image_metadata import ImageMetadata
+ verify = ImageMetadata.verify_image_is_novelai(Image.open(image))
Solve 37 36
What's Changed
* ✨ feat: add apply_lsb script, update enum with new model, and fix lsb… by sudoskys in https://github.com/LlmKira/novelai-python/pull/39
**Full Changelog**: https://github.com/LlmKira/novelai-python/compare/pypi_0.4.0...pypi_0.4.1
pypi_0.4.0
> [!CAUTION]
> Break Change
- [x] Remove `NovelAIMetadata` from utils, move to `from novelai_python.tool.image_metadata`
- [x] random prompt
diff
- utils.random_prompt
+ tool.random_prompt
- [x] Remove param in `API.generate(**kwarg)`
diff
:param override_headers:
:param session: session
- :param remove_sign: 移除追踪信息
- [x] Move `create_mask_from_sketch` to tool
diff
- from novelai_python.utils.useful import create_mask_from_sketch
+ from novelai_python.tool.paint_mask import create_mask_from_sketch
- [x] Add `tokenizer`
diff
+ from novelai_python.tokenizer import TokenizerUtil
- [x] Add `verify`
diff
+ from novelai_python.tool.image_metadata import ImageMetadata
+ verify = ImageMetadata.verify_image_is_novelai(Image.open(image))
Solve 37 36
pypi_0.3.8
pypi_0.3.7
- [x] Fix logic errors to make vibe consistent with web effects
pypi_0.3.6
- The backend has been converted from `api.novelai.net` to `image.novelai.net`, please refer to issue 32. This backend will compete with the web page for threads.
What's Changed
* Vibe inpaint Support & better playground by sudoskys in https://github.com/LlmKira/novelai-python/pull/31
**Full Changelog**: https://github.com/LlmKira/novelai-python/compare/pypi_0.3.5...pypi_0.3.6
pypi_0.3.5
python
gen = GenerateImageInfer.build(
prompt=f"1girl, spring, jacket, sfw, angel, flower,{enhance}",
action=Action.GENERATE,
image=encoded,
add_original_image=True,
strength=0.6,
reference_mode=True, IMPORTANT
width=1088,
height=896
)
when reference_mode is True, strength -> reference_strength
What's Changed
* Vibe Transfer by sudoskys in https://github.com/LlmKira/novelai-python/pull/29
* fix(sdk): Add reference_image reference_strength etc. by sudoskys in https://github.com/LlmKira/novelai-python/pull/30
**Full Changelog**: https://github.com/LlmKira/novelai-python/compare/pypi_0.3.4...pypi_0.3.5
pypi_0.3.4
pypi_0.3.3
pypi_0.3.2
/ai/generate-image/suggest-tags
pypi_0.3.1
pypi_0.3.0
FOR INPAINT
pypi_0.2.9
✨ feat: add /ai/upscale endpoint to API
The /ai/upscale endpoint has been added to the API.
- [x] Fix error when using AsyncSession as input
pypi_0.2.8
pypi_0.2.7