How to load a released PL model in my directory? #9795
-
Hello! I’m new to PyTorch Lightning. Recently, I am developing a PyTorch project. I want to run an open-source DeepSpeech code in Github and load its checkpoint. I clone their repository and run successfully. Then, I want to add their model to my project.
Then, I try to directly call |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I assume you are talking about this one, right? Maybe you are getting
because you didn't install that module into your environment. Follow the instructions on the README page of the repository to install the package, i.e., Then in your other projects you can import the deepspeech_pytorch module given that you active the same virtual environment. An so loading a model checkpoint should be able to import that too under the same conditions. Hope that helps |
Beta Was this translation helpful? Give feedback.
I assume you are talking about this one, right?
https://github.com/SeanNaren/deepspeech.pytorch
Maybe you are getting
because you didn't install that module into your environment. Follow the instructions on the README page of the repository to install the package, i.e.,
pip install -e .
in the cloned repo folder.Then in your other projects you can import the deepspeech_pytorch module given that you active the same virtual environment. An so loading a model checkpoint should be able to import that too under the same conditions.
Hope that helps