• 小金刚

    第三章开门大吉,书上的代码运行出错,python3.6环境:搜了很多没有正确方法解决:TypeError: ‘RGB’ has type str, but expected one of: bytes

    INFO:root:S**ing results to pic/
    INFO:root:Determining list of input files and labels from pic/validation.
    INFO:root:Finished finding files in 0 of 200 classes.
    INFO:root:Found 1200 JPEG files across 6 labels inside pic/validation.
    INFO:root:Launching 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

    小金刚发表于 2018/9/29 20:52:32
    • yhlz49

      后面有解决方法

      yhlz49发表于 2018/9/30 8:44:54
  • 董少捷

    第三章出现这样的问题,大家有出现过吗?怎么解决的呢,我在GOOLE的deep learning服务器上运行的

    董少捷发表于 2018/9/27 12:00:32
    • 董少捷

      在电脑上可以训练,放到服务器上就不行了

      董少捷发表于 2018/9/27 12:33:29
    • yhlz49

      @董少捷 没在服务器上试过,你在电脑上试试?

      yhlz49发表于 2018/9/28 8:53:41
    • 半个篮球

      看一下报错内容嘛,计算资源耗尽,cpu用完了,我看你这计算量挺大,可以试试用多块gpu来做,目前国内的很多公司也提供租赁资源。

      半个篮球发表于 2018/10/19 12:31:04
  • wwjun1056

    在第5章,做5.23节(P108,python train.py …);5.2.4导出模型并预测单张图片(P108,下面代码:Python …).总是出现object_detection模块没找到,或没有匹配的模块等错误。请问什么原因及如何解决?谢谢!

    wwjun1056发表于 2018/9/27 9:19:25
  • dengdeng008

    第五章 5.2.1 安装完成测试 执行 python objectdetection/builders/modelbuilder_test.py 出现错误
    TypeError: __new
    () got an unexpected keyword argument ‘serialized_options’ 该怎么解决呀?头疼了好久

    dengdeng008发表于 2018/9/26 20:53:07
  • angang

    请问随书附带的data文件夹在哪里

    angang发表于 2018/9/25 16:29:41
  • 1
  • ...
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • ...
  • 26