Face-identification-with-cnn-triplet-loss icon indicating copy to clipboard operation
Face-identification-with-cnn-triplet-loss copied to clipboard

tpe, tpe_pred = build_tpe(n_in, n_out, W_pca.T)

Open noelcodes opened this issue 5 years ago • 2 comments

HI I'm stuck here. keras merge keep error me out.

In [13]: tpe, tpe_pred = build_tpe(n_in, n_out, W_pca.T) D:\xrvision\XRV_projects\Face-identification-with-cnn-triplet-loss\model.py:67: UserWarning: Update your Dense call to the Keras 2 API: Dense(18, input_dim=18, weights=[array([[-..., activation="linear", use_bias=False) base_model.add(Dense(n_out, input_dim=n_in, bias=False, weights=[W_pca], activation='linear')) Traceback (most recent call last):

File "", line 1, in tpe, tpe_pred = build_tpe(n_in, n_out, W_pca.T)

File "D:\xrvision\XRV_projects\Face-identification-with-cnn-triplet-loss\model.py", line 75, in build_tpe e = merge([a_emb, p_emb, n_emb], mode=triplet_merge, output_shape=triplet_merge_shape)

TypeError: 'module' object is not callable

noelcodes avatar Nov 22 '18 22:11 noelcodes