Deep-Live-Cam icon indicating copy to clipboard operation
Deep-Live-Cam copied to clipboard

Error:assert input_size is not None or self.input_size is not None

Open GabriellaMS opened this issue 9 months ago • 0 comments

python run.py -s F:\Vedio\cartoonModels\model.png -t F:\Vedio\test\input.mp4 -o F:\Vedio\test\ --execution-provider cuda --frame-processor face_enhancer --keep-frames

Backend tkagg is interactive backend. Turning interactive mode on. Traceback (most recent call last): File "f:\Tools\Conda\envs\dlc\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "f:\Tools\Conda\envs\dlc\lib\runpy.py", line 86, in run_code exec(code, run_globals) File "c:\Users\sgAT.vscode\extensions\ms-python.debugpy-2025.0.1-win32-x64\bundled\libs\debugpy_main.py", line 71, in cli.main() File "c:\Users\sgAT.vscode\extensions\ms-python.debugpy-2025.0.1-win32-x64\bundled\libs\debugpy/..\debugpy\server\cli.py", line 501, in main run() File "c:\Users\sgAT.vscode\extensions\ms-python.debugpy-2025.0.1-win32-x64\bundled\libs\debugpy/..\debugpy\server\cli.py", line 351, in run_file runpy.run_path(target, run_name="main") File "c:\Users\sgAT.vscode\extensions\ms-python.debugpy-2025.0.1-win32-x64\bundled\libs\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 310, in run_path return _run_module_code(code, init_globals, run_name, pkg_name=pkg_name, script_name=fname) File "c:\Users\sgAT.vscode\extensions\ms-python.debugpy-2025.0.1-win32-x64\bundled\libs\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 127, in _run_module_code _run_code(code, mod_globals, init_globals, mod_name, mod_spec, pkg_name, script_name) File "c:\Users\sgAT.vscode\extensions\ms-python.debugpy-2025.0.1-win32-x64\bundled\libs\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 118, in _run_code exec(code, run_globals) File "F:\DLC-test\run.py", line 9, in core.run() File "F:\DLC-test\liveCam\modules\core.py", line 250, in run start() File "F:\DLC-test\liveCam\modules\core.py", line 208, in start frame_processor.process_video(modules.globals.source_path, temp_frame_paths) File "F:\DLC-test\liveCam\modules\processors\frame\face_enhancer.py", line 98, in process_video modules.processors.frame.core.process_video(None, temp_frame_paths, process_frames) File "F:\DLC-test\liveCam\modules\processors\frame\core.py", line 73, in process_video multi_process_frame(source_path, frame_paths, process_frames, progress) File "F:\DLC-test\liveCam\modules\processors\frame\core.py", line 65, in multi_process_frame future.result() File "f:\Tools\Conda\envs\dlc\lib\concurrent\futures_base.py", line 458, in result return self.__get_result() File "f:\Tools\Conda\envs\dlc\lib\concurrent\futures_base.py", line 403, in __get_result raise self._exception File "f:\Tools\Conda\envs\dlc\lib\concurrent\futures\thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "F:\DLC-test\liveCam\modules\processors\frame\face_enhancer.py", line 85, in process_frames result = process_frame(None, temp_frame) File "F:\DLC-test\liveCam\modules\processors\frame\face_enhancer.py", line 74, in process_frame target_face = get_one_face(temp_frame) File "F:\DLC-test\liveCam\modules\face_analyser.py", line 33, in get_one_face face = get_face_analyser().get(frame) File "f:\Tools\Conda\envs\dlc\lib\site-packages\insightface\app\face_analysis.py", line 59, in get bboxes, kpss = self.det_model.detect(img, File "f:\Tools\Conda\envs\dlc\lib\site-packages\insightface\model_zoo\retinaface.py", line 208, in detect assert input_size is not None or self.input_size is not None AssertionError

GabriellaMS avatar Mar 12 '25 08:03 GabriellaMS