• wwq88

    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_decay_type=fixed \
    …: —s**e_interval_secs=300 \
    …: —s**e_summaries_secs=2 \
    …: —log_every_n_steps=10 \
    …: —optimizer=rmsprop \
    …: —weight_decay=0.0004 \
    …: —clone_on_cpu=True
    报错
    File “<ipython-input-17-df2bf9e99e8a>“, line 1
    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_decay_type=fixed —s**e_interval_secs=300 —s**e_summaries_secs=2 —log_every_n_steps=10 —optimizer=rmsprop —weight_decay=0.0004 —clone_on_cpu=True

    wwq88发表于 2018/8/6 15:01:44
  • longwuya

    请问作者,为什么我在用第三章的data_convert.py 代码时候,提示这个错误

    longwuya发表于 2018/8/2 10:36:35
    • 誓海明天

      我也出现这个问题

      誓海明天发表于 2018/8/22 15:07:39
    • 誓海明天

      解决了吗?

      誓海明天发表于 2018/8/22 15:10:02
    • 天天1367542668

      @誓海明天 我把src文件夹下的tfrecord.py文件的第339行改成以下的代码解决了,你试一下:
      shuffled_index = list(range(len(filenames)))
      random.seed(12345) random.shuffle(shuffled_index)

      天天1367542668发表于 2018/8/23 22:02:48
    • 誓海明天

      @天天1367542668 好了

      誓海明天发表于 2018/8/24 21:55:38
  • byl

    第二章,训练模型时好像没有训练就出现错误了,但建立了cifar10_train文件夹和里面相应文件,恳请老师帮忙解答一下,win7系统py3.5环境。![](http://download.broadview.com.cn/Original/1807d3edc89980840295)

    byl发表于 2018/7/31 11:55:58
  • wpan

    第三章,卫星数据与程序都准备好了,开始训练时,需要在命令行输入python train…后面要输入一大堆参数值,实在太多了,很容易出错,这个命令的文本有地方拷贝吗?

    wpan发表于 2018/7/29 20:24:05
    • wpan

      网络上搜索一下,有类似的,修改后,可以训练了,发上来方便后人:
      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 --clone_on_cpu=True

      如果使用GPU来训练,最后面的--clone_on_cpu=True 不要 特别要注意=后面不要留空格

      wpan发表于 2018/7/30 7:44:17
    • yhlz49

      @wpan 失败了

      yhlz49发表于 2018/9/20 9:09:06
  • wpan

    何老师,您好!
    第二章,运行将CIFAR-10数据集保存为图片形式时,出现异常,我大概理解是input.py程序中的语句 tf.strided_slice 出现问题,但不知道如何修改。错误提示如下:

    Traceback (most recent call last):
    File “cifar10_extract.py”, line 34, in <module>
    reshaped_image = inputs_origin(‘cifar10_data/cifar-10-batches-bin’)
    File “cifar10_extract.py”, line 23, in inputs_origin
    read_input = cifar10_input.read_cifar10(filename_queue)
    File “/home/pan/tfstudy/cifar10_input.py”, line 84, in read_cifar10
    tf.strided_slice(record_bytes, [0], [label_bytes]), tf.int32)
    AttributeError: ‘module’ object has no attribute ‘strided_slice’

    wpan发表于 2018/7/28 16:37:00
    • wpan

      自己解决了,是Tensorflow版本问题,更新Tensroflow后,运行程序后会提示一大堆问题,但保存了30张图像,分辨率不高

      wpan发表于 2018/7/29 15:50:21
  • 1
  • ...
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • ...
  • 26