eric-xw / kinetics-i3d-pytorch

MIT License
34 stars 5 forks source link

Libraries versions specification is required #2

Open sheetalojha opened 4 years ago

sheetalojha commented 4 years ago

Hi there I found this repository helpful but I am facing some issues while running the i3d_tf_to_pt.py. Here are the logs python gives me:

python i3d_tf_to_pt.py --rgb
Traceback (most recent call last):
  File "i3d_tf_to_pt.py", line 9, in <module>
    from src.i3dtf import InceptionI3d
  File "/home/sheetal/kinetics_i3d_pytorch/src/i3dtf.py", line 28, in <module>
    import sonnet as snt
  File "/home/sheetal/anaconda3/envs/tf/lib/python3.7/site-packages/sonnet/__init__.py", line 64, in <module>
    _ensure_dependency_available_at_version('tensorflow_probability', '0.4.0')
  File "/home/sheetal/anaconda3/envs/tf/lib/python3.7/site-packages/sonnet/__init__.py", line 47, in _ensure_dependency_available_at_version
    pkg = importlib.import_module(package_name)
  File "/home/sheetal/anaconda3/envs/tf/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/sheetal/anaconda3/envs/tf/lib/python3.7/site-packages/tensorflow_probability/__init__.py", line 78, in <module>
    from tensorflow_probability.python import *  # pylint: disable=wildcard-import
  File "/home/sheetal/anaconda3/envs/tf/lib/python3.7/site-packages/tensorflow_probability/python/__init__.py", line 21, in <module>
    from tensorflow_probability.python import bijectors
  File "/home/sheetal/anaconda3/envs/tf/lib/python3.7/site-packages/tensorflow_probability/python/bijectors/__init__.py", line 46, in <module>
    from tensorflow_probability.python.bijectors.matveclu import MatvecLU
  File "/home/sheetal/anaconda3/envs/tf/lib/python3.7/site-packages/tensorflow_probability/python/bijectors/matveclu.py", line 24, in <module>
    from tensorflow_probability.python.math.linalg import lu_reconstruct
  File "/home/sheetal/anaconda3/envs/tf/lib/python3.7/site-packages/tensorflow_probability/python/math/__init__.py", line 22, in <module>
    from tensorflow_probability.python.math.diag_jacobian import diag_jacobian
  File "/home/sheetal/anaconda3/envs/tf/lib/python3.7/site-packages/tensorflow_probability/python/math/diag_jacobian.py", line 24, in <module>
    tfe = tf.contrib.eager
AttributeError: module 'tensorflow' has no attribute 'contrib'

I think the issue is because of different versions of different libraries. It would be great if you can specify versions of the dependencies and help me fix this issue.