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

Can you make a file to describe the right way to set import path? #7

Open
fzh0917 opened this issue Aug 3, 2019 · 3 comments
Open

Comments

@fzh0917
Copy link

fzh0917 commented Aug 3, 2019

I run the command python demo_rpn.py --model SiamRPNResNeXt22 in the directory "SiameseX.PyTorch", I got the error "from neck import AdjustLayer, AdjustAllLayer". Then, I changed it to from .neck import AdjustLayer, AdjustAllLayer and rerun that command, I got an another error "ImportError: cannot import name 'get_subwindow_tracking'".
Through your code, I found these problems are results from the disordered import path management.
So, Can you make a description to make them clear?

@PyxAI
Copy link

PyxAI commented Oct 6, 2019

I also have problems with neck
what is neck? pip install neck gives just a simple function to print a list (?)

@hanwsf
Copy link

hanwsf commented Dec 2, 2019

from .neck import AdjustLayer, AdjustAllLayer
put a '.' before neck

@hanwsf
Copy link

hanwsf commented Dec 2, 2019

for your "ImportError: cannot import name 'get_subwindow_tracking'", rename the utils.py in the current folder to other names, not used. the utils.py is in the demo_rpm_utils.

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