第三章开门大吉,书上的代码运行出错,python3.6环境:搜了很多没有正确方法解决:TypeError: ‘RGB’ has type str, but expected one of: bytes
INFOS**ing results to pic/ INFODetermining list of input files and labels from pic/validation. INFOFinished finding files in 0 of 200 classes. INFOFound 1200 JPEG files across 6 labels inside pic/validation. INFOLaunching 2 threads for spacings: [[0, 600], [600, 1200]] 2018-09-29 20:39:16.840877: I Exception in thread Thread-2: Traceback (most recent call last):
File “E:\Python_files\My_files\Deep-Learning-21-Examples-master\chapter_3\data_prepare\src\tfrecord.py”, line 224, in _process_image_files_batch text, height, width) File “E:\Python_files\My_files\Deep-Learning-21-Examples-master\chapter_3\data_prepare\src\tfrecord.py”, line 101, in _convert_to_example ‘image/colorspace’: _bytes_feature(colorspace), File “E:\Python_files\My_files\Deep-Learning-21-Examples-master\chapter_3\data_prepare\src\tfrecord.py”, line 78, in _bytes_feature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) TypeError: ‘RGB’ has type str, but expected one of: bytes
第三章开门大吉,书上的代码运行出错,python3.6环境:搜了很多没有正确方法解决:TypeError: ‘RGB’ has type str, but expected one of: bytes
INFO
S**ing results to pic/
Determining list of input files and labels from pic/validation.
Finished finding files in 0 of 200 classes.
Found 1200 JPEG files across 6 labels inside pic/validation.
Launching 2 threads for spacings: [[0, 600], [600, 1200]]
INFO
INFO
INFO
INFO
2018-09-29 20:39:16.840877: I
Exception in thread Thread-2:
Traceback (most recent call last):
File “E:\Python_files\My_files\Deep-Learning-21-Examples-master\chapter_3\data_prepare\src\tfrecord.py”, line 224, in _process_image_files_batch
text, height, width)
File “E:\Python_files\My_files\Deep-Learning-21-Examples-master\chapter_3\data_prepare\src\tfrecord.py”, line 101, in _convert_to_example
‘image/colorspace’: _bytes_feature(colorspace),
File “E:\Python_files\My_files\Deep-Learning-21-Examples-master\chapter_3\data_prepare\src\tfrecord.py”, line 78, in _bytes_feature
return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value]))
TypeError: ‘RGB’ has type str, but expected one of: bytes
第三章出现这样的问题,大家有出现过吗?怎么解决的呢,我在GOOLE的deep learning服务器上运行的
在第5章,做5.23节(P108,python train.py …);5.2.4导出模型并预测单张图片(P108,下面代码:Python …).总是出现object_detection模块没找到,或没有匹配的模块等错误。请问什么原因及如何解决?谢谢!
第五章 5.2.1 安装完成测试 执行 python objectdetection/builders/modelbuilder_test.py 出现错误
TypeError: __new() got an unexpected keyword argument ‘serialized_options’ 该怎么解决呀?头疼了好久
请问随书附带的data文件夹在哪里