keras-triplet-center-loss icon indicating copy to clipboard operation
keras-triplet-center-loss copied to clipboard

Simple Keras implementation of Triplet-Center Loss on the MNIST dataset

Results 4 keras-triplet-center-loss issues
Sort by recently updated
recently updated
newest added

Hi!! when generate_triplet function is called I am getting an error. Please help me to resolve it this is the line for this error for data_class in sorted(set(data_xy[1])):

x_train, x_test, y_train, y_test = train_test_split(images, labels, test_size=0.33, shuffle= True) model_input = Input(shape=(224,224, 3)) softmax, pre_logits = base_network() x_train_flat = x_train.reshape(-1, 163968) x_train_flat = x_train.reshape(-1, 163968) ValueError: cannot reshape array...

As described in the title, it seems that np.inf is assigned to the intra-class distances in triplet_center_loss in triplet.py, which is more like some kind of placeholder.

when i want to run the triplet_center_loss, the error is show that ,how can i fix it, thanks. "TypeError: Input 'y' of 'Equal' Op has type float32 that does not...