Error for 4.1 Rate my waifu

#1
by Pudzian - opened

Hello, Dataset maker using Fancaps has step 4.1 with Rate my waifu. When using it I get:

/content
2023-03-20 13:23:19.285439: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-20 13:23:20.062326: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-03-20 13:23:21.573493: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.9/dist-packages/cv2/../../lib64:/usr/lib64-nvidia
2023-03-20 13:23:21.574069: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.9/dist-packages/cv2/../../lib64:/usr/lib64-nvidia
2023-03-20 13:23:21.574091: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/transformers/utils/import_utils.py", line 1110, in _get_module
return importlib.import_module("." + module_name, self.name)
File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/usr/local/lib/python3.9/dist-packages/transformers/pipelines/init.py", line 73, in
from .table_question_answering import TableQuestionAnsweringArgumentHandler, TableQuestionAnsweringPipeline
File "/usr/local/lib/python3.9/dist-packages/transformers/pipelines/table_question_answering.py", line 27, in
import tensorflow_probability as tfp
File "/usr/local/lib/python3.9/dist-packages/tensorflow_probability/init.py", line 20, in
from tensorflow_probability import substrates
File "/usr/local/lib/python3.9/dist-packages/tensorflow_probability/substrates/init.py", line 17, in
from tensorflow_probability.python.internal import all_util
File "/usr/local/lib/python3.9/dist-packages/tensorflow_probability/python/init.py", line 138, in
dir(globals()[pkg_name]) # Forces loading the package from its lazy loader.
File "/usr/local/lib/python3.9/dist-packages/tensorflow_probability/python/internal/lazy_loader.py", line 57, in dir
module = self._load()
File "/usr/local/lib/python3.9/dist-packages/tensorflow_probability/python/internal/lazy_loader.py", line 37, in _load
self._on_first_access()
File "/usr/local/lib/python3.9/dist-packages/tensorflow_probability/python/init.py", line 59, in _validate_tf_environment
raise ImportError(
ImportError: This version of TensorFlow Probability requires TensorFlow version >= 2.11; Detected an installation of version 2.10.1. Please upgrade TensorFlow to proceed.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/content/cafe-aesthetic-scorer/rate_my_waifu.py", line 8, in
from transformers import pipeline
File "", line 1055, in _handle_fromlist
File "/usr/local/lib/python3.9/dist-packages/transformers/utils/import_utils.py", line 1100, in getattr
module = self._get_module(self._class_to_module[name])
File "/usr/local/lib/python3.9/dist-packages/transformers/utils/import_utils.py", line 1112, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback):
This version of TensorFlow Probability requires TensorFlow version >= 2.11; Detected an installation of version 2.10.1. Please upgrade TensorFlow to proceed.

Do you know how to deal with it ? :)

Hey, it seems you might have missed one of the installation steps in the first few cells.

Otherwise this dependency problem might be a problem with how the colab was set up. The fancaps colab was made by somebody else, but I can look into it later. Thanks for bringing it up.

Sorry then, I was just testing it after reading your guide and I had to skip this point. Thought you are the creator.

Thank you :)

hollowstrawberry changed discussion status to closed

Sign up or log in to comment