Joker316701882 / Additive-Margin-Softmax

This is the implementation of paper <Additive Margin Softmax for Face Verification>
492 stars 149 forks source link

ImportError: No module named models.resface #6

Closed getengqing closed 6 years ago

getengqing commented 6 years ago

Hello, I got the error when using the default 'train.py' file, but I saw the models file, I can see the resface.py, Why?

GangqiangZhao commented 6 years ago

Do not know why. But I solved it by including the resface.py path:

sys.path.append('*****/Additive-Margin-Softmax-master/models')

network = importlib.import_module("resface")

beautyni commented 6 years ago

I got the same problem and I tried sys.path.append('*****/Additive-Margin-Softmax-master/models')

network = importlib.import_module("resface") but it doesn't make sense. So how to deal with the problem?

GangqiangZhao commented 6 years ago

Have you append the correct path ( '/Additive-Margin-Softmax-master/models', replace with your path )?

Joker316701882 commented 6 years ago

@getengqing I add 'init.py' in models file, seems problem has been solved.