---
# System prepended metadata

title: 2022 / 11 / 7 進度
tags: [實驗]

---

# 2022 / 11 / 7 進度

###### tags: `實驗`
[TOC]

### 資料方面

<font color=blue>train patient</font>
33 去掉，train變差
44 1113去掉，train變好
87 到valid變差

<font color=blue>valid patient</font>
17 在train/valid都降
17 0422加到train變好


## 重要改動
1. !!! 將檔名Patchnum往前放，相鄰的圖片才可能會是同病人同部位圖片
PID_Date_Code_<font color=red>Patchnum</font>.png    改為
PID_<font color=red>Patchnum</font>_Date_Code.png

2. 確認自組的fcos和torchvision結果一樣
3. 加入map30
4. 改train_one_epoch、evaluate、convert_to_coco_api 吃2張圖
5. 加入了病人前一次的圖片在object detection model

### png result
解決讀grayscale和rgb結果不同的問題，把格式都存成png就對了(讀出來值相同)
No Aug :
| - | mAP50 Train | mAP50 Valid  | mAP30 Valid  |
| -------- | -------- | -------- | -------- | 
| Base AdamW at(4) | 0.612 | 0.5408 | 0.5947
| Overlap resize256 at(2) | - | 0.4891 |
| Overlap 280 at(6) | 0.785 | 0.5300 |
| moresample 256 at(10) | 0.923 | 0.5520 |
| <font color=red>two images 256 at(7)</font> | 0.798 | 0.5420 |
| two images 8:2 at(6) |  | 0.5520 | 0.5840 |
| two images 789 at(12) |  | 0.5470 | 0.5844 |

### 結論 : 
1. 加前一張圖片
2. patch moresample 256 (切14張)
有提升但是提升不多
每次AUGMENTATION前設定Random seed可以使dataset內的兩張圖片使用相同的augmentation


## 重新整理png資料(還沒整理完) 
<font size=5>圖片多一個box : </font>
=train=
BS00018_20140426_783c
BS00042_20140930_4970
BS00042_20151002_70d6
BS00042_20161006_2a50
=valid=
BS00075_20170628_1a6c

<font size=5>圖片bbox過大 : </font>
BS00017_20110113_53aa
BS00017_20110422_fec5
BS00017_20111219_94c6
BS00033_20150421_bc40
BS00033_20150828_d7cf
BS00033_20151209_fdaa
BS00033_20160303_6f9b
BS00044_20101104_6218
BS00053_20130521_323f
BS00053_20130828_78b3
BS00053_20131108_a7df
BS00053_20140311_d1a0
BS00053_20140624_8137
BS00053_20141031_c04f
BS00079_20130408_899c
BS00079_20140828_8524
BS00083_20111101_527d
BS00083_20120829_ae3d
BS00083_20121219_4d4a
BS00101_20151116_d104
BS00125_20190429_b995
BS00131_20160615_ca0e
BS00152_20181119_f830
BS00152_20181221_beab
BS00152_20190717_cb01
BS00153_20170810_a6af
BS00169_20190130_8d0f
BS00194_20101015_cd04
BS00194_20110425_d50c
BS00201_20161216_51bc
<font size=5>圖片bbox過多 : </font>
BS00017_20100930_5d7f
BS00017_20110113_53aa
BS00017_20110422_fec5
BS00017_20111219_94c6





