vietai / dab

Data Augmentation by Backtranslation (DAB) ヽ( •_-)ᕗ
GNU General Public License v3.0
65 stars 5 forks source link

tensorflow Version #4

Open duongkstn opened 4 years ago

duongkstn commented 4 years ago

Which exactly tensorflow and tensorflow-XXX (tensor2tensor, tensorboard,.... ) version is used to run properly ? I can not run because of conflicts, so please make it clear.

tranvohuy commented 4 years ago

For this colab https://colab.research.google.com/github/vietai/dab/blob/master/colab/Interactive_Back_Translation.ipynb, try

!pip install -U tensor2tensor==1.15.0
!pip install -U tensorflow==1.15.0 

instead of

!pip install -q -U tensor2tensor

like in the original colab note. Also try to run colab with Python 3 (not python 2) It worked for me.

NeverInAsh commented 3 years ago

ImportError Traceback (most recent call last)

in () 3 4 import os ----> 5 from tensor2tensor.bin import t2t_decoder 6 from tensor2tensor.models import transformer 7 import tensorflow as tf 9 frames /usr/local/lib/python3.6/dist-packages/tensorflow_datasets/core/tf_compat.py in ensure_tf_install() 57 if tf_version < min_tf_version: 58 raise ImportError( ---> 59 "This version of TensorFlow Datasets requires TensorFlow " 60 f"version >= {MIN_TF_VERSION}; Detected an installation of version " 61 f"{tf.__version__}. Please upgrade TensorFlow to proceed." ImportError: This version of TensorFlow Datasets requires TensorFlow version >= 2.1.0; Detected an installation of version 1.15.0. Please upgrade TensorFlow to proceed. ---------------------------------------------------------------------------
NguyenNamUET commented 3 years ago

Try this !pip install tensorflow-datasets==3.2.1 !pip install -U tensor2tensor==1.15.0 !pip install -U tensorflow==1.15.0 in colab SentimentAnalysis+_Back_translation.ipynb