zllrunning / SiameseX.PyTorch

A simplified PyTorch implementation of Siamese networks for tracking: SiamFC, SiamRPN, SiamRPN++, SiamVGG, SiamDW, SiamRPN-VGG.
437 stars 94 forks source link

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

Open fzh0917 opened 5 years ago

fzh0917 commented 5 years ago

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 commented 5 years ago

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

hanwsf commented 4 years ago

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

hanwsf commented 4 years ago

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.