FIX: API base64 decode error if select_source != 0
Issue #266 +VersionUP (0.6.1 beta1)
This commit is contained in:
parent
4b1cfc70e8
commit
472c75ee88
@ -2,7 +2,7 @@
|
||||
|
||||
<img src="https://github.com/Gourieff/Assets/raw/main/sd-webui-reactor/ReActor_logo_NEW_EN.png?raw=true" alt="logo" width="180px"/>
|
||||
|
||||

|
||||

|
||||
|
||||
<a href="https://boosty.to/artgourieff" target="_blank">
|
||||
<img src="https://lovemet.ru/www/boosty.jpg" width="108" alt="Support Me on Boosty"/>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
<img src="https://github.com/Gourieff/Assets/raw/main/sd-webui-reactor/ReActor_logo_NEW_RU.png?raw=true" alt="logo" width="180px"/>
|
||||
|
||||

|
||||

|
||||
|
||||
<a href="https://boosty.to/artgourieff" target="_blank">
|
||||
<img src="https://lovemet.ru/www/boosty.jpg" width="108" alt="Поддержать проект на Boosty"/>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
'''
|
||||
Thanks SpenserCai for the original version of the roop api script
|
||||
-----------------------------------
|
||||
--- ReActor External API v1.0.1 ---
|
||||
--- ReActor External API v1.0.2 ---
|
||||
-----------------------------------
|
||||
'''
|
||||
import os, glob
|
||||
@ -77,7 +77,7 @@ def reactor_api(_: gr.Blocks, app: FastAPI):
|
||||
face_model: str = Body("None",title="Filename of the face model (from 'models/reactor/faces'), e.g. elena.safetensors"),
|
||||
source_folder: str = Body("",title="The path to the folder containing source faces images")
|
||||
):
|
||||
s_image = api.decode_base64_to_image(source_image)
|
||||
s_image = api.decode_base64_to_image(source_image) if select_source == 0 else None
|
||||
t_image = api.decode_base64_to_image(target_image)
|
||||
sf_index = source_faces_index
|
||||
f_index = face_index
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
app_title = "ReActor"
|
||||
version_flag = "v0.6.0"
|
||||
version_flag = "v0.6.1-b1"
|
||||
|
||||
from scripts.reactor_logger import logger, get_Run, set_Run
|
||||
from scripts.reactor_globals import DEVICE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user