facenet icon indicating copy to clipboard operation
facenet copied to clipboard

[bug] Plotting using matlab, some functions are missing in plot_learning_curves.m

Open neklom opened this issue 5 years ago • 11 comments

Hi, I tried to use this code to plot some curves for my results and I found that there are some functions that are missing like "Undefined function or variable 'combineStyles'".

Does anyone have a working code or had defined that function please ? and thanks !

neklom avatar Jun 27 '19 15:06 neklom

I have the same problem with you.

hsm4703 avatar Jun 29 '19 12:06 hsm4703

Same here, I hope someone could help us because I really need it, I would appreciate that.

kifaw avatar Jun 30 '19 01:06 kifaw

It seems just to combine colors, markers and line styles. You can just choose one, like '*b', '-b'. If you have several training results to plot, just set a cell like lineStyles={'*b', 'xr'}.

Zhengyu-Li avatar Jul 13 '19 03:07 Zhengyu-Li

can you tell me detail plz><

hsm4703 avatar Jul 22 '19 06:07 hsm4703

yes @Zhengyu-Li I know thanks but I'm not familiar with Matlab and I tried to change the code a little bit but didn't work, I hope you could help if possible and thanks !

neklom avatar Jul 29 '19 20:07 neklom

This combineStyles( ) function is not defined in MATLAB. An implementation of the function is not provided either. That's what is causing the error message.

hyderit avatar Aug 20 '19 16:08 hyderit

A simple way to fix this issue is to rewrite both line styles. Something like:

lineStyles = {'b.', 'go', 'rx', 'c+', 'm*', 'ys', 'kd'};
lineStyles2 = {'b-', 'g-.', 'r--', 'c:', 'm--', 'y-', 'k-.'};

hyderit avatar Aug 20 '19 16:08 hyderit

 1566555330979

hsm4703 avatar Aug 23 '19 10:08 hsm4703

@hyderit
how can i fix the code

hsm4703 avatar Aug 23 '19 10:08 hsm4703

@hyderit Hello, do you meet one problem as follows?

Unrecognized function or variable 'readlogs'.

I am really looking forward to your reply and others help.

wencoast avatar Jan 25 '21 14:01 wencoast

@wencoast This script is used to visualize the train and test plots. You can instead use the h5py files produced after the training is done to visualize the graphs using python instead of using matlab.

In train_softmax.py script you can find in both train() and validate() functions a stat dictionary that contains information (Accuracies, losses, ...) about the train/test and validation of the model after it ends the training.

kifaw avatar Jan 26 '21 10:01 kifaw