Closed johnwu0604 closed 5 years ago
Hi, are you using tf-nightly? If you are using tf 2.0 release, the symbol is not added. Overall, it is not really useful. You can delete them.
If you just want to use TF2.0 ver, please use this branch https://github.com/tensorflow/models/tree/tf_2_0_rc1
I am getting below error while trying
from rasa.jupyter import chat chat(model_path)
AttributeError Traceback (most recent call last)
Hi, so I just struggled with this problem for a few days. Here is how I solved it: it turns out I was using the wrong python folder. I was dealing with conda environments and had everything installed on my conda environment but was using the default path to my local installation of python as a kernel. I fixed this by changing what kernel I was using with my jupyter notebook to be my conda environment. While you may not have the exact same issue, I can almost 100% guarantee that it has to do with your environment and installation of tensorflow. Make sure that the directory referenced in the error, (the path to gelu.py) is the same directory that you are installing tensorflow in.
Hi, so I just struggled with this problem for a few days. Here is how I solved it: it turns out I was using the wrong python folder. I was dealing with conda environments and had everything installed on my conda environment but was using the default path to my local installation of python as a kernel. I fixed this by changing what kernel I was using with my jupyter notebook to be my conda environment. While you may not have the exact same issue, I can almost 100% guarantee that it has to do with your environment and installation of tensorflow. Make sure that the directory referenced in the error, (the path to gelu.py) is the same directory that you are installing tensorflow in.
@pmj714 which version of tensorflow and python you are using?
I tried installing tensorflow 2.2.0. but it doesn't work for me. So, I re-installed tensorflow 2.0.0. I am getting the following error.
(tensorflow) C:\tensorflow\models\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
Traceback (most recent call last): File "train.py", line 54, in from object_detection.builders import model_builder File "C:\Users\Jayanth\anaconda3\envs\tensorflow\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\builders\model_builder.py", line 66, in from object_detection.models import ssd_efficientnet_bifpn_feature_extractor as ssd_efficientnet_bifpn File "C:\Users\Jayanth\anaconda3\envs\tensorflow\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\models\ssd_efficientnet_bifpn_feature_extractor.py", line 33, in from official.vision.image_classification.efficientnet import efficientnet_model File "C:\Users\Jayanth\anaconda3\envs\tensorflow\lib\site-packages\official\vision\image_classification\efficientnet\efficientnet_model.py", line 35, in from official.modeling import tf_utils File "C:\Users\Jayanth\anaconda3\envs\tensorflow\lib\site-packages\official\modeling\tf_utils.py", line 25, in from official.modeling import activations File "C:\Users\Jayanth\anaconda3\envs\tensorflow\lib\site-packages\official\modeling\activationsinit.py", line 16, in from official.modeling.activations.gelu import gelu File "C:\Users\Jayanth\anaconda3\envs\tensorflow\lib\site-packages\official\modeling\activations\gelu.py", line 26, in @tf.keras.utils.register_keras_serializable(package='Text') AttributeError: module 'tensorflow_core.keras.utils' has no attribute 'register_keras_serializable'
I'm getting the following error when trying to import bert_models repository
Seems like register_keras_serializable is not an attribute in the tf.keras.utils libary...?