Git Product home page Git Product logo

Comments (6)

lilanxiao avatar lilanxiao commented on May 27, 2024 1

It seems that the path of my source code is not in the sys.path. To use the sort_vertices function, we need not only the path under python3.8/site-packages but also the source code. Would you please add this at the beginning of the demo.py and run it again?

import sys
sys.append(**absolute path of the Rotated_IoU source code**)

from rotated_iou.

lilanxiao avatar lilanxiao commented on May 27, 2024

Hi, it seems the CUDA extension is successfully compiled. However, the python interpreter is not able to call it.

You've probably used one python interpreter/environment for the python setup.py install and use another interpreter for python demo.py. I can reproduce the error by using two different Conda environments to compile the code and run the demo, respectively. So please make sure to use the same interpreter.

BTW, I don't understand why you used SUDO here. It might be irrelevant with this error but it's quite unusual.

from rotated_iou.

gireek avatar gireek commented on May 27, 2024

This issue stays even when only a single Conda environment is used for me. Any suggestions?

from rotated_iou.

lilanxiao avatar lilanxiao commented on May 27, 2024

This issue stays even when only a single Conda environment is used for me. Any suggestions?

I don't think this issue is caused by my code.

Probably it's just a problem with the path. Sometimes people get the ModuleNotFoundError, while the module does exist. If it's the case, you only need to add the absolute path of this module to the PYTHONPATH, either by exporting the environment variable directly in the command line or by calling the sys.path.append function in the python code before importing the module.

More info: https://stackoverflow.com/questions/23417941/import-error-no-module-named-does-exist

from rotated_iou.

gireek avatar gireek commented on May 27, 2024

image

The path of sort_vertices shows in the sys.path

from rotated_iou.

gireek avatar gireek commented on May 27, 2024

Thanks alot the problem has been solved.

from rotated_iou.

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.