pythonpipanacondaimporterrorarcface

import error of ArcFace using python in jupyternotebbok


When I am importing the package ArcFace.

from arcface.metrics import ArcFace

It is showning the import error. Like this,

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-fe2759a1802e> in <module>
     15 from keras.layers.convolutional import MaxPooling2D
     16 from keras.layers.core import Activation, Flatten, Dropout, Dense
---> 17 from arcface.metrics import ArcFace
     18 from keras.layers import Input
     19 from keras import backend as K

ModuleNotFoundError: No module named 'arcface'

I have searched for importing it for Anaconda and pip too. I have not found any results. Please help me to solve this.


Solution

  • This is part of project keras-arcface but it is not part of keras so you have to install/copy it separatelly.

    If you put it in your project in subfolder arcface then it should work.