Skip to content

[Vertex AI] Refactor ImagenSafetySettings #14307

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

andrewheard
Copy link
Contributor

  • Renamed ImagenSafetySettings.PersonGeneration to ImagenPersonFilterLevel since it does not control whether people are generated, only whether they get filtered out after generation.
  • Renamed ImagenSafetySettings.SafetyFilterLevel to ImagenSafetyFilterLevel to align with other platforms.
  • Removed includeFilterReason since we've decided to hardcode it to true (when false, no feedback is provided when images are filtered).

#14221
#no-changelog

@google-oss-bot
Copy link

1 Warning
⚠️ New public headers were added, did you remember to add them to the umbrella header?

Generated by 🚫 Danger

@andrewheard andrewheard marked this pull request as ready for review January 6, 2025 23:27
@andrewheard andrewheard requested a review from paulb777 January 6, 2025 23:27
@andrewheard andrewheard merged commit 53d43d8 into vertex-imagen Jan 7, 2025
38 checks passed
@andrewheard andrewheard deleted the ah/vertex-imagen-safety branch January 7, 2025 15:30
@firebase firebase locked and limited conversation to collaborators Feb 7, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants