Closed bukhanka closed 1 week ago
Dear @bukhanka,
I have reproduced this error. It occurs when you forget to initialize the Bert model: res_setup_translation_model = _b5.setup_bert_encoder(force_reload = False).
Please make sure that all necessary model initializations are done. To make sure you have not missed anything, see the notebook https://oceanai.readthedocs.io/en/latest/user_guide/notebooks/Pipeline_practical_task_1.html (cell 2)
Dear @bukhanka, I have reproduced this error. It occurs when you forget to initialize the Bert model: res_setup_translation_model = _b5.setup_bert_encoder(force_reload = False). Please make sure that all necessary model initializations are done. To make sure you have not missed anything, see the notebook https://oceanai.readthedocs.io/en/latest/user_guide/notebooks/Pipeline_practical_task_1.html (cell 2)
thanks for quick replay, fixed
FileNotFoundError Traceback (most recent call last) File ~/ai-cv/.venv/lib/python3.12/site-packages/oceanai/modules/lab/text.py:987, in Text._get_text_features(self, path, asr, lang, show_text, last, out, runtime, run) 986 if os.path.isfile(path_to_text) is False: --> 987 raise FileNotFoundError # Не текстовый файл 988 except FileNotFoundError:
FileNotFoundError:
During handling of the above exception, another exception occurred:
TypeError Traceback (most recent call last) Cell In[14], line 99 95 url_accuracy = _b5.truetraits[corpus]['googledisk'] 97 print(url_accuracy) ---> 99 _b5.get_avt_predictions(url_accuracy = url_accuracy, lang = 'en')
File ~/ai-cv/.venv/lib/python3.12/site-packages/oceanai/modules/lab/prediction.py:1938, in Prediction.get_avt_predictions(self, depth, recursive, sr, window_audio, step_audio, reduction_fps, window_video, step_video, asr, lang, accuracy, url_accuracy, logs, out, runtime, run) 1925 hc_video_features, nn_videofeatures, = self._get_visual_features( 1926 path=str(curr_path.resolve()), 1927 reduction_fps=reduction_fps, (...) 1934 run=run, 1935 ) 1937 # Извлечение признаков из текста ... --> 726 encoded_input = self._bert_tokenizer(text, return_tensors="pt") 727 dict_new = {} 728 if encoded_input["input_ids"].shape[1] > 512:
TypeError: 'NoneType' object is not callable Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...