UPDATE: Ko-Fi -> Boosty | PayPal ban

PayPal banned my business account with all the money was there and I cannot use platforms like Ko-Fi from now on. **This is because I'm Russian?** Okay. Just don’t regret your current policies and double standards in the future.
<br>Times and events do pass - and the main thing in all this cycles is to remain Human.<br>Ok, enough lirics. So my friends, only one platform is now available for me and for those who wants to support this project - is <a href="https://boosty.to/artgourieff" target="_blank">Boosty</a>. Welcome.

+VersionUP (0.5.1, beta passed)
This commit is contained in:
Gourieff 2023-12-02 23:53:00 +07:00
parent d11a8a6941
commit 20d2131e81
4 changed files with 33 additions and 73 deletions

View File

@ -2,10 +2,16 @@
<img src="https://github.com/Gourieff/Assets/raw/main/sd-webui-reactor/ReActor_logo_red.png?raw=true" alt="logo" width="180px"/>
![Version](https://img.shields.io/badge/version-0.5.1_beta4-green?style=for-the-badge&labelColor=darkgreen)
<a href='https://ko-fi.com/gourieff' target='_blank'><img height='33' src='https://storage.ko-fi.com/cdn/kofi3.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
![Version](https://img.shields.io/badge/version-0.5.1-brightgreen?style=for-the-badge&labelColor=darkgreen)
<a href="https://boosty.to/artgourieff" target="_blank">
<img src="https://lovemet.ru/www/boosty.jpg" width="108" alt="Support Me on Boosty"/>
<br>
<sup>
Support This Project
</sup>
</a>
<hr>
[![Commit activity](https://img.shields.io/github/commit-activity/t/Gourieff/sd-webui-reactor/main?cacheSeconds=0)](https://github.com/Gourieff/sd-webui-reactor/commits/main)
@ -28,39 +34,13 @@
---
<table>
<tr>
<td width="134px">
<a href="https://boosty.to/artgourieff" target="_blank">
<img src="https://lovemet.ru/www/boosty.jpg" width="108" alt="Support Me on Boosty"/>
<br>
<sup>
Support This Project
</sup>
</a>
</td>
<td>
ReActor is an extension for Stable Diffusion WebUI that allows a very easy and accurate face-replacement (face swap) in images. Based on <a href="https://github.com/Gourieff/ReActor-UI" target="_blank">ReActor-UI</a>.
</td>
<td width="144px">
<a href="https://paypal.me/artgourieff" target="_blank">
<img src="https://www.paypalobjects.com/digitalassets/c/website/logo/full-text/pp_fc_hl.svg" width="108" alt="Support Me via PayPal"/>
<br>
<sup>
Donate to This Project
</sup>
</a>
</td>
</tr>
</table>
<img src="https://github.com/Gourieff/Assets/raw/main/sd-webui-reactor/demo_crop.jpg?raw=true" alt="example"/>
<a name="latestupdate">
## What's new in the latest update
### 0.5.1 <sub><sup>BETA2</sup></sub>
### 0.5.1
- You can now save face models as "safetensors" files (stored in `<sd-web-ui-folder>\models\reactor\faces`) and load them into ReActor, keeping super lightweight face models of the faces you use;
- "Face Mask Correction" option - if you encounter some pixelation around face contours, this option will be useful;

View File

@ -2,9 +2,15 @@
<img src="https://github.com/Gourieff/Assets/raw/main/sd-webui-reactor/ReActor_logo_red.png?raw=true" alt="logo" width="180px"/>
![Version](https://img.shields.io/badge/версия-0.5.1_beta4-green?style=for-the-badge&labelColor=darkgreen)
![Version](https://img.shields.io/badge/версия-0.5.1-brightgreen?style=for-the-badge&labelColor=darkgreen)
<a href='https://ko-fi.com/gourieff' target='_blank'><img height='33' src='https://storage.ko-fi.com/cdn/kofi3.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
<a href="https://boosty.to/artgourieff" target="_blank">
<img src="https://lovemet.ru/www/boosty.jpg" width="108" alt="Поддержать проект на Boosty"/>
<br>
<sup>
Поддержать проект
</sup>
</a>
<hr>
@ -27,39 +33,13 @@
---
<table>
<tr>
<td width="134px">
<a href="https://boosty.to/artgourieff" target="_blank">
<img src="https://lovemet.ru/www/boosty.jpg" width="108" alt="Поддержать проект на Boosty"/>
<br>
<sup>
Поддержать проект
</sup>
</a>
</td>
<td>
ReActor это расширение для Stable Diffusion WebUI, которое позволяет делать простую и точную замену лиц на изображениях. Сделано на основе <a href="https://github.com/Gourieff/ReActor-UI" target="_blank">ReActor-UI</a>.
</td>
<td width="144px">
<a href="https://paypal.me/artgourieff" target="_blank">
<img src="https://www.paypalobjects.com/digitalassets/c/website/logo/full-text/pp_fc_hl.svg" width="108" alt="Поддержать проект через PayPal"/>
<br>
<sup>
Помочь проекту
</sup>
</a>
</td>
</tr>
</table>
<img src="https://github.com/Gourieff/Assets/raw/main/sd-webui-reactor/demo_crop.jpg?raw=true" alt="example"/>
<a name="latestupdate">
## Что нового в последнем обновлении
### 0.5.1 <sub><sup>BETA2</sup></sub>
### 0.5.1
- Теперь можно сохранять модели лиц в качестве файлов "safetensors" (находятся в `<sd-web-ui-folder>\models\reactor\faces`) и загружать их с ReActor, храня супер легкие модели лиц, которые вы чаще всего используете;
- Новые опция "Face Mask Correction" - если вы сталкиваетесь с пикселизацией вокруг контуров лица, эта опция будет полезной;

View File

@ -19,21 +19,21 @@ BASE_PATH = os.path.dirname(os.path.realpath(__file__))
req_file = os.path.join(BASE_PATH, "requirements.txt")
models_dir_old = os.path.join(models_path, "roop")
models_dir = os.path.join(models_path, "insightface")
# Check the deprecated 'roop' folder
if os.path.exists(models_dir_old):
if not os.listdir(models_dir_old) and (not os.listdir(models_dir) or not os.path.exists(models_dir)):
os.rename(models_dir_old, models_dir)
else:
import shutil
for file in os.listdir(models_dir_old):
shutil.move(os.path.join(models_dir_old, file), os.path.join(models_dir, file))
try:
os.rmdir(models_dir_old)
except Exception as e:
print(f"OSError: {e}")
# DEPRECATED:
# models_dir_old = os.path.join(models_path, "roop")
# if os.path.exists(models_dir_old):
# if not os.listdir(models_dir_old) and (not os.listdir(models_dir) or not os.path.exists(models_dir)):
# os.rename(models_dir_old, models_dir)
# else:
# import shutil
# for file in os.listdir(models_dir_old):
# shutil.move(os.path.join(models_dir_old, file), os.path.join(models_dir, file))
# try:
# os.rmdir(models_dir_old)
# except Exception as e:
# print(f"OSError: {e}")
model_url = "https://github.com/facefusion/facefusion-assets/releases/download/models/inswapper_128.onnx"
model_name = os.path.basename(model_url)

View File

@ -1,5 +1,5 @@
app_title = "ReActor"
version_flag = "v0.5.1-b4"
version_flag = "v0.5.1"
from scripts.reactor_logger import logger, get_Run, set_Run