We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 953adbb + 28702f9 commit 970c990Copy full SHA for 970c990
core/network/src/main/java/com/android/developers/androidify/vertexai/FirebaseAiDataSource.kt
@@ -80,8 +80,10 @@ class FirebaseAiDataSourceImpl @Inject constructor(
80
remoteConfigDataSource.imageModelName(),
81
safetySettings =
82
ImagenSafetySettings(
83
- ImagenSafetyFilterLevel.BLOCK_LOW_AND_ABOVE,
84
- personFilterLevel = ImagenPersonFilterLevel.ALLOW_ALL,
+ safetyFilterLevel = ImagenSafetyFilterLevel.BLOCK_LOW_AND_ABOVE,
+ // Uses `ALLOW_ADULT` filter since `ALLOW_ALL` requires a special approval
85
+ // See https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen
86
+ personFilterLevel = ImagenPersonFilterLevel.ALLOW_ADULT,
87
),
88
)
89
}
0 commit comments