Sd-parsers

Latest version: v0.4

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.4

Initial support for images generated with [Fooocus](https://github.com/lllyasviel/Fooocus).
Usability improvements.

**Full Changelog**: https://github.com/d3x-at/sd-parsers/compare/v0.3.1...v0.4

0.4rc1

Initial support for images generated with [Fooocus](https://github.com/lllyasviel/Fooocus).
Usability improvements.

**Full Changelog**: https://github.com/d3x-at/sd-parsers/compare/v0.3.1...v0.4rc1

0.3.1

* Speed improvements
* Added two_pass option to ParserManager to control parsing behaviour.
* Two-pass parsing tries to use the `info` property of the PIL image before falling back to `text`. This will considerable speed up parsing a large number of well-formed PNG files with actual SD parameters.
* If the majority of files is expected to not have SD metadata, setting two_pass to `False` will provide better performance.
* General code cleanup

0.3

> Read below and check the provided examples to get an idea of what has changed.

0.2.3

* The import statement has changed to: `import sd_parsers`.

* `ParserManager.parse()` now has an option to lazily read the image parameters.

Setting `lazy_read` to `True` will delay the evaluation of parameter values until necessary.

This will speed up the initial metadata retrieval. (into `PromptInfo.parameters`)

Warning: as lazy parsing does delay some metadata checks, false results will happen more often (i.e., JPEG images with a set `UserComment` field).

* `PromptInfo.prompts` changed from a list of tuples of positive and negative to two separate lists: `PromptInfo.prompts` and `PromptInfo.negative_prompts`.

* `PromptInfo.raw_params` was renamed to `PromptInfo.parameters`.

* The value of `PromptInfo.generator` is now an entry of `sd_parsers.Generators`.

* The ability to read instructions from a config file has been removed.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.