models icon indicating copy to clipboard operation
models copied to clipboard

has no attribute 'scale_sub_region'

Open lezasantaizi opened this issue 9 years ago • 7 comments

Traceback (most recent call last):
  File "infer.py", line 126, in <module>
    main()
  File "infer.py", line 122, in main
    infer()
  File "infer.py", line 89, in infer
    share_rnn_weights=args.share_rnn_weights)
  File "/paddle/code/models/deep_speech_2/model_utils/model.py", line 46, in __init__
    rnn_layer_size, use_gru, share_rnn_weights)
  File "/paddle/code/models/deep_speech_2/model_utils/model.py", line 307, in _create_network
    share_rnn_weights=share_rnn_weights)
  File "/paddle/code/models/deep_speech_2/model_utils/network.py", line 263, in deep_speech_v2_network
    index_range_datas=index_range_datas)
  File "/paddle/code/models/deep_speech_2/model_utils/network.py", line 165, in conv_group
    index_range_data=index_range_datas[0])
  File "/paddle/code/models/deep_speech_2/model_utils/network.py", line 43, in conv_bn_layer
    scale_sub_region = paddle.layer.scale_sub_region(
AttributeError: 'module' object has no attribute 'scale_sub_region'

lezasantaizi avatar Nov 14 '17 02:11 lezasantaizi

image

@pkuyym

lezasantaizi avatar Nov 14 '17 03:11 lezasantaizi

@lezasantaizi You need to upgrade PaddlePaddle to the latest version.

kuke avatar Nov 14 '17 03:11 kuke

已经更新到paddlepaddle (0.10.5),但是错误仍在 AttributeError: 'module' object has no attribute 'scale_sub_region'

lezasantaizi avatar Nov 14 '17 04:11 lezasantaizi

@kuke

lezasantaizi avatar Nov 14 '17 06:11 lezasantaizi

@lezasantaizi scale_sub_region刚加入PaddlePaddle的develop分支,在0.10.5中并没有包含。

kuke avatar Nov 14 '17 08:11 kuke

okay ,那这个develop分支什么时候上线呢?现在拉下来的代码一运行就挂掉了~ @kuke

lezasantaizi avatar Nov 14 '17 11:11 lezasantaizi

You are probably using the wrong git repo. Use this: https://github.com/PaddlePaddle/DeepSpeech instead of the model/deep_speech_2 repo

yangliu2 avatar Nov 28 '17 20:11 yangliu2