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

ModuleNotFoundError: No module named 'scripts.convert_pretrained_model' #90

Open
zpsandzzc opened this issue Sep 20, 2019 · 1 comment

Comments

@zpsandzzc
Copy link

运行SiamFC-3s-color-pretrained.py出错,ModuleNotFoundError???但是scripts.convert_pretrained_model可以点开
runfile('C:/Users/pc/SiamFC-TensorFlow-master/experiments/SiamFC-3s-color-pretrained.py', wdir='C:/Users/pc/SiamFC-TensorFlow-master/experiments')
Traceback (most recent call last):

File "", line 1, in
runfile('C:/Users/pc/zzccode/SiamFC-TensorFlow-master/experiments/SiamFC-3s-color-pretrained.py', wdir='C:/Users/pc/zzccode/SiamFC-TensorFlow-master/experiments')

File "C:\Users\pc\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)

File "C:\Users\pc\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/pc/zzccode/SiamFC-TensorFlow-master/experiments/SiamFC-3s-color-pretrained.py", line 20, in
from scripts.convert_pretrained_model import ex

ModuleNotFoundError: No module named 'scripts.convert_pretrained_model'

@bilylee
Copy link
Owner

bilylee commented Dec 24, 2019

working directory 应该是 C:/Users/pc/zzccode/SiamFC-TensorFlow-master

请尝试执行:

runfile('C:/Users/pc/zzccode/SiamFC-TensorFlow-master/experiments/SiamFC-3s-color-pretrained.py', 
wdir='C:/Users/pc/zzccode/SiamFC-TensorFlow-master')

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

2 participants