根据训练后的log日志画训练的loss-acc折线图
import matplotlib.pyplot as plt
l_n = 0
a_n = 0
loss_x = []
loss_y = []
acc_x = []
acc_y = []
with open("/home/hytz/Downloads/Yifan/caffe-face/v2_log.txt") as f: #根据自己的目录做对应的修改
for line in f:
line = line.strip()
if len(line.split("ac