facenet icon indicating copy to clipboard operation
facenet copied to clipboard

n the training process, the center loss becomes larger and larger. What is the mistake

Open alanMachineLeraning opened this issue 6 years ago • 5 comments

2

alanMachineLeraning avatar Jul 27 '18 03:07 alanMachineLeraning

My be your training dataset is too small.

fisakhan avatar Mar 14 '19 10:03 fisakhan

Are you shuffling your trainset? I had this problem and after I starting shuffling the issue was resolved.

jjsjunior avatar Nov 04 '19 19:11 jjsjunior

@jjsjunior do you mean shuffle here: index_queue = tf.train.range_input_producer(range_size, num_epochs=None, shuffle=True, seed=None, capacity=32), I have tried "True" and "False", but it didn't help.

@fisakhan : what do you mean by the training dataset is too small? I have 11k images (374 classes) for training, but I found the value in some part of the centers matrix (dimension is 374x128) become very large, any reason? Thanks.

RyanCV avatar Aug 19 '20 20:08 RyanCV

@alanMachineLeraning How did you solve this problem of using center loss during training? I also have this kind of inf of center loss after 3 epochs during finetuning of facenet.

RyanCV avatar Aug 21 '20 19:08 RyanCV

@RyanCV @alanMachineLeraning i have the same problem, have you solved it? How?

jetsmith avatar Apr 06 '22 09:04 jetsmith