|
发表于 2023-10-2 13:03:27
|
显示全部楼层
为啥我的一次也用不了……
********** Running on CUDA **********
Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}}
find model: insightface\models\buffalo_l\1k3d68.onnx landmark_3d_68 ['None', 3, 192, 192] 0.0 1.0
Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}}
find model: insightface\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0
Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}}
find model: insightface\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0
Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}}
find model: insightface\models\buffalo_l\genderage.onnx genderage ['None', 3, 96, 96] 0.0 1.0
Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}}
find model: insightface\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5
set det-size: (640, 640)
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
Analysing face data: 0%| | 0/1 [00:00<?, ?it/s][ WARN:0@84.998] global loadsave.cpp:248 cv::findDecoder imread_('E:\SwapMukham瑙e帇鍗崇敤N鍗℃暣鍚堜腑鏂囩増230925\SwapMukham瑙e帇鍗崇敤N鍗℃暣鍚堜腑鏂囩増230925\SwapMukham\Result.png'): can't open/read file: check file path/integrity
Analysing face data: 0%| | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\gradio\queueing.py", line 388, in call_prediction
output = await route_utils.call_process_api(
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\gradio\route_utils.py", line 219, in call_process_api
output = await app.get_blocks().process_api(
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\gradio\blocks.py", line 1437, in process_api
result = await self.call_function(
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\gradio\blocks.py", line 1123, in call_function
prediction = await utils.async_iteration(iterator)
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\gradio\utils.py", line 512, in async_iteration
return await iterator.__anext__()
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\gradio\utils.py", line 505, in __anext__
return await anyio.to_thread.run_sync(
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
result = context.run(func, *args)
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\gradio\utils.py", line 488, in run_sync_iterator_async
return next(iterator)
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\gradio\utils.py", line 638, in gen_wrapper
yield from f(*args, **kwargs)
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\app.py", line 356, in process
for info_update in swap_process([output_file]):
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\app.py", line 247, in swap_process
analysed_targets, analysed_sources, whole_frame_list, num_faces_per_frame = get_analysed_data(
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\face_analyser.py", line 105, in get_analysed_data
analysed_faces = analyse_face(frame, face_analyser, return_single_face=False, detect_condition=detect_condition, scale=scale)
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\face_analyser.py", line 61, in analyse_face
faces = model.get(image)
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\insightface\app\face_analysis.py", line 59, in get
bboxes, kpss = self.det_model.detect(img,
File "E:\SwapMukham解压即用N卡整合中文版230925\SwapMukham解压即用N卡整合中文版230925\SwapMukham\python310\lib\site-packages\insightface\model_zoo\retinaface.py", line 211, in detect
im_ratio = float(img.shape[0]) / img.shape[1]
AttributeError: 'NoneType' object has no attribute 'shape'
|
|