diff --git a/01A.构建运行环境(默认源).bat b/01A.构建运行环境(默认源).bat index d30d583..91caddb 100644 --- a/01A.构建运行环境(默认源).bat +++ b/01A.构建运行环境(默认源).bat @@ -37,4 +37,6 @@ echo yes|python -m pip install nvidia-cudnn-cu12 echo yes|pip install tensorrt_cu12_libs==10.6.0 tensorrt_cu12_bindings==10.6.0 tensorrt==10.6.0 --extra-index-url https://pypi.nvidia.com call python -m pip install -r requirements.txt --no-warn-script-location + +call python ezvtb_rt_interface.py pause \ No newline at end of file diff --git a/02A.启动器.bat b/02A.启动器.bat index dded99e..aa31f5e 100644 --- a/02A.启动器.bat +++ b/02A.启动器.bat @@ -6,4 +6,4 @@ call conda env list call conda activate ezvtb_rt_venv call conda env list -python launcher.py \ No newline at end of file +pythonw launcher.py \ No newline at end of file diff --git a/02B.启动器(调试输出).bat b/02B.启动器(调试输出).bat index 13da467..dded99e 100644 --- a/02B.启动器(调试输出).bat +++ b/02B.启动器(调试输出).bat @@ -1,3 +1,9 @@ @echo off -bin\python.exe launcher.py -pause \ No newline at end of file +cd /D "%~dp0" +IF EXIST %~dp0envs\miniconda3\Scripts SET PATH=%~dp0envs\miniconda3\Scripts;%PATH% +call activate +call conda env list +call conda activate ezvtb_rt_venv +call conda env list + +python launcher.py \ No newline at end of file diff --git a/ezvtb_rt_interface.py b/ezvtb_rt_interface.py index 279955f..51890cc 100644 --- a/ezvtb_rt_interface.py +++ b/ezvtb_rt_interface.py @@ -137,4 +137,10 @@ def get_core( core = CoreORT(tha_model_dir, rife_path = rife_model_path if len(rife_model_path) > 0 else None, sr_path = sr_model_path if len(sr_model_path) > 0 else None, cacher=cacher, device_id=device_id) return core - \ No newline at end of file + +if __name__ == '__main__': + from ezvtb_rt.trt_utils import check_build_all_models + try: + check_build_all_models() + except: + pass diff --git a/ezvtuber-rt b/ezvtuber-rt index c6c9404..0af62f9 160000 --- a/ezvtuber-rt +++ b/ezvtuber-rt @@ -1 +1 @@ -Subproject commit c6c940442a9785c2044d8dae1ffc6e010e698b3e +Subproject commit 0af62f92c49f9fc39a406a700e3494010135c42a