From 97b54f6d9e12b081bef031a87fd38c35485d2e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A9=E6=B6=AF=E5=8F=A4=E5=B7=B7?= Date: Sat, 30 Dec 2023 09:27:48 +0800 Subject: [PATCH] Update README_en.md --- README_en.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README_en.md b/README_en.md index f835df4..167301e 100755 --- a/README_en.md +++ b/README_en.md @@ -185,6 +185,26 @@ Modify the values in backend/config.py and try different removal algorithms. Her > - **InpaintMode.LAMA** algorithm: Best for images and effective for animated videos, moderate speed, unable to skip subtitle detection > - **InpaintMode.PROPAINTER** algorithm: Consumes a significant amount of VRAM, slower in speed, works better for videos with very intense movement +- Using the STTN algorithm + +```python +MODE = InpaintMode.STTN # Set to STTN algorithm +# Number of neighboring frames, increasing this will increase memory usage and improve the result +STTN_NEIGHBOR_STRIDE = 10 +# Length of reference frames, increasing this will increase memory usage and improve the result +STTN_REFERENCE_LENGTH = 10 +# Set the maximum number of frames processed simultaneously by the STTN algorithm, a larger value leads to slower processing but better results +# Ensure that STTN_MAX_LOAD_NUM is greater than STTN_NEIGHBOR_STRIDE and STTN_REFERENCE_LENGTH +STTN_MAX_LOAD_NUM = 30 +``` +- Using the LAMA algorithm + +```python +MODE = InpaintMode.LAMA # Set to LAMA algorithm +LAMA_SUPER_FAST = False # Ensure quality +``` + + 3. CondaHTTPError Place the .condarc file from the project in the user directory (C:/Users/). If the file already exists in the user directory, overwrite it.