You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e8083fd
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,20 @@ VISION_NSFW_PRESET=strict
108
108
109
109
Individual tier settings (`VISION_NSFW_BLOCK`, `VISION_NSFW_REVIEW`, `VISION_NSFW_SENSITIVE`) always override the preset, so you can start from a preset and refine from there.
110
110
111
+
You can also **fine-tune each preset independently** at startup and let callers **select a preset per request**:
112
+
113
+
```dotenv
114
+
# Raise the confidence bar for the strict preset's block tier
115
+
VISION_NSFW_STRICT__BLOCK__CONFIDENCE=0.9
116
+
117
+
# Require detections to cover ≥ 5 % of the image for nude_female's review tier
See [Choose a preset](docs/2-how-to/choose-a-preset.md) and [Configure classification tiers](docs/2-how-to/tune-thresholds.md) for details.
112
126
113
127
## Environment variables
@@ -131,6 +145,7 @@ All variables are prefixed `VISION_NSFW_`. Copy `.env.example` to `.env` and fil
131
145
|`VISION_NSFW_BLOCK`|_(see defaults)_| JSON object configuring the block tier. See [Configuration Reference](docs/3-reference/configuration.md). |
132
146
|`VISION_NSFW_REVIEW`|_(see defaults)_| JSON object configuring the review tier. |
133
147
|`VISION_NSFW_SENSITIVE`|_(see defaults)_| JSON object configuring the sensitive tier. |
148
+
|`VISION_NSFW_<PRESET>__<TIER>__<FIELD>`|_(none)_| Per-preset threshold override. Tunes a specific preset in isolation so all presets are ready for per-request selection. Example: `VISION_NSFW_STRICT__BLOCK__CONFIDENCE=0.9`. |
134
149
135
150
Full reference: [docs/3-reference/configuration.md](docs/3-reference/configuration.md)
0 commit comments