-
Notifications
You must be signed in to change notification settings - Fork 0
/
dl-project.ipynb.json
1324 lines (1324 loc) · 73.3 KB
/
dl-project.ipynb.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## TO DO\n",
"\n",
"At the cell that starts with train_ds = RetinaDataset(pathTo250s, X_train, y_train), output image is really weird looking. Making sure the image is more human-interpretable on that cell might improve model score."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(35126,\n",
" [PosixPath('/home/ubuntu/data/train/23104_left.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/42184_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/23287_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/26100_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/18101_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/20499_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/7544_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/20255_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/19949_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/40220_left.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/25871_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/30058_left.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/33535_left.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/33531_left.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/40622_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/10988_left.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/20979_left.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/11182_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/760_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/train/4140_right.jpeg')])"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%reload_ext autoreload\n",
"%autoreload 2\n",
"%matplotlib inline\n",
"\n",
"import math\n",
"import pandas as pd\n",
"import numpy as np\n",
"import torch\n",
"import torch.optim as optim\n",
"import torch.nn as nn\n",
"import torch.nn.functional as F\n",
"from torchvision import models\n",
"from pathlib import Path\n",
"from torch.utils.data import Dataset, DataLoader\n",
"import random\n",
"import matplotlib.pyplot as plt\n",
"from sklearn import metrics\n",
"\n",
"#!sudo pip3 install opencv-python\n",
"import cv2\n",
"\n",
"\n",
"\n",
"PATH = Path(\"/home/ubuntu/data\")\n",
"X = list((PATH/\"train\").iterdir())\n",
"len(X), X[:20]"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"## Show an image and label here."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Auxiliary Operations"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"#IMAGE OPERATIONS\n",
"\n",
"\n",
"\n",
"import math\n",
"def crop(im, r, c, target_r, target_c): return im[r:r+target_r, c:c+target_c]\n",
"\n",
"def center_crop_square(im):\n",
" \"\"\" Returns a center crop of an image\"\"\"\n",
" r,c,*_ = im.shape\n",
" min_sz = min(r,c)\n",
" start_r = math.ceil((r-min_sz)/2)\n",
" start_c = math.ceil((c-min_sz)/2)\n",
" return crop(im, start_r, start_c, min_sz, min_sz)\n",
"\n",
"def get_a_crop(path, sz=250):\n",
" im = cv2.imread(str(path))\n",
" return cv2.resize(center_crop_square(im), (sz, sz))\n",
"\n",
"# random crop to the original size\n",
"def random_crop(x, r_pix=8):\n",
" \"\"\" Returns a random crop\"\"\"\n",
" r, c,*_ = x.shape\n",
" r, c,*_ = x.shape\n",
" c_pix = round(r_pix*c/r)\n",
" rand_r = random.uniform(0, 1)\n",
" rand_c = random.uniform(0, 1)\n",
" start_r = np.floor(2*rand_r*r_pix).astype(int)\n",
" start_c = np.floor(2*rand_c*c_pix).astype(int)\n",
" return crop(x, start_r, start_c, r-2*r_pix, c-2*c_pix)\n",
"\n",
"def center_crop(x, r_pix=8):\n",
" r, c,*_ = x.shape\n",
" c_pix = round(r_pix*c/r)\n",
" return crop(x, r_pix, c_pix, r-2*r_pix, c-2*c_pix)\n",
"\n",
"\n",
"def rotate_cv(im, deg, mode=cv2.BORDER_REFLECT, interpolation=cv2.INTER_AREA):\n",
" \"\"\" Rotates an image by deg degrees\"\"\"\n",
" r,c,*_ = im.shape\n",
" M = cv2.getRotationMatrix2D((c/2,r/2),deg,1)\n",
" return cv2.warpAffine(im,M,(c,r), borderMode=mode, \n",
" flags=cv2.WARP_FILL_OUTLIERS+interpolation)\n",
"\n",
"def normalize(im): #bunu zaten /255 işleminden geçmiş image'lara yapıyor.\n",
" \"\"\"Normalizes images with Imagenet stats.\"\"\"\n",
" imagenet_stats = np.array([[0.485, 0.456, 0.406], [0.229, 0.224, 0.225]])\n",
" return (im - imagenet_stats[0])/imagenet_stats[1]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Resizing Images"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"'''Create path for resized images given size such as dataset-450 or valid-250.'''\n",
"\n",
"def createResizedImagesFolder(pathToImages, pathToFolder, size): #Takes str of PosixPath, returns PosixPath\n",
" pathToImages = Path(pathToImages)\n",
" Path(pathToFolder).mkdir(parents=True, exist_ok=True)\n",
" pathToFolder = Path(pathToFolder)\n",
" \n",
" if len(list(pathToFolder.iterdir())) == 0: # Means we havent created any image in this folder yet\n",
" for p in pathToImages.iterdir():\n",
" img = get_a_crop(p, size)\n",
" fileName = str(p).split('/')[-1]\n",
" cv2.imwrite(str(pathToFolder/fileName), img)\n",
" else: #Means we have been here before.\n",
" print(str(pathToFolder) + ' already exists. No images resized.')\n",
" \n",
" return pathToFolder"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/home/ubuntu/data/images-250 already exists. No images resized.\n"
]
},
{
"data": {
"text/plain": [
"[PosixPath('/home/ubuntu/data/images-250/23104_left.jpeg'),\n",
" PosixPath('/home/ubuntu/data/images-250/42184_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/images-250/23287_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/images-250/26100_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/images-250/18101_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/images-250/20499_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/images-250/7544_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/images-250/20255_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/images-250/19949_right.jpeg'),\n",
" PosixPath('/home/ubuntu/data/images-250/40220_left.jpeg')]"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"pathTo250s = createResizedImagesFolder(PATH/'train', PATH/'images-250', 250)\n",
"list(pathTo250s.iterdir())[:10]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Importing X and y, train/valid split (Find a better name for this heading)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(['10_left.jpeg',\n",
" '10_right.jpeg',\n",
" '13_left.jpeg',\n",
" '13_right.jpeg',\n",
" '15_left.jpeg',\n",
" '15_right.jpeg',\n",
" '16_left.jpeg',\n",
" '16_right.jpeg',\n",
" '17_left.jpeg',\n",
" '17_right.jpeg'],\n",
" 35126)"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#PATH/\"trainLabels.csv\"\n",
"#X must consist of full names of images only.\n",
"#path before filename will be added on RetinaDataset.\n",
"df = pd.read_csv(PATH/\"trainLabels.csv\")\n",
"X = list(df['image'])\n",
"X = [filename + '.jpeg' for filename in X]\n",
"X[:10], len(X)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"([0, 0, 0, 0, 1, 2, 4, 4, 0, 1], 35126)"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"y = list(df['level'])\n",
"y[:10], len(y)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(28100, 7026, 28100, 7026)"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from sklearn.model_selection import train_test_split\n",
"#Beware, the line below returns pandas.Series objects. Convert them to lists first.\n",
"X_train, X_valid, y_train, y_valid = train_test_split(X, y, test_size=.2, random_state=0)\n",
"X_train = list(X_train)\n",
"X_valid = list(X_valid)\n",
"y_train = list(y_train)\n",
"y_valid = list(y_valid)\n",
"\n",
"#Checking out this line. It should look okay\n",
"len(X_train), len(X_valid), len(y_train), len(y_valid)"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"#Print an image and label here."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Creating Dataset / DataLoader"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
"class RetinaDataset(Dataset):\n",
" def __init__(self, path, X, y=None, transforms=False):\n",
" self.X = X\n",
" self.y = y #Burada self.y=None yaptığından emin olman lazım çünkü if self.y case'leri mevcut.\n",
" self.transforms = transforms\n",
" self.path = path\n",
" \n",
" def __len__(self):\n",
" return len(self.y)\n",
"\n",
" \n",
" def __getitem__(self, idx):\n",
" path = str(self.path) + \"/\" + str(self.X[idx])\n",
" x = cv2.imread(str(path)).astype(np.float32)\n",
" x = cv2.cvtColor(x, cv2.COLOR_BGR2RGB)/255\n",
" if self.transforms: #Brings a random augmentation.\n",
" rdeg = (np.random.random()-.50)*20\n",
" x = rotate_cv(x, rdeg)\n",
" x = random_crop(x)\n",
" if np.random.random() > 0.5: x = np.fliplr(x).copy()\n",
" else: #Here, she center crops. However, don't do that for the fishes. You'll lose your fish.\n",
" x = center_crop(x)\n",
" x = normalize(x)\n",
" \n",
" if self.y:\n",
" return np.rollaxis(x, 2), self.y[idx]\n",
" else:\n",
" return np.rollaxis(x, 2)\n",
" "
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"(3, 234, 234)\n",
"1\n"
]
},
{
"data": {
"text/plain": [
"<matplotlib.image.AxesImage at 0x7fcbc0e890b8>"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAQUAAAD8CAYAAAB+fLH0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAFklJREFUeJzt3X+Uk9Wdx/H3VxMh6IwQNCwTYFBgO8Vhy7CAiIVW2SKiPdgfdtHTlWq72G091bPbdrE9q3bP2Z7arrbraWtLW1bUFmurVo61Wou2dKtUUJAfOsigBmaGTtCgEyVqInf/uM/UuQjOCDOTRD6vc3KS3DyZfJ/M5DP3PvcmMeccIiJdjip3ASJSWRQKIhJQKIhIQKEgIgGFgogEFAoiEui3UDCzeWa21cxazGxJfz2OiPQt6491CmZ2NPA08CGgFVgLXOCce7LPH0xE+lR/9RSmAy3OuWecc68DtwEL+umxRKQPxfrp56aBnd2utwKnHmxjM9OySpH+97xz7sSeNuqvULADtAUvfDNbDCzup8cXkbfK9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g4Kfp7OrpMdY8EpkSXa4Cno/qq4nnvOpW7pzAdaHHOPeOcex24DVhQ5poOxQJgeXR5OXBeGWsBwDm3Gsjt13ywOhcANztvDTDUzEYOTKVvdZDaD2YBcJtz7jXn3LNAC/7vasA553Y55x6PLueBp4A0VfK8dyl3KKSBnd2ut0ZtlcwBvzWzx8xscdQ2wjm3C/wfBpAqW3Vv72B1Vsvv4bKom72s2xCtIms3s7FAE/Bnqux5L3co2AHaKn065HTn3BTgbODzZja73AX1gWr4PdwIjAMmA7uA66L2iqvdzI4D7gCucM51vt2mB2gr+/Ne7lBoBUZ3uz4KaC9TLb3inGuPzrPAXfiuakdXty86z5avwrd1sDor/vfgnOtwzr3hnNsH/Ig3hwgVVbuZxfGB8FPn3J1Rc1U97+UOhbXABDM7ycyOARYCK8tc00GZ2bFmVtN1GZgLbMbXvCjabBFwd3kq7NHB6lwJXBQdDZ8BvNTV3a0U+421P4J/3sHXvtDMBpnZScAE4NGBrg/8bALwE+Ap59z13W6qrue93Ec68Udgn8YfNf5quevpodaT8Ue6nwC2dNULDAdWAdui82QF1LoC380u4v8jffpgdeK7sd+LfgebgKkVWPstUW0b8S+mkd22/2pU+1bg7DLW/X58938jsCE6za+W573rpBWNIhIo9/BBRCqMQkFEAgoFEQkoFEQkoFAQkYBCQUQCCgURCSgURCTw/4jCia4RvlCgAAAAAElFTkSuQmCC\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"train_ds = RetinaDataset(pathTo250s, X_train, y_train)\n",
"valid_ds = RetinaDataset(pathTo250s, X_valid, y_valid)\n",
"\n",
"#Check if Dataset works properly\n",
"x, y = train_ds[np.random.randint(len(train_ds))]\n",
"print(x.shape), print(y)\n",
"plt.imshow(np.rollaxis(np.rollaxis(x, 2), 2), cmap='gray')"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(28100, 7026)"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(train_ds), len(valid_ds)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
"bs = 64\n",
"train_dl = DataLoader(train_ds, batch_size=bs, shuffle=True)\n",
"valid_dl = DataLoader(valid_ds, batch_size=bs)\n",
"CUDA_LAUNCH_BLOCKING=1"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(torch.Size([64, 3, 234, 234]), torch.Size([64]))"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"x, y = next(iter(train_dl))\n",
"x = x.cuda().float()\n",
"y = y.cuda().float()\n",
"x.shape, y.shape"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Model"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": [
"resnet = models.resnet34(pretrained=True)"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"10\n"
]
},
{
"data": {
"text/plain": [
"[AdaptiveAvgPool2d(output_size=(1, 1)),\n",
" Linear(in_features=512, out_features=1000, bias=True)]"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"layers = list(resnet.children())\n",
"print(len(layers))\n",
"layers[-2:] #Last two layers out of 10 layers"
]
},
{
"cell_type": "code",
"execution_count": 96,
"metadata": {},
"outputs": [],
"source": [
"# This model will be right after the 8th layer of resnet.\n",
"class Net(nn.Module):\n",
" def __init__(self):\n",
" super(Net, self).__init__()\n",
" resnet = models.resnet34(pretrained=True)\n",
" # freezing parameters\n",
" for param in resnet.parameters(): #resnet.parameters() is a generator object.\n",
" param.requires_grad = False\n",
" # convolutional layers of resnet34\n",
" layers = list(resnet.children())[:8]\n",
" #burada top modeldan kasti image'a yakin olan taraf.\n",
" self.top_model = nn.Sequential(*layers).cuda()\n",
" self.fc = nn.Linear(512, 5)\n",
" \n",
" def forward(self, x):\n",
" x = F.relu(self.top_model(x))\n",
" x = nn.AdaptiveAvgPool2d((1,1))(x)\n",
" x = x.view(x.size(0), -1) # flattening \n",
" x = self.fc(x)\n",
" return x"
]
},
{
"cell_type": "code",
"execution_count": 97,
"metadata": {},
"outputs": [],
"source": [
"model = Net().cuda()"
]
},
{
"cell_type": "code",
"execution_count": 98,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(torch.Size([64, 3, 234, 234]), torch.Size([64]), torch.Tensor, torch.Tensor)"
]
},
"execution_count": 98,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"x, y = next(iter(train_dl))\n",
"x = x.cuda().float()\n",
"y = y.cuda().float()\n",
"x.shape, y.shape, type(x), type(y)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## val_metrics"
]
},
{
"cell_type": "code",
"execution_count": 211,
"metadata": {},
"outputs": [],
"source": [
"def val_metrics(model, valid_dl, explanatoryMetrics=True):\n",
" model.eval()\n",
" \n",
" #add more metrics here.\n",
" #Do the 1x overestimation 1x underestimation ,2x over etc etc...\n",
" total = 0\n",
" sum_loss = 0\n",
" correct = 0\n",
" \n",
" labels = []\n",
" preds = []\n",
" \n",
" for x, y in valid_dl:\n",
" x = x.cuda().float()\n",
" y = y.cuda() #bunu .unsqueeze(1) yaptigin an error veriyor.\n",
" out = model(x) #Here, out has a shape of bs x 5. Gotta convert that into one variable.\n",
" \n",
" _, pred = torch.max(out, 1)\n",
" correct += pred.eq(y).sum().item()\n",
" #if above doesnt work use this line\n",
" #correct += pred.eq(y.data).sum().item()\n",
" loss = F.cross_entropy(out, y)\n",
" \n",
" #labels.append(list(y.detach().cpu().numpy()))\n",
" #preds.append(list(pred.detach().cpu().numpy()))\n",
" \n",
" labels += list(y.detach().cpu().numpy())\n",
" preds += list(pred.detach().cpu().numpy())\n",
" \n",
" batch = y.shape[0]\n",
" sum_loss += batch*(loss.item())\n",
" total += batch\n",
" \n",
" \n",
" #Get Quadratic Kappa\n",
" qkappa = metrics.cohen_kappa_score(labels,\n",
" preds,\n",
" weights=\"quadratic\")\n",
" \n",
" #Get Explanatory Metrics\n",
" #predDifferences = preds-labels\n",
" \n",
" return sum_loss/total, correct/total, qkappa #Returns loss, accuracy, quadratic weighted kappa\n",
" #Also return quadratic weighted kappa here."
]
},
{
"cell_type": "code",
"execution_count": 212,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0, 2, 0]\n",
"[1, 1, 1]\n",
"50\n",
"7026\n",
"7026\n",
"<class 'list'>\n",
"<class 'list'>\n",
"7026\n"
]
},
{
"data": {
"text/plain": [
"(2.0065630698794488, 0.0677483632223171, 0.0005831640416987804)"
]
},
"execution_count": 212,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"val_metrics(model, valid_dl)"
]
},
{
"cell_type": "code",
"execution_count": 210,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"7026"
]
},
"execution_count": 210,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Learning Rate Finder"
]
},
{
"cell_type": "code",
"execution_count": 104,
"metadata": {},
"outputs": [],
"source": [
"#Here, what filter does is that, he runs the lambda function for each element in model.paramterers()\n",
"#If it turns out true, it gets into the parameters variable.\n",
"#In other words, parameters has the non-frozen parameters only.\n",
"def get_optimizer(model, lr = 0.01, wd = 0.0): #Brings non-frozen parameters.\n",
" parameters = filter(lambda p: p.requires_grad, model.parameters())\n",
" optim = torch.optim.Adam(parameters, lr=lr, weight_decay=wd)\n",
" return optim\n",
"\n",
"def update_optimizer(optimizer, lr): #Updates the learning rate.\n",
" for i, param_group in enumerate(optimizer.param_groups):\n",
" param_group[\"lr\"] = lr\n",
" \n",
"def save_model(m, p): torch.save(m.state_dict(), p)\n",
" \n",
"def load_model(m, p): m.load_state_dict(torch.load(p))\n",
" \n",
"#Here, this guy increases learning rate bit by bit. Outputs a graph of loss function.\n",
"#In the graph, loss function will go down until a point where it will start to go crazy up and down.\n",
"#In other words, after a value of learning rate, it won't be able to converge. It'll go crazy.\n",
"#You want to pick a learning rate before that point.\n",
"#So that you can converge smoothly.\n",
"#You keep updating the parameters of your model. However, you change learning rate every iteration.\n",
"#number of iterations: number of epochs * batch size\n",
"def LR_range_finder(model, train_dl, lr_low=1e-5, lr_high=0.1, epochs=2):\n",
" losses = []\n",
" p = PATH/\"mode_tmp.pth\"\n",
" save_model(model, str(p))\n",
" iterations = epochs * len(train_dl)\n",
" delta = (lr_high - lr_low)/iterations\n",
" lrs = [lr_low + i*delta for i in range(iterations)]\n",
" model.train()\n",
" ind = 0\n",
" optimizer = get_optimizer(model, lr = lrs[0], wd = 0.0)\n",
" for i in range(epochs):\n",
" for x,y in train_dl:\n",
" update_optimizer(optimizer, lr=lrs[ind])\n",
" x = x.cuda().float()\n",
" y = y.cuda()\n",
" out = model(x)\n",
" loss = F.cross_entropy(out, y)\n",
" \n",
" optimizer.zero_grad()\n",
" loss.backward()\n",
" optimizer.step()\n",
" \n",
" losses.append(loss.item())\n",
" ind +=1\n",
" \n",
" load_model(model, str(p))\n",
" return lrs, losses \n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 107,
"metadata": {},
"outputs": [],
"source": [
"model = Net().cuda() #Bu line ile sanirim modelini GPU'da initialize ediyorsun.\n",
"lrs, losses = LR_range_finder(model, train_dl, lr_low=1e-10, lr_high=1e-3)"
]
},
{
"cell_type": "code",
"execution_count": 108,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAD8CAYAAACMwORRAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAIABJREFUeJzsnXeYJFd57t/TFTp3T06bRtok7SprlcBKgI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XwLwC3Wz3cB+J1q+1jOf210Lm4D8OnlPv4Wn4uLAQwDOA6gx7GPNwP4EcwqqFcCeGoNn4vrAPywlZ+LFp2PN1vvPwPwdcf3pOWfjTP5t5yRez1NP24G8CXr5+8AeD1jjFmPf4NznuFm1cnD1uuVfU3rb15nvQas13xbjX0sJ+1yLtqBZTsXAMA5f55zfrzMOG4G8GVushtAB2NssKFHWpt2ORftwnKfjwes958DeBpmBVyxj1Z/NhbNcop7PU0/5DbcLFg2D6C7yt9WerwbQMR6jdJ9VdrHctIu5wIA3mHdan6HMeYs7bxcLOe5WOo4mk27nAsAuIoxtpcx9iPG2M7FHEQDacn5sOyY9wB4cBHjaDuWU9zrafpRaZtGPV7vOJpNu5yL+wEMc84vAPAw7AhoOVnOc7HUcTSbdjkXz8Fc4n4hgH+FWdK7FbTqfHwWwGOc88cXMY62YznFvd6mHxsAgDGmAggDmK3yt5Uen4Z566SWPF5tH8tJW5wLzvkM5zxjPf55AJcu6ajOjOU8F0sdR7Npi3PBOY9yzuPWzw8A0JwTrsvIsp8PxthfAOgF8KFFjqP9WC5zH2YrvqMwJzfERMbOkm1+D8WTI9+yft6J4smRozAnRiq+JoBvo3gS8Xer7WM5/7XRuRh07O/tAHav9nPheM3jKJ5EfAuKJ82eXsPnYgD2GpjLAZwUv6/m8wHg/QCeAOAt2UfLPxtndP6W+c16M4BDMGerP2Y9dieAt1o/e2AK0WGYExpnO/72Y9bfvQLgTdVe03r8bOs1Dluv6a61jzV4Lv4GwH7rA/4ogHPWwLn4nzAjMQNm9PUF6/H/374d2kAIBUEAHXo6RU3UcF1cT0gS2kFgvjiLggzvJWt+vppsxu2U5Df+70k+L85i+duLNcl8RxY35HGMt23M90m7cXVcqAIUcqEKUEi5AxRS7gCFlDtAIeUOUEi5AxRS7gCFlDtAoRP+eEtOHO64ygAAAABJRU5ErkJggg==\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"plt.plot(lrs[:200], losses[:200])\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Train"
]
},
{
"cell_type": "code",
"execution_count": 213,
"metadata": {},
"outputs": [],
"source": [
"def train(model, epochs=5, learning_rate=0.01):\n",
" optimizer = get_optimizer(model, lr = learning_rate, wd =0)\n",
" for i in range(epochs):\n",
" model.train() #Do this here because in val_metrics, model.eval() runs.\n",
" total = 0\n",
" sum_loss = 0\n",
" for x, y in train_dl:\n",
" x = x.cuda().float()\n",
" y = y.cuda()\n",
" out = model(x)\n",
" \n",
" loss = F.cross_entropy(out, y)\n",
" \n",
" optimizer.zero_grad()\n",
" loss.backward()\n",
" optimizer.step()\n",
" \n",
" batch = y.shape[0]\n",
" total += batch\n",
" sum_loss += batch*(loss.item())\n",
" \n",
" val_loss, val_acc, val_kappa = val_metrics(model, valid_dl) #Her bir epoch'da validation set ile test ediyorsun.\n",
" print(\"train loss %.3f val loss %.3f val accuracy %.3f val kappa %.3f\" % (sum_loss/total, val_loss, val_acc, val_kappa))\n",
" "
]
},
{
"cell_type": "code",
"execution_count": 214,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0, 2, 0]\n",
"[0, 0, 3]\n",
"50\n",
"7026\n",
"7026\n",
"<class 'list'>\n",
"<class 'list'>\n",
"7026\n",
"train loss 0.935 val loss 1.042 val accuracy 0.623 val kappa 0.329\n",
"[0, 2, 0]\n",
"[0, 0, 2]\n",
"50\n",
"7026\n",
"7026\n",
"<class 'list'>\n",
"<class 'list'>\n",
"7026\n",
"train loss 0.872 val loss 0.913 val accuracy 0.681 val kappa 0.381\n",
"[0, 2, 0]\n",
"[0, 0, 2]\n",
"50\n",
"7026\n",
"7026\n",
"<class 'list'>\n",
"<class 'list'>\n",
"7026\n",
"train loss 0.865 val loss 1.040 val accuracy 0.605 val kappa 0.295\n",
"[0, 2, 0]\n",
"[0, 0, 2]\n",
"50\n",
"7026\n",
"7026\n",
"<class 'list'>\n",
"<class 'list'>\n",
"7026\n",
"train loss 0.876 val loss 0.963 val accuracy 0.622 val kappa 0.329\n",
"[0, 2, 0]\n",
"[0, 0, 2]\n",
"50\n",
"7026\n",
"7026\n",
"<class 'list'>\n",
"<class 'list'>\n",
"7026\n",
"train loss 0.907 val loss 0.911 val accuracy 0.709 val kappa 0.366\n"
]
}
],
"source": [
"model = Net().cuda()\n",
"train(model)"
]
},
{
"cell_type": "code",
"execution_count": 215,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0, 2, 0]\n",
"[0, 0, 2]\n",
"50\n",
"7026\n",
"7026\n",
"<class 'list'>\n",
"<class 'list'>\n",
"7026\n"
]
},
{
"data": {
"text/plain": [
"(0.9108756109584338, 0.7090805579276971, 0.36617075551337064)"
]
},
"execution_count": 215,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"val_metrics(model, valid_dl)"
]
},
{
"cell_type": "code",
"execution_count": 216,
"metadata": {},
"outputs": [],
"source": [
"#modelin parametrelerini True ya da False yapiyorsun. Tüm parametreleri ama.\n",
"#O yüzden bunu modelin bir kısmını seçip run ediyorsun.\n",
"#Mesela Sequential modelin birkaç layerını seçip kullanabilirsin.\n",
"#a layer is a model too, I think\n",
"def set_trainable_attr(m, b=True): #b=True yani it unfreezes by default.\n",
" for p in m.parameters(): p.requires_grad = b\n",
" \n",
"def unfreeze(model, l):\n",
" top_model = model.top_model\n",
" set_trainable_attr(top_model[l]) #Mesela top_model içinde layerler olan bir list. İstediğin layerı unfreeze et.\n",
" \n",
"#Zaten 8 layer var. 7 ve 6. indexdekiler en sonuncuları.\n",
"unfreeze(model, 7)\n",
"unfreeze(model, 6)"
]
},
{
"cell_type": "code",
"execution_count": 217,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0, 2, 0]\n",
"[0, 0, 0]\n",
"50\n",
"7026\n",
"7026\n",
"<class 'list'>\n",
"<class 'list'>\n",
"7026\n",
"train loss 0.750 val loss 0.727 val accuracy 0.772 val kappa 0.498\n",
"[0, 2, 0]\n",
"[0, 0, 0]\n",
"50\n",
"7026\n",
"7026\n",
"<class 'list'>\n",
"<class 'list'>\n",
"7026\n",