Questions tagged [arcface]

11 questions
1
vote
0 answers

how to resize image for arcface?

Hi I am trying to use arcface model with this code: from deepface.basemodels.ArcFace import loadModel as loadArcFace model = loadArcFace() img = Image.open('face.jpg') img = img.resize((112, 112), Image.ANTIALIAS) img =…
Tlaloc-ES
  • 4,825
  • 7
  • 38
  • 84
1
vote
1 answer

Finding out distance between output of two Convolutional Neural Network (CNN) i.e Siamese Network

I am trying to build a simple Siamese neural network for usage in Human re-identification. For that, I have used MTCNN (https://github.com/timesler/facenet-pytorch) for face detection and official pytorch implementation of arcface algorithm…
1
vote
2 answers

issue with arcface ( 0 accuracy)

Hello guys I've joined a university-level image recognition competition. In the test, they will give two images (people face) and my model need to detect pair of the image is the same person or not My model is resnet18 with IR block and SE block.…
1
vote
0 answers

About a Arcface training strategy

I'm training Arcface with CASIA-Webface dataset with refering This github page(https://github.com/ZhaoJ9014/face.evoLVe.PyTorch). I've aligned the CASIA-Webface dataset using the face alignment codes from that github page and fixed them to…
CDM
  • 43
  • 3
0
votes
0 answers

Why origin arcface and deepface arcface’s embedding values’ scale are different? And how can i use deepface arcface’ embedding when face swapping?

I used origin arcface model and deepface’s arcface to get identity embedding of aligned images. But I got completely different scale of values. Inputs are same but the only different thing on these two way was input shape. Origin arcface model :…
ram
  • 33
  • 3
0
votes
0 answers

Custom Losss Function Tensorflow datatype error

I am trying implement a custom arcface loss function: def call(self, y_true: FloatTensor, y_pred: FloatTensor) -> FloatTensor: projector = tf.math.l2_normalize(y_true, axis=1) predictor = tf.math.l2_normalize(y_pred, axis=1) cos_theta =…
0
votes
1 answer

Why loaded Pytorch model's loss highly increased?

I'm trying to train Arcface with reference to. As far as I know, Arcface requires more than 200 training epochs on CASIA-webface with a large batch size. Within 100 epochs of training, I stopped the training for a while because I was needed to use…
0
votes
2 answers

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) in 15…
0
votes
0 answers

How to a handle C++ exception coming in python library (implemented in C++)?

I am trying to write a face verification API in python. For image detection and calculating the embeddings, I have used InsightFace package provided by http://insightface.ai/. But for specific images (images having no face, more than one face and…
user3457384
  • 593
  • 6
  • 14
0
votes
1 answer

Arcface architecture returning the same embedding for any face

I am trying put together arcface with inception resnet using Keras, the training looks likes be right, it means, it increases accuracy the loss decreases while the batches and epochs are processed, but when I test the model to get the embeddeds, any…
Alex
  • 3,301
  • 4
  • 29
  • 43
-1
votes
1 answer

How can i know the architecture of pre-trained model in Pytorch?

I have downloaded this pre-trained model "model_ir_se50.pth" for face recognition. It is giving very good results. How can i know its architecture?