Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tensorflow-2.0alpha跑竞品模型分别报如下错误 #106

Open
gentelyang opened this issue Jun 11, 2019 · 2 comments
Open

tensorflow-2.0alpha跑竞品模型分别报如下错误 #106

gentelyang opened this issue Jun 11, 2019 · 2 comments

Comments

@gentelyang
Copy link
Contributor

gentelyang commented Jun 11, 2019

  • deeplabv3
Traceback (most recent call last):
  File "/ssd2/liyang/tensorflow/models/research/deeplab/train.py", line 22, in <module>
    from deeplab import common
  File "/ssd2/liyang/tensorflow/models/research/deeplab/common.py", line 25, in <module>
    flags = tf.app.flags
AttributeError: 'module' object has no attribute 'app'
  • RL模型
TF<1.3 support will be removed after 2018-03-15! Actually many examples already require TF>=1.3.
Traceback (most recent call last):
  File "./algorithm.py", line 5, in <module>
    from tensorpack.utils.globvars import globalns as param
  File "/usr/local/lib/python3.5/dist-packages/tensorpack/__init__.py", line 17, in <module>
    from tensorpack.models import *
  File "/usr/local/lib/python3.5/dist-packages/tensorpack/models/__init__.py", line 49, in <module>
    _global_import(module_name)
  File "/usr/local/lib/python3.5/dist-packages/tensorpack/models/__init__.py", line 30, in _global_import
    p = __import__(name, globals(), locals(), level=1)
  File "/usr/local/lib/python3.5/dist-packages/tensorpack/models/batch_norm.py", line 6, in <module>
    from tensorflow.contrib.framework import add_model_variable
ImportError: No module named 'tensorflow.contrib'
  • PaddingRNN
Traceback (most recent call last):
  File "train.py", line 255, in <module>
    main()
  File "train.py", line 91, in main
    rnn_type = args.rnn_type)
  File "/ssd2/liyang/benchmark/PaddingRNN/lstm_tf/ptb_lm_model.py", line 12, in ptb_lm_model
    x_place = tf.placeholder(tf.int32, [batch_size, num_steps])
AttributeError: 'module' object has no attribute 'placeholder'
  • Transformer模型
Traceback (most recent call last):
  File "/usr/local/bin/t2t-datagen", line 18, in <module>
    from tensor2tensor.bin import t2t_datagen
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/bin/t2t_datagen.py", line 39, in <module>
    from tensor2tensor import problems as problems_lib  # pylint: disable=unused-import
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/problems.py", line 22, in <module>
    from tensor2tensor.utils import registry
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/utils/registry.py", line 551, in <module>
    attacks = tf.contrib.framework.deprecated(None, "Use registry.attack")(attack)
AttributeError: 'module' object has no attribute 'contrib'
Traceback (most recent call last):
  File "/usr/local/bin/t2t-trainer", line 23, in <module>
    from tensor2tensor.bin import t2t_trainer
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/bin/t2t_trainer.py", line 24, in <module>
    from tensor2tensor import models  # pylint: disable=unused-import
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/models/__init__.py", line 25, in <module>
    from tensor2tensor.layers import modalities  # pylint: disable=g-import-not-at-top
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/layers/modalities.py", line 28, in <module>
    from tensor2tensor.layers import common_attention
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/layers/common_attention.py", line 31, in <module>
    from tensor2tensor.layers import area_attention
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/layers/area_attention.py", line 23, in <module>
    from tensor2tensor.layers import common_layers
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/layers/common_layers.py", line 30, in <module>
    import tensorflow_probability as tfp
  File "/usr/local/lib/python2.7/dist-packages/tensorflow_probability/__init__.py", line 78, in <module>
    from tensorflow_probability.python import *  # pylint: disable=wildcard-import
  File "/usr/local/lib/python2.7/dist-packages/tensorflow_probability/python/__init__.py", line 21, in <module>
    from tensorflow_probability.python import bijectors
  File "/usr/local/lib/python2.7/dist-packages/tensorflow_probability/python/bijectors/__init__.py", line 46, in <module>
    from tensorflow_probability.python.bijectors.matveclu import MatvecLU
  File "/usr/local/lib/python2.7/dist-packages/tensorflow_probability/python/bijectors/matveclu.py", line 24, in <module>
    from tensorflow_probability.python.math.linalg import lu_reconstruct
  File "/usr/local/lib/python2.7/dist-packages/tensorflow_probability/python/math/__init__.py", line 22, in <module>
    from tensorflow_probability.python.math.diag_jacobian import diag_jacobian
  File "/usr/local/lib/python2.7/dist-packages/tensorflow_probability/python/math/diag_jacobian.py", line 24, in <module>
    tfe = tf.contrib.eager
AttributeError: 'module' object has no attribute 'contrib'
  • CycleGAN模型
Traceback (most recent call last):
  File "main.py", line 3, in <module>
    from tensorflow.examples.tutorials.mnist import input_data
ImportError: No module named 'tensorflow.examples'
@Xreki
Copy link
Collaborator

Xreki commented Jun 13, 2019

不要贴图啊,都看不清楚

@gentelyang
Copy link
Contributor Author

嗯嗯改过来了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants