deepfacelab中文网

 找回密码
 立即注册(仅限QQ邮箱)
查看: 308|回复: 3

img.shape[1] AttributeError: 'NoneType' object has no attribute 'shape'

[复制链接]

22

主题

119

帖子

919

积分

高级丹师

Rank: 5Rank: 5

积分
919

万事如意节日勋章开心娱乐节日勋章节日欢乐之星勋章

 楼主| 发表于 2025-4-4 09:20:52 | 显示全部楼层 |阅读模式
星级打分
  • 1
  • 2
  • 3
  • 4
  • 5
平均分:NAN  参与人数:0  我的评分:未评
mve筛选过程中出现以下问题 : img.shape[1] AttributeError: 'NoneType' object has no attribute 'shape',

Console output:

W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found 2025-04-04 09:16:23.267146: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.

WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:517: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.

WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:245: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead. WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:174: The name tf.get_default_session is deprecated. Please use tf.compat.v1.get_default_session instead.

WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:181: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead. WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:186: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead. 2025-04-04 09:16:24.725235: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

2025-04-04 09:16:24.727510: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll

2025-04-04 09:16:24.743384: I

tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: name: NVIDIA GeForce RTX 4060 Ti major: 8 minor: 9 memoryClockRate(GHz): 2.655 pciBusID: 0000:01:00.0 2025-04-04 09:16:24.744025: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found 2025-04-04 09:16:24.744324: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cublas64_100.dll'; dlerror: cublas64_100.dll not found 2025-04-04 09:16:24.744606: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cufft64_100.dll'; dlerror: cufft64_100.dll not found 2025-04-04 09:16:24.744892: W tensorflow/stream_executor/p

latform/default/dso_loader.cc:55] Could not load dynamic library 'curand64_100.dll'; dlerror: curand64_100.dll not found 2025-04-04 09:16:24.745288: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusolver64_100.dll'; dlerror: cusolver64_100.dll not found 2025-04-04 09:16:24.745557: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusparse64_100.dll'; dlerror: cusparse64_100.dll not found 2025-04-04 09:16:24.745835: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudnn64_7.dll'; dlerror: cudnn64_7.dll not found 2025-04-04 09:16:24.745903: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1662] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. Skippi

ng registering GPU devices...

2025-04-04 09:16:24.800747: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strengt

h 1 edge matrix: 2025-04-04 09:16:24.800841: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186] 0 2025-04-04 09:16:24.800883: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0: N WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:190: The name tf.global_variables is deprecated. Please use tf.compat.v1.global_variables instead. WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:199: The name tf.is_variable_initialized is deprecated. Please use tf.compat.v1.is_variable_initialized instead.

WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:206: The name tf.variables_initializer is deprecated. Please use tf.compat.v1.variables_initializer instead.

WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:1834: The name tf.nn.fused_batch_norm is deprecated. Please use tf.compat.v1.nn.fused_batch_norm instead.

WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:133: The name tf.placeholder_with_default is deprecated. Please use tf.compat.v1.placeholder_with_default instead.

WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:3976: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead.

WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:3980: The name tf.nn.avg_pool is deprecated. Please use tf.nn.avg_pool2d instead.

WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:4138: The name tf.random_uniform is deprecated. Please use tf.random.uniform instead.

WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\optimizers.py:790: The name tf.train.Optimizer is deprecated. Please use tf.compat.v1.train.Optimizer instead.

WARNING:tensorflow:From D:\MachineVideoEditor\resources\external\conda\win64\envs\mve-core\lib\site-packages\keras\backend\tensorflow_backend.py:3295: The name tf.log is deprecated. Please use tf.math.log instead.

%Loading

Calculating...: 0%| | 0/52350 [00:00<?, ?it/s]

Traceback (most recent call last): File "D:\MachineVideoEditor\resources\external\python\scripts\sort\face-sort.py", line 319, in <module>

sorteld_list = sort_face(model, input_folder) File "D:\MachineVideoEditor\resources\external\python\scripts\sort\face-sort.py", line 256, in sort_face

for img in tqdm.tqdm(image_list, desc="Calculating...", file=sys.stdout)]) File "D:\MachineVideoEditor\resources\external\python\scripts\sort\face-sort.py", line 256, in <listcomp>

for img in tqdm.tqdm(image_list, desc="Calculating...", file=sys.stdout)]) File "D:\MachineVideoEditor\resources\external\python\scripts\sort\face-sort.py", line 243, in load_image

crop_image = crop_face_by_landmarks(image_landmarks, img) File "D:\MachineVideoEditor\resources\external\python\scripts\sort\face-sort.py", line 144, in crop_face_by_landmarks

frameWidth = img.shape[1] AttributeError: 'NoneType' object has no attribute 'shape'

Calculating...: 0%| | 0/52350 [00:00<?, ?it/s]

Process finished









回复

使用道具 举报

14

主题

3385

帖子

1万

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
18328

真我风采勋章万事如意节日勋章

发表于 2025-4-5 01:00:41 | 显示全部楼层
本帖最后由 wtxx8888 于 2025-4-5 01:03 编辑

你的4060,加载CUDA驱动出错。
系统日志显示,无法加载CUDA 相关的,动态链接库(DLL 文件)。
以下文件,全部无法载入:
cudart64_100.dll
cublas64_100.dll
cufft64_100.dll
curand64_100.dll
cusolver64_100.dll
cusparse64_100.dll
cudnn64_7.dll。

这导致 TensorFlow ,无法利用 NVIDIA GeForce RTX 4060 Ti GPU 进行计算。
怎么造成的,那就是你的问题了。
回复 支持 1 反对 0

使用道具 举报

22

主题

119

帖子

919

积分

高级丹师

Rank: 5Rank: 5

积分
919

万事如意节日勋章开心娱乐节日勋章节日欢乐之星勋章

 楼主| 发表于 2025-4-4 09:21:55 | 显示全部楼层
大神们帮帮忙啊
回复 支持 反对

使用道具 举报

22

主题

119

帖子

919

积分

高级丹师

Rank: 5Rank: 5

积分
919

万事如意节日勋章开心娱乐节日勋章节日欢乐之星勋章

 楼主| 发表于 2025-4-5 02:54:28 | 显示全部楼层
wtxx8888 发表于 2025-4-5 01:00
你的4060,加载CUDA驱动出错。
系统日志显示,无法加载CUDA 相关的,动态链接库(DLL 文件)。
以下文件, ...

感谢回复,,我更新一下cuda
回复 支持 反对

使用道具 举报

QQ|Archiver|手机版|deepfacelab中文网 |网站地图

GMT+8, 2025-5-17 20:58 , Processed in 0.108163 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表