automl icon indicating copy to clipboard operation
automl copied to clipboard

what the "tensorflow.google" and "tensorflow_addons"

Open shen865069799 opened this issue 6 years ago • 4 comments

when i run python main.py , error below: (1)import tensorflow.google as tf ModuleNotFoundError: No module named tensorflow.google' (2)import tensorflow_addons as tfa ModuleNotFoundError: No module named 'tensorflow_addons' (3)import tf_slim as slim ModuleNotFoundError: No module named 'tf_slim'

shen865069799 avatar Mar 19 '20 06:03 shen865069799

I can't English well.... but I will answer the question. (1) tensorflow.google -> tensorflow (2) pip install tensorflow-addons (tensorflow >= 2.x) (3)

  1. pip install tf_slim
  2. Delete the files and dir from the tf_slim path.(left pycache directory)
  3. Download - https://github.com/google-research/tf-slim/tree/master/tf_slim
  4. Paste in tf_slim path

WonTaeYeon avatar Mar 19 '20 06:03 WonTaeYeon

I can't English well.... but I will answer the question. (1) tensorflow.google -> tensorflow (2) pip install tensorflow-addons (tensorflow >= 2.x) (3)

  1. Delete the files and dir from the tf_slim path.(left pycache directory)
  2. Download - https://github.com/google-research/tf-slim/tree/master/tf_slim
  3. Paste in tf_slim path

thx

shen865069799 avatar Mar 19 '20 06:03 shen865069799

I have removed the dependence to slim and fix the tensorflow.google. Now you only need to pip install tensorflow_addons. (not need to copy tf_slim)

mingxingtan avatar Mar 19 '20 21:03 mingxingtan

I have removed the dependence to slim and fix the tensorflow.google. Now you only need to pip install tensorflow_addons. (not need to copy tf_slim)

Thank you for your prompt reply

shen865069799 avatar Mar 20 '20 01:03 shen865069799