第三章运行train_image_classifier的时候,提示说ValueError: You must supply the dataset directory with —dataset_dir,可是我明明按照书上的操作建立了satellite文件夹和其中的data文件夹,怎么会说没有提供数据集的路径呢?
第三章开门大吉,书上的代码运行出错,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
第三章运行train_image_classifier的时候,提示说ValueError: You must supply the dataset directory with —dataset_dir,可是我明明按照书上的操作建立了satellite文件夹和其中的data文件夹,怎么会说没有提供数据集的路径呢?
第五章中,安装了tensorflow object detection api 后,不是模型都有了吗,为啥下一节中在执行训练好的模型中,还要再下载预训练模型?
有疑问的可进群互相交流,群号:154114989
出现导入cv2错误,我用的windows server R2012 64位版本,网上查的方法都用过了,还是没解决,希望老师给点建议。Python3.6.5,错误提示为:dll load failed
第三章开门大吉,书上的代码运行出错,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