Skip to content

Commit

Permalink
lesson-3
Browse files Browse the repository at this point in the history
lesson-3
  • Loading branch information
Jack-Cherish authored May 5, 2020
1 parent 747363e commit b31d9dc
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Pytorch-Seg/lesson-3/show_loss.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import matplotlib.pyplot as plt
# Jupyter notebook 中开启
# %matplotlib inline
with open('train_loss.txt', 'r') as f:
train_loss = f.readlines()
train_loss = list(map(lambda x:float(x.strip()), train_loss))
x = range(len(train_loss))
y = train_loss
plt.plot(x, y, label='train loss', linewidth=2, color='r', marker='o', markerfacecolor='r', markersize=5)
plt.xlabel('Epoch')
plt.ylabel('Loss Value')
plt.legend()
plt.show()
100 changes: 100 additions & 0 deletions Pytorch-Seg/lesson-3/train_loss.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
32.464943
17.410048
16.051996
15.255561
14.547606
13.847259
13.449913
12.980925
12.948830
12.398992
12.485570
12.089432
12.118484
12.021638
11.817263
11.644099
11.417233
11.549695
11.223548
11.172435
11.027787
10.939758
10.666803
10.993714
10.574224
10.658235
10.631421
10.498351
10.557507
10.502128
10.543790
10.523225
10.231854
10.398646
10.406532
10.283625
10.105809
9.987217
9.936296
9.876533
9.953513
9.899665
9.926085
9.877600
9.829120
9.865887
9.770892
9.576312
9.615096
9.722373
9.715674
9.644127
9.581133
9.565999
9.459929
9.518677
9.321252
9.382160
9.545680
8.467113
8.369641
8.301431
8.306873
8.244370
8.223052
8.215305
8.191195
8.174629
8.184194
8.139848
8.143331
8.107319
8.110783
8.083336
8.056860
8.053325
8.038514
8.047304
8.027021
7.909974
7.896411
7.891089
7.892738
7.902834
7.896441
7.903152
7.878296
7.888803
7.879333
7.881098
7.868000
7.871295
7.887029
7.880289
7.863110
7.889467
7.876264
7.871953
7.869154
7.860284

0 comments on commit b31d9dc

Please sign in to comment.