This commit is contained in:
Glenn Jocher 2019-04-17 14:57:39 +02:00
parent b04ea48153
commit 9c5524ba82
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ def plot_results(start=0, stop=0): # from utils.utils import *; plot_results()
fig = plt.figure(figsize=(14, 7)) fig = plt.figure(figsize=(14, 7))
s = ['X + Y', 'Width + Height', 'Confidence', 'Classification', 'Train Loss', 'Precision', 'Recall', 'mAP', 'F1', s = ['X + Y', 'Width + Height', 'Confidence', 'Classification', 'Train Loss', 'Precision', 'Recall', 'mAP', 'F1',
'Test Loss'] 'Test Loss']
for f in sorted(glob.glob('results*.txt')): for f in sorted(glob.glob('results*.txt') + glob.glob('../../Downloads/results*.txt')):
results = np.loadtxt(f, usecols=[2, 3, 4, 5, 6, 9, 10, 11, 12, 13]).T results = np.loadtxt(f, usecols=[2, 3, 4, 5, 6, 9, 10, 11, 12, 13]).T
n = results.shape[1] # number of rows n = results.shape[1] # number of rows
x = range(start, min(stop, n) if stop else n) x = range(start, min(stop, n) if stop else n)