Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no module named yolox #20

Closed
zjnyly opened this issue Jul 20, 2021 · 5 comments
Closed

no module named yolox #20

zjnyly opened this issue Jul 20, 2021 · 5 comments

Comments

@zjnyly
Copy link

zjnyly commented Jul 20, 2021

Traceback (most recent call last):
  File "./tools/demo.py", line 15, in <module>
    from yolox.data.data_augment import preproc
ModuleNotFoundError: No module named 'yolox'

how can I import yolox?

@zjnyly
Copy link
Author

zjnyly commented Jul 20, 2021

I can import yolox in python interpreter, but can't successfully run the code
Python 3.8.8 (default, Apr 13 2021, 19:58:26)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.

from yolox.data.data_augment import preproc

@FateScript
Copy link
Member

I believe import yolox also not working for you, maybe you don't install yolox in the right way, please follow what README says.

@zjnyly zjnyly closed this as completed Jul 20, 2021
@ppogg
Copy link

ppogg commented Jul 21, 2021

应该不止你遇到这个问题,我今天也遇到了,不管在win还是linux都出现了这个bug,设置sources root也不行

@ppogg
Copy link

ppogg commented Jul 21, 2021

把demo.py从tools单独拎出来,让他直接从根目录去加载yolox里面的模块,应该可以解决你的问题

@Avnsx
Copy link

Avnsx commented Nov 17, 2021

#154 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants