GithubHelp home page GithubHelp logo

Import fast_rnnt is Failed about fast_rnnt HOT 11 OPEN

jeff-lim avatar jeff-lim commented on July 19, 2024
Import fast_rnnt is Failed

from fast_rnnt.

Comments (11)

jeff-lim avatar jeff-lim commented on July 19, 2024

I think.. it is same issue to #17 . Is there're any updates or PR about this issue?

from fast_rnnt.

csukuangfj avatar csukuangfj commented on July 19, 2024

Could you list the files in your python site-packages, especially the files whose name contains fast_rnnt?

from fast_rnnt.

jeff-lim avatar jeff-lim commented on July 19, 2024

there're only directories... It is okay....?

image

from fast_rnnt.

jeff-lim avatar jeff-lim commented on July 19, 2024

FYI tree of fast_rnnt, fast_rnnt-1.2.dist-info

fast_rnnt
image

fast_rnnt-1.2.dist-info
image

from fast_rnnt.

csukuangfj avatar csukuangfj commented on July 19, 2024

Is there a file containing _fast_rnnt in its name?

from fast_rnnt.

jeff-lim avatar jeff-lim commented on July 19, 2024

no.. not at all. Actually I wondering the reason why from/import _fast_rnnt in the _init_.py, mutual_information.py

init.py GitRepo
from _fast_rnnt import with_cuda

mutual_information.py GitRepo
import _fast_rnnt

from fast_rnnt.

csukuangfj avatar csukuangfj commented on July 19, 2024

After checking pypi.org, I am afraid you cannot use "pip install fast_rnnt" on Windows at pesent.

from fast_rnnt.

jeff-lim avatar jeff-lim commented on July 19, 2024

Oh my..
But, I also faced same issue, when I installed from source(git clone, python setup.py...), too.

Is it known issue to you/team?

  • If I install and run the code on Ubuntu, I will be okay to using fast_rnnt with cuda?

from fast_rnnt.

csukuangfj avatar csukuangfj commented on July 19, 2024

Actually I wondering the reason why from/import _fast_rnnt in the init.py, mutual_information.py

I bet you have seen torch._C. If you don't know what _C is, please google it.

Similarly, we have _fast_rnnt, which is a Python extension module, implemented in C++/CUDA.


Is it known issue to you/team?

I just looked at the file setup.py and find that it does not support Windows.

Please use the following commands to build fast_rnnt for windows:

git clone https://github.com/k2-fsa/fast_rnnt
cd fast_rnnt
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --target _fast_rnnt --config Release

After running the above commands, please find the directory where _fast_rnnt*.pyd locates and add the directory to the environment variable PYTHONPATH.

Similarly, find the directory where mutual_information_core.dll locates and add it to the environment variable path.

Finally, add the directory /path/to/fast_rnnt/fast_rnnt/python to the environment variable PYTHONPATH.

Now you should be able to run python -c "import fast_rnnt".

from fast_rnnt.

csukuangfj avatar csukuangfj commented on July 19, 2024

If I install and run the code on Ubuntu, I will be okay to using fast_rnnt with cuda?

Yes, I believe so.

from fast_rnnt.

csukuangfj avatar csukuangfj commented on July 19, 2024

I think @pkufool will support installing fast_rnnt on Windows so that others won't have the same issue as yours.

from fast_rnnt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.