Replies: 1 comment 2 replies
-
Nobody has any ideas? I can't find a way to get around it and it prevents me from using the model... It works fine in my jupyter notebook but breaks in my Flask application @titu1994 @ekmb |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I wrote a jupyter notebook that loads my pretrained punctuation model from googe coloab and applies it in my application. However when I actually transfer the code into the application, I get stuck on an error :
File "/Users/ryanheadley/Sites/pomelo/backend/pomelo_backend/video.py", line 749, in run_vosk
punctuatedSentences = punctuation_model.add_punctuation_capitalization(allText)
File "/Users/ryanheadley/Sites/pomelo/backend/nemo/collections/nlp/models/token_classification/punctuation_capitalization_model.py", line 403, in add_punctuation_capitalization
for batch in infer_datalayer:
File "/Users/ryanheadley/.local/share/virtualenvs/backend-2Yznqhll/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 359, in iter
return self._get_iterator()
File "/Users/ryanheadley/.local/share/virtualenvs/backend-2Yznqhll/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 305, in _get_iterator
return _MultiProcessingDataLoaderIter(self)
File "/Users/ryanheadley/.local/share/virtualenvs/backend-2Yznqhll/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 918, in init
w.start()
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 284, in _Popen
return Popen(process_obj)
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
NotImplementedError: object proxy must define reduce_ex()
Any ideas on how to solve this?
Beta Was this translation helpful? Give feedback.
All reactions