Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GabriellaMS opened this issue Mar 12, 2025 · 0 comments
Open

Comments

@GabriellaMS
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant