Commit f12633cd authored by Larkin Heintzman's avatar Larkin Heintzman

good-ish training results finally

parent 7b946751
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -17,7 +17,7 @@ hue=.1
learning_rate=0.001
burn_in=100
max_batches = 502000
max_batches = 505000
policy=steps
steps=40000,45000
scales=.1,.1
......
chart.png

68.7 KB | W: | H:

chart.png

77.6 KB | W: | H:

chart.png
chart.png
chart.png
chart.png
  • 2-up
  • Swipe
  • Onion skin
chart_yolov3-visdrone.png

68.7 KB | W: | H:

chart_yolov3-visdrone.png

77.6 KB | W: | H:

chart_yolov3-visdrone.png
chart_yolov3-visdrone.png
chart_yolov3-visdrone.png
chart_yolov3-visdrone.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -22,23 +22,39 @@ def main(argv):
iters = []
loss = []
mAP = []
fig,ax = plt.subplots()
prev_line = ""
for line in lines:
args = line.lstrip().split(' ')
if args[0][-1:]==':' and args[0][0] in numbers :
if args[0][-1:]==':' and args[0][0] in numbers:
iters.append(int(args[0][:-1]))
loss.append(float(args[2]))
loss.append(min(float(args[2]),250.0))
if args[0]=='Last':
mAP.append(float(args[4]))
# make map and iters equal with zero padding
if (len(iters) > len(mAP)):
mAP = [0.0]*(len(iters) - len(mAP)) + mAP
elif (len(iters) < len(mAP)):
mAP = [0.0]*(len(mAP) - len(iters)) + mAP
axM = ax.twinx() # instantiate a second axes that shares the same x-axis
ax.plot(iters,loss, 'b')
ax.set_xlabel('iters')
ax.set_ylabel('loss', color='b')
axM.plot(iters,mAP, 'r')
axM.set_xlabel('iters')
axM.set_ylabel('mAP', color='r')
ax.plot(iters,loss)
plt.xlabel('iters')
plt.ylabel('loss')
plt.grid()
ticks = range(0,250,10)
fig.tight_layout() # otherwise the right y-label is slightly clipped
plt.savefig('loss_plot.jpg')
#ax.set_yticks(ticks)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment