Closed sudoskys closed 7 months ago
[!CAUTION] Break Change
[!CAUTION]
[x] Remove NovelAIMetadata from utils, move to from novelai_python.tool.image_metadata
NovelAIMetadata
from novelai_python.tool.image_metadata
[x] random prompt
utils.random_prompt
tool.random_prompt
[x] Remove param in API.generate(**kwarg)
API.generate(**kwarg)
:param override_headers: :param session: session
:param remove_sign: 移除追踪信息
[x] Move create_mask_from_sketch to tool
create_mask_from_sketch
from novelai_python.utils.useful import create_mask_from_sketch
from novelai_python.tool.paint_mask import create_mask_from_sketch
[x] Add tokenizer
tokenizer
from novelai_python.tokenizer import TokenizerUtil
[x] Add verify
verify
from novelai_python.tool.image_metadata import ImageMetadata
verify = ImageMetadata.verify_image_is_novelai(Image.open(image))
Solve #37 #36
[x] Remove
NovelAIMetadata
from utils, move tofrom novelai_python.tool.image_metadata
[x] random prompt
utils.random_prompt
tool.random_prompt
[x] Remove param in
API.generate(**kwarg)
:param remove_sign: 移除追踪信息
[x] Move
create_mask_from_sketch
to toolfrom novelai_python.utils.useful import create_mask_from_sketch
from novelai_python.tool.paint_mask import create_mask_from_sketch
[x] Add
tokenizer
from novelai_python.tokenizer import TokenizerUtil
[x] Add
verify
from novelai_python.tool.image_metadata import ImageMetadata
verify = ImageMetadata.verify_image_is_novelai(Image.open(image))
Solve #37 #36