added an early exit
This commit is contained in:
parent
509ffd24b1
commit
6bd918b3ba
@ -22,6 +22,7 @@ def calcNormalFunc(mean : float, sd : float, len : int):
|
||||
DATASET_PATH = "dataset\\"
|
||||
CSV_PATH = "src\\experiments\\algorithms\\data\\"
|
||||
BARK_TYPES = 8
|
||||
CSV_SAVE = False
|
||||
|
||||
## Arrays ##
|
||||
avgs_bgr = [[[],[],[]] for x in range(BARK_TYPES)]
|
||||
@ -132,6 +133,9 @@ for i in range(BARK_TYPES):
|
||||
plt.show()
|
||||
|
||||
## CSVs ##
|
||||
if not CSV_SAVE:
|
||||
exit()
|
||||
|
||||
# BGR mean and std #
|
||||
with open(CSV_PATH + "bgr_stats.csv", 'w', newline='') as file:
|
||||
file.write("label,avg_b,avg_g,avg_r,std_b,std_g,std_r,\n")
|
||||
|
Loading…
Reference in New Issue
Block a user