You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
color (optional): a list of colors for ploting (the first color will be used for your proposed method's cmc curve). detail document for color is here
7 default colors is alrady set up in the class: color = ['r','g','b','c','m','y','orange','brown']
marker (optional): a list of markers for ploting (the first marker will be used for your proposed method's cmc curve). detail document for marker is here.
7 default marker is alrady set up in the class: marker = ['*','o','s','v','X','*','.','P']
fromCMCimportCMCcmc=CMC(cmc_dict)
#custimised color and markernew_color= ['r','g','b','c','m','y','orange','brown']
new_marker= ['*','o','s','v','X','*','.','P']
cmc=CMC(cmc_dict,color=new_color,marker=new_marker)
Method 1 plot: 1 required, 4 optional
title: title of the cmc curve (string)
rank(optional): top n value for ploting (integer), default is 20
xlabel (optional): label for x-axis (string), default is Rank
ylabel (optional): label for y-axis (sting). default is Matching Rates (%)
show_grid (optional): turn on or off grid in the graph (boolean). default is True
#simple plotcmc.plot(title='CMC on CUHK01 (100 test IDs)')
#custimised color and markercmc.plot(title='CMC on CUHK01', rank=10,
xlabel='Rank Score',
ylabel='Recognition Rate', show_grid=False)
Method 2 save: 2 required, 6+ optional
Required
title: title of the cmc curve (string)
filename: filename for saved figure (string)
Optional
rank(optional): top n value for ploting (integer), default is 20
xlabel (optional): label for x-axis (string), default is Rank
ylabel (optional): label for y-axis (sting). default is Matching Rates (%)
show_grid (optional): turn on or off grid in the graph (boolean). default is True
save_path (optional): figure saving directory (default is the current working directory)
format (optional): figure saving fomate (jpg, jpeg, png, pdf, ps, eps and svg), default is png