SiameseX.PyTorch icon indicating copy to clipboard operation
SiameseX.PyTorch copied to clipboard

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

Open fzh0917 opened this issue 5 years ago • 3 comments

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?

fzh0917 avatar Aug 03 '19 10:08 fzh0917

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

PyxAI avatar Oct 06 '19 15:10 PyxAI

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

hanwsf avatar Dec 02 '19 12:12 hanwsf

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.

hanwsf avatar Dec 02 '19 12:12 hanwsf