Add anti child porn patch #3

Merged
Hitmare merged 4 commits from cofob/Eris_api_tensor_patch:anti-child-porn into main 2024-01-06 09:42:54 +00:00
1 changed files with 6 additions and 2 deletions
Showing only changes of commit 0505146563 - Show all commits

View File

@ -25,6 +25,8 @@ The modified API.py file can do the following:
5. Eris Imagelimit:
- Will resize and limit every request down to 1024px max on height and width, keeping the aspect ratio. Also reduces Steps down to 35 if the set Steps exceeds 35
- Compatible with TRTpatch. Please read the Readme in the `TRT-Patch` folder for the additional instructions
6. Eris AntiChildPorn:
- Will prevent the generation of child porn images.
# Enabling the Modifications
@ -38,11 +40,12 @@ eris_imagelog = False
eris_consolelog = False
eris_TRTpatch = False
eris_imagelimit = False
eris_antichildporn = False
```
Change the `False` to `True` to enable any of the modifications.
For example to enable the Promptlog and Imagelog:
For example to enable the Promptlog, Imagelog and AntiChildPorn:
```python
eris_promtlog = True
@ -50,6 +53,7 @@ eris_imagelog = True
eris_consolelog = False
eris_TRTpatch = False
eris_imagelimit = False
eris_antichildporn = True
```
Don't forget to save the `api.py` file again and (re)start your A1111 Stable-difussion
@ -57,4 +61,4 @@ Don't forget to save the `api.py` file again and (re)start your A1111 Stable-dif
::: warn
Additional and !!**__necessary__**!! Instructions for the TRT-Patch are in the `TRT-Patch` Folder
:::
:::