一直报下面的错误怎么解决
`整理种类文件 [====================] 580/580 [100%] in 0.3s (2026.69/s)
整理训练数据 [====================] 2/2 [100%] in 0.9s (2.16/s)
2020-11-12 09:45:26.924666: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘cudart64_100.dll’; dlerror: cudart64_100.dll not found
2020-11-12 09:45:26.924816: 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 E:\Mx_yolov3\yolov2\yolo\backend\utils\fit.py:8: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.
WARNING:tensorflow:From E:\Mx_yolov3\yolov2\yolo\backend\utils\fit.py:8: The name tf.GPUOptions is deprecated. Please use tf.compat.v1.GPUOptions instead.
WARNING:tensorflow:From E:\Mx_yolov3\yolov2\yolo\backend\utils\fit.py:9: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.
2020-11-12 09:45:30.631692: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2020-11-12 09:45:30.636867: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2020-11-12 09:45:31.505998: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties:
name: GeForce GTX 1050 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.62
pciBusID: 0000:01:00.0
2020-11-12 09:45:31.512062: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘cudart64_100.dll’; dlerror: cudart64_100.dll not found
2020-11-12 09:45:31.518168: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘cublas64_100.dll’; dlerror: cublas64_100.dll not found
2020-11-12 09:45:31.524471: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘cufft64_100.dll’; dlerror: cufft64_100.dll not found
2020-11-12 09:45:31.530567: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘curand64_100.dll’; dlerror: curand64_100.dll not found
2020-11-12 09:45:31.537625: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘cusolver64_100.dll’; dlerror: cusolver64_100.dll not found
2020-11-12 09:45:31.543852: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘cusparse64_100.dll’; dlerror: cusparse64_100.dll not found
2020-11-12 09:45:31.549940: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘cudnn64_7.dll’; dlerror: cudnn64_7.dll not found
2020-11-12 09:45:31.550140: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1641] 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.
Skipping registering GPU devices…
2020-11-12 09:45:31.636239: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1159] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-11-12 09:45:31.636415: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1165] 0
2020-11-12 09:45:31.637325: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1178] 0: N
configs/configs.json
test is already exists. Weight file in directory will be overwritten
Weight file and Config file will be saved in “test”
[‘Un_Masks’, ‘Masks’]
WARNING:tensorflow:From C:\Users\chenw\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py:1630: calling BaseResourceVariable.init (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
Traceback (most recent call last):
File “yolov2/main.py”, line 84, in <module>
run(args.file)
File “yolov2/main.py”, line 51, in run
config[‘model’][‘no_object_scale’])
File “E:\Mx_yolov3\yolov2\yolo\frontend.py”, line 35, in create_yolo
yolo_network = create_yolo_network(architecture, input_size, n_classes, n_boxes)
File “E:\Mx_yolov3\yolov2\yolo\backend\network.py”, line 15, in create_yolo_network
feature_extractor = create_feature_extractor(architecture, input_size)
File “E:\Mx_yolov3\yolov2\yolo\backend\utils\feature.py”, line 27, in create_feature_extractor
feature_extractor = MobileNetFeature(input_size, weights)
File “E:\Mx_yolov3\yolov2\yolo\backend\utils\feature.py”, line 248, in init
backend=tf.keras.backend, layers=tf.keras.layers, models=tf.keras.models, utils=tf.keras.utils)
File “E:\Mx_yolov3\yolov2\yolo\backend\utils\mobilenet_sipeed\mobilenet.py”, line 296, in MobileNet
model.load_weights(“mobilenet_7_5_224_tf_no_top.h5”)
File “C:\Users\chenw\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\keras\engine\training.py”, line 182, in load_weights
return super(Model, self).load_weights(filepath, by_name)
File “C:\Users\chenw\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\keras\engine\network.py”, line 1373, in load_weights
saving.load_weights_from_hdf5_group(f, self.layers)
File “C:\Users\chenw\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\keras\saving\hdf5_format.py”, line 645, in load_weights_from_hdf5_group
original_keras_version = f.attrs[‘keras_version’].decode(‘utf8’)
AttributeError: ‘str’ object has no attribute ‘decode’
`