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 'tools' #2667

Closed
LaserLV52 opened this issue May 9, 2020 · 2 comments
Closed

No module named 'tools' #2667

LaserLV52 opened this issue May 9, 2020 · 2 comments
Assignees

Comments

@LaserLV52
Copy link

i used the command:
python tools/test.py configs/reppoints/reppoints_moment_r101_fpn_dconv_c3-c5_gn-neck+head_2x_coco.py checkpoints/reppoints_moment_r101_dcn_fpn_2x_mt.pth --show
to test the model, but report some error.

Traceback (most recent call last):
File "tools/test.py", line 10, in
from tools.fuse_conv_bn import fuse_module
ModuleNotFoundError: No module named 'tools'

how to solve it, thanks

@yhcao6
Copy link
Collaborator

yhcao6 commented May 13, 2020

PYTHONPATH=${PWD}:$PYTHONPATH python tools/test.py configs/reppoints/reppoints_moment_r101_fpn_dconv_c3-c5_gn-neck+head_2x_coco.py checkpoints/reppoints_moment_r101_dcn_fpn_2x_mt.pth --show

@sunbuhui
Copy link

sunbuhui commented Dec 8, 2020

@yhcao6 Can you explain why adding "PYTHONPATH=${PWD}:$PYTHONPATH" before the old code will do ? I have searched for it, but I think it just adds environment variable, but doesn't change the fact that the fuse_conv_bn.py file has been removed . Thanks !

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

3 participants