• AI4U

    很多数据集根本没提供啊

    AI4U发表于 2018/9/20 19:50:42
  • rulo

    讲的不清晰,用法没有说明原因,没有文献引用,看的有头无尾

    rulo发表于 2018/9/20 12:11:59
  • yhlz49

    python train_image_classifier.py —train_dir=satellite/train_dir —dataset_name=satellite —dataset_split_name=train —dataset_dir=satellite/data model_name=inception_v3 —checkpoint_path=satellite/pretrained/inception_v3.ckpt —checkpoint_exclude_scopes=InceptionV3/Logits,InceptionV3/AuxLogits —trainable_scopes=InceptionV3/Logits,InceptionV3/AuxLogits —max_number_of_steps=100000 —batch_size=32 —learning_rate=0.001 —learning_rate_decay_type=fixed —s**e_interval_secs=300 —s**e_summaries_secs=2 —log_every_n_steps=10 —optimizer=rmsprop —weight_decay=0.00004
    哪里有问题呢?这是第三章的,按书本来的

    yhlz49发表于 2018/9/20 9:11:12
    • acaia

      satellite.py的'image/format'没改吧

      acaia发表于 2018/10/15 16:35:37
  • 蓝色天空王贝

    请问我在运行第五章的train.py文件时出现如下错误该怎么解决,谢谢!!!TypeError: Cannot convert a list containing a tensor of dtype <dtype: 'int32'> to <dtype: 'float32'> (Tensor is: <tf.Tensor 'Preprocessor/stack_1:0' shape=(1, 3) dtype=int32>)

    蓝色天空王贝发表于 2018/9/18 13:00:45
    • jony_he

      请问你解决了吗?我也遇到了同样的问题

      jony_he发表于 2018/11/7 15:27:14
    • 与你同行

      我也是,一直没有解决。

      与你同行发表于 2019/4/9 23:01:26
  • 半个篮球

    第三课中的一段代码报错了,tfrecord.py中的

    Read the image file.

    with open(filename, 'r') as f:
        image_data=f.read()
    

    报错为:
    UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xff in position 0: illegal multibyte sequence
    一直没找到解决办法,是图片的问题还是编码格式的问题?望帮我解答。

    半个篮球发表于 2018/9/15 19:37:56
    • 小数

      代码是python2,你用的python3跑的吧。需要转换类型

      小数发表于 2018/9/16 13:00:38
    • 半个篮球

      @小数 具体怎么做呢,一头雾水

      半个篮球发表于 2018/9/17 12:04:03
    • yhlz49

      我的问题和你一样,解决了吗?

      yhlz49发表于 2018/9/22 8:49:01
    • yhlz49

      @半个篮球
      我的问题和你一样,解决了吗?

      yhlz49发表于 2018/9/23 10:07:26
    • 半个篮球

      @yhlz49 解决了,tfrecord.py改两处
      1:
      def _bytes_feature(value):
      """Wrapper for inserting bytes features into Example proto."""
      value = tf.compat.as_bytes(value)
      return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value]))
      2:

      # Read the image file.
      image_data=tf.gfile.FastGFile(filename,'rb').read()

      # Convert any PNG to JPEG's for consistency.
      if _is_png(filename):
      logging.info('Converting PNG to JPEG for %s' % filename)
      image_data = coder.png_to_jpeg(image_data)

      半个篮球发表于 2018/9/23 14:53:55
    • yhlz49

      @半个篮球 已经成功了非常感谢,希望以后可以经常交流。再次感谢!

      yhlz49发表于 2018/9/24 9:12:47
    • yhlz49

      @半个篮球 KeyError: 'image/format'你有没有碰到这个问题,这是训练train_image_classifier.py文件时出现的错误,我是按照书上来的。

      yhlz49发表于 2018/9/24 9:39:50
    • yhlz49

      @yhlz49 已解决。

      yhlz49发表于 2018/9/29 8:45:56
    • chengstar

      with open(filename, 'rb') as f: 就行了

      chengstar发表于 2018/11/7 13:38:10
  • 1
  • ...
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • ...
  • 26