Skip to content

pypi_0.7.2 generate_image: Fine-grained control

Compare
Choose a tag to compare
@sudoskys sudoskys released this 03 Jan 08:00
· 23 commits to main since this release
52ab424

What's Changed

  • ✨ feat(generate_image): add mutual exclusion and quality modifier by @sudoskys in #95
GenerateImageInfer

    def set_mutual_exclusion(self, value: bool):
        """
        **Enable This will modify the negative prompt.**
        Default is False.

        Positive words and negative words are mutually exclusive, and conflicting negative words are deleted first.
        :param value: bool
        :return: self
        """
        self._mutual_exclusion = bool(value)
        return self

    def set_quality_modifier(self, value: bool):
        """
        **Enable This will modify the input prompt.**
        Default is True.

        Add Quality Modifier To Input.
        Whether to add the quality vocabulary used by the web application.
        :param value:
        :return:
        """
        self._quality_modifier = bool(value)
        return self

Full Changelog: pypi_0.7.1...pypi_0.7.2