SiameseX.PyTorch
SiameseX.PyTorch copied to clipboard
Can you make a file to describe the right way to set import path?
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?
I also have problems with neck what is neck? pip install neck gives just a simple function to print a list (?)
from .neck import AdjustLayer, AdjustAllLayer put a '.' before neck
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.