Publish complete OCT stream/fold model collection

#2
This view is limited to 50 files because it contains too many changes. See the raw diff here.
Files changed (50) hide show
  1. README.md +239 -87
  2. historical/image-classification-2-stream-1/README.md +45 -2
  3. historical/image-classification-2/README.md +45 -2
  4. historical/image-classification-3/README.md +45 -2
  5. historical/image-classification-4/README.md +45 -2
  6. historical/image-classification-6/README.md +45 -2
  7. historical/image-classification-ms-2/README.md +45 -2
  8. historical/image-classification/README.md +45 -2
  9. models/fusion_2_color/fold_0/README.md +154 -8
  10. models/fusion_2_color/fold_1/README.md +154 -8
  11. models/fusion_2_color/fold_2/README.md +154 -8
  12. models/fusion_2_color/fold_3/README.md +154 -8
  13. models/fusion_2_color/fold_4/README.md +154 -8
  14. models/fusion_2_color/fold_5/README.md +154 -8
  15. models/fusion_2_color/fold_6/README.md +154 -8
  16. models/fusion_2_color/fold_7/README.md +154 -8
  17. models/fusion_2_color/fold_8/README.md +154 -8
  18. models/fusion_2_color/fold_9/README.md +154 -8
  19. models/fusion_2_cross/fold_0/README.md +154 -8
  20. models/fusion_2_cross/fold_1/README.md +154 -8
  21. models/fusion_2_cross/fold_2/README.md +154 -8
  22. models/fusion_2_cross/fold_3/README.md +154 -8
  23. models/fusion_2_cross/fold_4/README.md +154 -8
  24. models/fusion_2_cross/fold_5/README.md +154 -8
  25. models/fusion_2_cross/fold_6/README.md +154 -8
  26. models/fusion_2_cross/fold_7/README.md +154 -8
  27. models/fusion_2_cross/fold_8/README.md +154 -8
  28. models/fusion_2_cross/fold_9/README.md +154 -8
  29. models/fusion_2_gray/fold_0/README.md +154 -8
  30. models/fusion_2_gray/fold_1/README.md +154 -8
  31. models/fusion_2_gray/fold_2/README.md +154 -8
  32. models/fusion_2_gray/fold_3/README.md +154 -8
  33. models/fusion_2_gray/fold_4/README.md +154 -8
  34. models/fusion_2_gray/fold_5/README.md +154 -8
  35. models/fusion_2_gray/fold_6/README.md +154 -8
  36. models/fusion_2_gray/fold_7/README.md +154 -8
  37. models/fusion_2_gray/fold_8/README.md +154 -8
  38. models/fusion_2_gray/fold_9/README.md +154 -8
  39. models/fusion_3_color/fold_0/README.md +154 -8
  40. models/fusion_3_color/fold_1/README.md +154 -8
  41. models/fusion_3_color/fold_2/README.md +154 -8
  42. models/fusion_3_color/fold_3/README.md +154 -8
  43. models/fusion_3_color/fold_4/README.md +154 -8
  44. models/fusion_3_color/fold_5/README.md +154 -8
  45. models/fusion_3_color/fold_6/README.md +154 -8
  46. models/fusion_3_color/fold_7/README.md +154 -8
  47. models/fusion_3_color/fold_8/README.md +154 -8
  48. models/fusion_3_color/fold_9/README.md +154 -8
  49. models/fusion_3_gray/fold_0/README.md +154 -8
  50. models/fusion_3_gray/fold_1/README.md +154 -8
README.md CHANGED
@@ -1,87 +1,239 @@
1
- ---
2
- tags:
3
- - pytorch
4
- - timm
5
- - multistream
6
- - research
7
- ---
8
-
9
- # ERM-AI complete research model collection
10
-
11
- ## Official code and instructions
12
- - [GitHub repository](https://github.com/ntuhophai/ERM-AI)
13
- - [Inference instructions](https://github.com/ntuhophai/ERM-AI/blob/main/new/INFERENCE.md)
14
-
15
- This collection preserves 167 model files: 160 loadable model/fold entries and 7 historical tensor archives.
16
- A loadable entry means that its tensors match the declared architecture; it does not establish clinical validity or independent test performance.
17
-
18
- ## Layout
19
-
20
- ```text
21
- catalog.json
22
- modeling_multistream.py
23
- README.md
24
- requirements.txt
25
- models/<condition>/fold_<0-9>/{model.safetensors,config.json,README.md}
26
- historical/<project>/{model.safetensors,config.json,README.md}
27
- ```
28
-
29
- ## Conditions and ordered streams
30
-
31
- | Condition | Ordered streams | Tensor resize antialias | Profile evidence / limits |
32
- |---|---|---|---|
33
- | single_vertical | _vertical | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
34
- | single_horizontal | _horizontal | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
35
- | single_color_full | color_full | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
36
- | single_color_inner | color_inner | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
37
- | single_color_outer | color_outer | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
38
- | single_gray_full | gray_full | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
39
- | single_gray_inner | gray_inner | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
40
- | single_gray_outer | gray_outer | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
41
- | fusion_2_cross | _vertical, _horizontal | True | Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1. |
42
- | fusion_2_color | color_inner, color_outer | True | Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. |
43
- | fusion_2_gray | gray_inner, gray_outer | True | Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. |
44
- | fusion_3_color | color_inner, color_outer, color_full | True | Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. |
45
- | fusion_3_gray | gray_inner, gray_outer, gray_full | True | Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. |
46
- | fusion_4 | _vertical, _horizontal, color_full, gray_full | True | Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. |
47
- | fusion_6 | color_inner, color_outer, color_full, gray_inner, gray_outer, gray_full | True | Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. |
48
- | fusion_8 | _vertical, _horizontal, color_full, color_inner, color_outer, gray_full, gray_inner, gray_outer | False | Order follows saved config.yaml; saved eight-stream environment uses torchvision 0.16.2, whose Tensor Resize default was not antialiased. |
49
-
50
- Each condition contains the zero-based folds declared in catalog.json. Each stream has its own ResNet50 backbone; fusion concatenates pooled features and applies an MLP classifier. Single-stream models classify the pooled feature directly.
51
-
52
- ## Architecture and preprocessing
53
-
54
- Single-stream ResNet50 maps a global pooled 2048-dimensional feature to two classes. Fusion models concatenate one feature per stream and use Linear(N*2048, 2048), ReLU, Linear(2048, 2048), and Linear(2048, 2).
55
- Input tensors have shape [batch, streams, 3, 448, 448]. Class mapping: {"bad": 0, "good": 1}. Softmax converts logits into class probabilities.
56
- RGB resize backend: tensor; resize size: 448; bilinear interpolation and center crop. Normalization mean: [0.485, 0.456, 0.406]; std: [0.229, 0.224, 0.225]. Condition-specific antialias is listed above and saved in config.json.
57
-
58
- ## Inference
59
-
60
- Clone the code repository and run from its new/ directory:
61
-
62
- ```bash
63
- git clone https://github.com/ntuhophai/ERM-AI.git
64
- cd ERM-AI/new
65
- python -m pip install -r requirements.txt
66
- python tools/infer_published.py --repo ntuhophai/ERM-AI --list
67
- python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 0 --root /path/to/cases --output predictions/single_gray_inner_fold0
68
- python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --all-folds --root /path/to/cases --output predictions/fusion_8
69
- ```
70
-
71
- The collection is available on the main branch.
72
- For reproducible downloads, pin --revision to a model repository commit. Predictions include per-class probabilities in the saved class index order.
73
- Case folders must provide one matching image per required stream. Both class/case/image folders and unlabeled case/image folders are supported.
74
- Use --ensemble only when you explicitly want a mean of the selected models' probabilities. This is prediction on one cohort, not out-of-fold validation.
75
-
76
- Historical entries are tensor-only because their original fold/stream settings were not saved. They are included for completeness but are not automatically inferable.
77
-
78
- ## Provenance and limits
79
-
80
- These are legacy research weights. Earlier experiments used case-level random folds, with identified patient-overlap concerns, and selected checkpoints using validation scores. Do not label those scores as patient-independent cross-validation results.
81
- Class names bad/good are recorded labels; do not infer healthy/diseased meanings without the study definition.
82
- Profiles are explicit declarations; tensor keys/shapes cannot prove historical stream semantics or preprocessing. In particular, four-/six-stream runtime versions were not retained; their antialias choice must be checked against original records.
83
- No model license was guessed. Complete the study-specific model documentation/license before treating this as a clinical release.
84
-
85
- Original code snapshot used for this release:
86
- [pinned source snapshot](https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new).
87
- For current instructions, use the official GitHub repository linked above.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
+ tags:
7
+ - pytorch
8
+ - timm
9
+ - multistream
10
+ - research
11
+ ---
12
+
13
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
14
+
15
+ <a id="english"></a>
16
+
17
+ # ERM-AI complete research model collection
18
+
19
+ This collection preserves 167 model weight files: 160 loadable model/fold entries and 7 historical tensor archives.
20
+ A loadable entry means that its tensors match the declared architecture; it does not establish clinical validity or independent test performance.
21
+
22
+ ## Layout
23
+
24
+ ```text
25
+ catalog.json
26
+ modeling_multistream.py
27
+ README.md
28
+ requirements.txt
29
+ models/<condition>/fold_<0-9>/{model.safetensors,config.json,README.md}
30
+ historical/<project>/{model.safetensors,config.json,README.md}
31
+ ```
32
+
33
+ ## Conditions and ordered streams
34
+
35
+ | Condition | Ordered streams | Tensor resize antialias | Profile evidence / limits |
36
+ |---|---|---|---|
37
+ | single_vertical | _vertical | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
38
+ | single_horizontal | _horizontal | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
39
+ | single_color_full | color_full | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
40
+ | single_color_inner | color_inner | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
41
+ | single_color_outer | color_outer | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
42
+ | single_gray_full | gray_full | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
43
+ | single_gray_inner | gray_inner | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
44
+ | single_gray_outer | gray_outer | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. |
45
+ | fusion_2_cross | _vertical, _horizontal | True | Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1. |
46
+ | fusion_2_color | color_inner, color_outer | True | Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. |
47
+ | fusion_2_gray | gray_inner, gray_outer | True | Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. |
48
+ | fusion_3_color | color_inner, color_outer, color_full | True | Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. |
49
+ | fusion_3_gray | gray_inner, gray_outer, gray_full | True | Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. |
50
+ | fusion_4 | _vertical, _horizontal, color_full, gray_full | True | Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. |
51
+ | fusion_6 | color_inner, color_outer, color_full, gray_inner, gray_outer, gray_full | True | Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. |
52
+ | fusion_8 | _vertical, _horizontal, color_full, color_inner, color_outer, gray_full, gray_inner, gray_outer | False | Order follows saved config.yaml; saved eight-stream environment uses torchvision 0.16.2, whose Tensor Resize default was not antialiased. |
53
+
54
+ Each condition contains the zero-based folds declared in `catalog.json`. Each stream has its own backbone; fusion concatenates pooled features and applies an MLP classifier. Single-stream models classify the pooled feature directly.
55
+
56
+ ## Architecture and preprocessing
57
+
58
+ Single-stream ResNet50 maps a global pooled 2048-dimensional feature to two classes. Fusion models concatenate one feature per stream and use Linear(N*2048, 2048), ReLU, Linear(2048, 2048), and Linear(2048, 2).
59
+ Input tensors have shape [batch, streams, 3, 448, 448]. Class mapping: {"bad": 0, "good": 1}. Softmax converts logits into class probabilities.
60
+ RGB resize backend: tensor; resize size: 448; bilinear interpolation and center crop. Normalization mean: [0.485, 0.456, 0.406]; std: [0.229, 0.224, 0.225]. Condition-specific antialias is listed above and saved in `config.json`.
61
+
62
+ ## Inference
63
+
64
+ Clone the code repository and run from its `new/` directory:
65
+
66
+ ```bash
67
+ python -m pip install -r requirements.txt
68
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --list
69
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 0 --root /path/to/cases --output predictions/single_gray_inner_fold0
70
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --all-folds --root /path/to/cases --output predictions/fusion_8
71
+ ```
72
+
73
+ Before the model PR is merged, add `--revision refs/pr/<number>` to every Hub command above. After merge, the default `main` revision can be used. Wait for all models and `catalog.json` to finish uploading before inference.
74
+ Only selected fold weights/configurations are downloaded. Pin `--revision` to a model repository commit for reproducible downloads. Predictions include per-class probabilities in the saved class index order.
75
+ Case folders must provide one matching image per required stream. Both class/case/image folders and unlabeled case/image folders are supported.
76
+ Use `--ensemble` only when you explicitly want a mean of the selected models' probabilities. This is prediction on one cohort, not out-of-fold validation.
77
+
78
+ Archive entries under `historical/` are tensor-only because their original fold/stream settings were not saved. They are included for completeness but are not automatically inferable.
79
+
80
+ ## Provenance and limits
81
+
82
+ These are legacy research weights. Earlier experiments used case-level random folds, with identified patient-overlap concerns, and selected checkpoints using validation scores. Do not label those scores as patient-independent cross-validation results.
83
+ Class names bad/good are recorded labels; do not infer healthy/diseased meanings without the study definition.
84
+ Profiles are explicit declarations; tensor keys/shapes cannot prove historical stream semantics or preprocessing. In particular, four-/six-stream runtime versions were not retained; their antialias choice must be checked against original records.
85
+ No model license was guessed. Complete the study-specific model documentation/license before treating this as a clinical release.
86
+
87
+ Public code snapshot: [code and complete usage instructions](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new). See `INFERENCE.md` and `MODEL_CATALOG.md` in that snapshot.
88
+
89
+ ---
90
+
91
+ <a id="traditional-chinese"></a>
92
+
93
+ # ERM-AI 完整研究模型集合
94
+
95
+ 本集合保存 167 個模型權重檔案,包含 160 個可載入的模型/fold 項目,以及 7 個歷史張量封存項目。
96
+ 「可載入」僅表示張量符合宣告的模型架構,不代表已證實臨床有效性或獨立測試效能。
97
+
98
+ ## 目錄結構
99
+
100
+ ```text
101
+ catalog.json
102
+ modeling_multistream.py
103
+ README.md
104
+ requirements.txt
105
+ models/<condition>/fold_<0-9>/{model.safetensors,config.json,README.md}
106
+ historical/<project>/{model.safetensors,config.json,README.md}
107
+ ```
108
+
109
+ ## 實驗條件與輸入流順序
110
+
111
+ | 條件 | 輸入流順序 | 張量縮放抗鋸齒 | 設定依據/限制 |
112
+ |---|---|---|---|
113
+ | single_vertical | _vertical | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 |
114
+ | single_horizontal | _horizontal | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 |
115
+ | single_color_full | color_full | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 |
116
+ | single_color_inner | color_inner | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 |
117
+ | single_color_outer | color_outer | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 |
118
+ | single_gray_full | gray_full | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 |
119
+ | single_gray_inner | gray_inner | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 |
120
+ | single_gray_outer | gray_outer | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 |
121
+ | fusion_2_cross | _vertical, _horizontal | True | 順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。 |
122
+ | fusion_2_color | color_inner, color_outer | True | 順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 |
123
+ | fusion_2_gray | gray_inner, gray_outer | True | 順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 |
124
+ | fusion_3_color | color_inner, color_outer, color_full | True | 順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 |
125
+ | fusion_3_gray | gray_inner, gray_outer, gray_full | True | 順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 |
126
+ | fusion_4 | _vertical, _horizontal, color_full, gray_full | True | 順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 |
127
+ | fusion_6 | color_inner, color_outer, color_full, gray_inner, gray_outer, gray_full | True | 順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 |
128
+ | fusion_8 | _vertical, _horizontal, color_full, color_inner, color_outer, gray_full, gray_inner, gray_outer | False | 順序依保存的 config.yaml;保存的八流環境使用 torchvision 0.16.2,其張量 Resize 預設不啟用抗鋸齒。 |
129
+
130
+ 各條件包含 `catalog.json` 宣告的 fold,編號從 0 開始。各輸入流使用獨立的骨幹網路;融合模型串接池化後的特徵,再以多層感知器(MLP)分類。單流模型則直接以池化後的特徵分類。
131
+
132
+ ## 模型架構與前處理
133
+
134
+ 單流 ResNet50 將全域池化後的 2048 維特徵映射至兩個類別。融合模型串接各輸入流的特徵,再依序使用 Linear(N*2048, 2048)、ReLU、Linear(2048, 2048) 與 Linear(2048, 2)。
135
+ 輸入張量形狀為 [batch, streams, 3, 448, 448]。類別對應:{"bad": 0, "good": 1}。使用 softmax 將 logits 轉為各類別機率。
136
+ RGB 影像縮放後端:tensor;縮放尺寸:448;使用雙線性插值與中心裁切。正規化平均值:[0.485, 0.456, 0.406];標準差:[0.229, 0.224, 0.225]。各條件的抗鋸齒設定列於上表,並保存在 `config.json`。
137
+
138
+ ## 推論
139
+
140
+ 複製程式碼儲存庫後,在其中的 `new/` 目錄執行:
141
+
142
+ ```bash
143
+ python -m pip install -r requirements.txt
144
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --list
145
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 0 --root /path/to/cases --output predictions/single_gray_inner_fold0
146
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --all-folds --root /path/to/cases --output predictions/fusion_8
147
+ ```
148
+
149
+ 模型 PR 合併前,請在上述每個存取 Hub 的指令加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。請等所有模型與 `catalog.json` 上傳完成後再執行推論。
150
+ 僅下載所選 fold 的權重與設定。為確保下載結果可重現,請使用 `--revision` 指定模型儲存庫的 commit。預測結果依保存的類別索引順序包含各類別機率。
151
+ 每個病例目錄須為各必要輸入流提供一張對應影像。同時支援 class/case/image 與不含類別標籤的 case/image 目錄結構。
152
+ 若要平均所選模型的預測機率,再使用 `--ensemble`。這是在同一群體上進行預測,並非 out-of-fold 驗證。
153
+
154
+ `historical/` 下的封存項目因未保存原始 fold/輸入流設定,因此僅封存張量,以保留完整紀錄;無法自動用於推論。
155
+
156
+ ## 來源與限制
157
+
158
+ 這些權重來自歷史研究實驗。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證分數選取 checkpoint。不得將這些分數稱為病人互斥的交叉驗證結果。
159
+ bad/good 是原始紀錄中的類別標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
160
+ Profile 是明確宣告的設定;張量的鍵與形狀無法證實歷史輸入流語意或前處理方式。尤其四流/六流實驗未保留執行環境版本,其抗鋸齒選擇須依原始紀錄核對。
161
+ 未推定或擅自指定模型授權。將本集合視為臨床用途的發布版本前,須完成該研究的模型文件與授權說明。
162
+
163
+ 公開程式碼快照:[程式碼與完整使用說明](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)。另請參閱該快照中的 `INFERENCE.md` 與 `MODEL_CATALOG.md`。
164
+
165
+ ---
166
+
167
+ <a id="japanese"></a>
168
+
169
+ # ERM-AI 研究モデルの完全コレクション
170
+
171
+ 本コレクションには 167 個のモデル重みファイルを保存しています。内訳は、読み込み可能なモデル/fold が 160 件、過去のテンソルアーカイブが 7 件です。
172
+ 「読み込み可能」とは、テンソルが宣言されたモデル構造に適合することを意味します。臨床的妥当性や独立したテストでの性能が確認されたことを意味するものではありません。
173
+
174
+ ## ディレクトリ構成
175
+
176
+ ```text
177
+ catalog.json
178
+ modeling_multistream.py
179
+ README.md
180
+ requirements.txt
181
+ models/<condition>/fold_<0-9>/{model.safetensors,config.json,README.md}
182
+ historical/<project>/{model.safetensors,config.json,README.md}
183
+ ```
184
+
185
+ ## 実験条件とストリームの順序
186
+
187
+ | 条件 | ストリームの順序 | テンソルのリサイズ時のアンチエイリアス | 設定の根拠/制約 |
188
+ |---|---|---|---|
189
+ | single_vertical | _vertical | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 |
190
+ | single_horizontal | _horizontal | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 |
191
+ | single_color_full | color_full | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 |
192
+ | single_color_inner | color_inner | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 |
193
+ | single_color_outer | color_outer | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 |
194
+ | single_gray_full | gray_full | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 |
195
+ | single_gray_inner | gray_inner | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 |
196
+ | single_gray_outer | gray_outer | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 |
197
+ | fusion_2_cross | _vertical, _horizontal | True | 順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 |
198
+ | fusion_2_color | color_inner, color_outer | True | 順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 |
199
+ | fusion_2_gray | gray_inner, gray_outer | True | 順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 |
200
+ | fusion_3_color | color_inner, color_outer, color_full | True | 順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 |
201
+ | fusion_3_gray | gray_inner, gray_outer, gray_full | True | 順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 |
202
+ | fusion_4 | _vertical, _horizontal, color_full, gray_full | True | 順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 |
203
+ | fusion_6 | color_inner, color_outer, color_full, gray_inner, gray_outer, gray_full | True | 順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 |
204
+ | fusion_8 | _vertical, _horizontal, color_full, color_inner, color_outer, gray_full, gray_inner, gray_outer | False | 順序は保存された config.yaml に基づきます。保存された 8 ストリーム環境では torchvision 0.16.2 を使用しており、テンソルの Resize は既定でアンチエイリアスを適用しません。 |
205
+
206
+ 各条件には、`catalog.json` に宣言された 0 始まりの fold が含まれます。各ストリームは独立したバックボーンを持ち、融合モデルはプーリング後の特徴を連結して多層パーセプトロン(MLP)で分類します。単��ストリームモデルはプーリング後の特徴を直接分類します。
207
+
208
+ ## モデル構造と前処理
209
+
210
+ 単一ストリームの ResNet50 は、グローバルプーリング後の 2048 次元特徴を 2 クラスに写像します。融合モデルは各ストリームの特徴を連結し、Linear(N*2048, 2048)、ReLU、Linear(2048, 2048)、Linear(2048, 2) を順に適用します。
211
+ 入力テンソルの形状は [batch, streams, 3, 448, 448] です。クラスの対応関係:{"bad": 0, "good": 1}。softmax で logits を各クラスの確率に変換します。
212
+ RGB 画像のリサイズ処理:tensor。リサイズサイズ:448。双線形補間と中央クロップを使用します。正規化の平均値:[0.485, 0.456, 0.406]。標準偏差:[0.229, 0.224, 0.225]。条件ごとのアンチエイリアス設定は上表と `config.json` に記録されています。
213
+
214
+ ## 推論
215
+
216
+ コードリポジトリをクローンし、`new/` ディレクトリで実行してください。
217
+
218
+ ```bash
219
+ python -m pip install -r requirements.txt
220
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --list
221
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 0 --root /path/to/cases --output predictions/single_gray_inner_fold0
222
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --all-folds --root /path/to/cases --output predictions/fusion_8
223
+ ```
224
+
225
+ モデルの PR がマージされる前は、上記の Hub にアクセスする各コマンドに `--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。すべてのモデルと `catalog.json` のアップロードが完了してから推論を実行してください。
226
+ 選択した fold の重みと設定のみをダウンロードします。再現可能なダウンロードのため、`--revision` でモデルリポジトリのコミットを指定してください。予測結果には、保存されたクラスインデックス順の各クラスの確率が含まれます。
227
+ 各症例フォルダーには、必要なストリームごとに対応する画像を 1 枚用意してください。class/case/image 構成と、クラスラベルのない case/image 構成の両方に対応しています。
228
+ 選択したモデルの予測確率を平均する場合に `--ensemble` を使用してください。同一コホートに対する予測であり、out-of-fold 検証ではありません。
229
+
230
+ `historical/` 配下のアーカイブ項目は、元の fold/ストリーム設定が保存されていないため、テンソルのみを収録しています。記録の完全性を保つためのものであり、自動推論には対応していません。
231
+
232
+ ## 来歴と制約
233
+
234
+ これらは過去の研究で得られた重みです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証スコアに基づいてチェックポイントを選択していました。これらのスコアを、患者単位で独立した交差検証の結果と表記しないでください。
235
+ bad/good は記録されたクラスラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
236
+ プロファイルは明示的に宣言された設定です。テンソルのキーや形状から、過去のストリームの意味や前処理を証明することはできません。特に 4/6 ストリーム実験では実行環境のバージョンが保存されていないため、アンチエイリアスの選択を元の記録と照合する必要があります。
237
+ モデルのライセンスは推測に基づいて指定していません。臨床用途の公開版として扱う前に、本研究固有のモデル文書とライセンスを整備してください。
238
+
239
+ 公開コードのスナップショット:[コードと完全な利用手順](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)。スナップショット内の `INFERENCE.md` と `MODEL_CATALOG.md` も参照してください。
historical/image-classification-2-stream-1/README.md CHANGED
@@ -1,9 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Historical tensor archive
2
 
3
- Condition: historical_image-classification-2-stream-1
4
 
5
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
6
 
7
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
8
 
9
- The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
+ tags:
7
+ - pytorch
8
+ - research
9
+ - tensor-archive
10
+ ---
11
+
12
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
13
+
14
+ <a id="english"></a>
15
+
16
  # Historical tensor archive
17
 
18
+ Condition: `historical_image-classification-2-stream-1`
19
 
20
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
21
 
22
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
23
 
24
+ The collection inference tool rejects this archive entry under `historical/`. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
25
+
26
+ ---
27
+
28
+ <a id="traditional-chinese"></a>
29
+
30
+ # 歷史張量封存項目
31
+
32
+ 條件:`historical_image-classification-2-stream-1`
33
+
34
+ 保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。
35
+
36
+ 原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。
37
+
38
+ 集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。
39
+
40
+ ---
41
+
42
+ <a id="japanese"></a>
43
+
44
+ # 過去のテンソルアーカイブ
45
+
46
+ 条件:`historical_image-classification-2-stream-1`
47
+
48
+ 研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。
49
+
50
+ 元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。
51
+
52
+ コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。
historical/image-classification-2/README.md CHANGED
@@ -1,9 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Historical tensor archive
2
 
3
- Condition: historical_image-classification-2
4
 
5
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
6
 
7
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
8
 
9
- The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
+ tags:
7
+ - pytorch
8
+ - research
9
+ - tensor-archive
10
+ ---
11
+
12
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
13
+
14
+ <a id="english"></a>
15
+
16
  # Historical tensor archive
17
 
18
+ Condition: `historical_image-classification-2`
19
 
20
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
21
 
22
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
23
 
24
+ The collection inference tool rejects this archive entry under `historical/`. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
25
+
26
+ ---
27
+
28
+ <a id="traditional-chinese"></a>
29
+
30
+ # 歷史張量封存項目
31
+
32
+ 條件:`historical_image-classification-2`
33
+
34
+ 保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。
35
+
36
+ 原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。
37
+
38
+ 集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。
39
+
40
+ ---
41
+
42
+ <a id="japanese"></a>
43
+
44
+ # 過去のテンソルアーカイブ
45
+
46
+ 条件:`historical_image-classification-2`
47
+
48
+ 研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。
49
+
50
+ 元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。
51
+
52
+ コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。
historical/image-classification-3/README.md CHANGED
@@ -1,9 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Historical tensor archive
2
 
3
- Condition: historical_image-classification-3
4
 
5
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
6
 
7
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
8
 
9
- The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
+ tags:
7
+ - pytorch
8
+ - research
9
+ - tensor-archive
10
+ ---
11
+
12
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
13
+
14
+ <a id="english"></a>
15
+
16
  # Historical tensor archive
17
 
18
+ Condition: `historical_image-classification-3`
19
 
20
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
21
 
22
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
23
 
24
+ The collection inference tool rejects this archive entry under `historical/`. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
25
+
26
+ ---
27
+
28
+ <a id="traditional-chinese"></a>
29
+
30
+ # 歷史張量封存項目
31
+
32
+ 條件:`historical_image-classification-3`
33
+
34
+ 保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。
35
+
36
+ 原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。
37
+
38
+ 集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。
39
+
40
+ ---
41
+
42
+ <a id="japanese"></a>
43
+
44
+ # 過去のテンソルアーカイブ
45
+
46
+ 条件:`historical_image-classification-3`
47
+
48
+ 研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。
49
+
50
+ 元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。
51
+
52
+ コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。
historical/image-classification-4/README.md CHANGED
@@ -1,9 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Historical tensor archive
2
 
3
- Condition: historical_image-classification-4
4
 
5
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
6
 
7
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
8
 
9
- The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
+ tags:
7
+ - pytorch
8
+ - research
9
+ - tensor-archive
10
+ ---
11
+
12
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
13
+
14
+ <a id="english"></a>
15
+
16
  # Historical tensor archive
17
 
18
+ Condition: `historical_image-classification-4`
19
 
20
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
21
 
22
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
23
 
24
+ The collection inference tool rejects this archive entry under `historical/`. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
25
+
26
+ ---
27
+
28
+ <a id="traditional-chinese"></a>
29
+
30
+ # 歷史張量封存項目
31
+
32
+ 條件:`historical_image-classification-4`
33
+
34
+ 保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。
35
+
36
+ 原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。
37
+
38
+ 集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。
39
+
40
+ ---
41
+
42
+ <a id="japanese"></a>
43
+
44
+ # 過去のテンソルアーカイブ
45
+
46
+ 条件:`historical_image-classification-4`
47
+
48
+ 研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。
49
+
50
+ 元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。
51
+
52
+ コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。
historical/image-classification-6/README.md CHANGED
@@ -1,9 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Historical tensor archive
2
 
3
- Condition: historical_image-classification-6
4
 
5
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
6
 
7
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
8
 
9
- The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
+ tags:
7
+ - pytorch
8
+ - research
9
+ - tensor-archive
10
+ ---
11
+
12
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
13
+
14
+ <a id="english"></a>
15
+
16
  # Historical tensor archive
17
 
18
+ Condition: `historical_image-classification-6`
19
 
20
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
21
 
22
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
23
 
24
+ The collection inference tool rejects this archive entry under `historical/`. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
25
+
26
+ ---
27
+
28
+ <a id="traditional-chinese"></a>
29
+
30
+ # 歷史張量封存項目
31
+
32
+ 條件:`historical_image-classification-6`
33
+
34
+ 保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。
35
+
36
+ 原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。
37
+
38
+ 集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。
39
+
40
+ ---
41
+
42
+ <a id="japanese"></a>
43
+
44
+ # 過去のテンソルアーカイブ
45
+
46
+ 条件:`historical_image-classification-6`
47
+
48
+ 研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。
49
+
50
+ 元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。
51
+
52
+ コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。
historical/image-classification-ms-2/README.md CHANGED
@@ -1,9 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Historical tensor archive
2
 
3
- Condition: historical_image-classification-ms-2
4
 
5
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
6
 
7
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
8
 
9
- The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
+ tags:
7
+ - pytorch
8
+ - research
9
+ - tensor-archive
10
+ ---
11
+
12
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
13
+
14
+ <a id="english"></a>
15
+
16
  # Historical tensor archive
17
 
18
+ Condition: `historical_image-classification-ms-2`
19
 
20
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
21
 
22
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
23
 
24
+ The collection inference tool rejects this archive entry under `historical/`. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
25
+
26
+ ---
27
+
28
+ <a id="traditional-chinese"></a>
29
+
30
+ # 歷史張量封存項目
31
+
32
+ 條件:`historical_image-classification-ms-2`
33
+
34
+ 保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。
35
+
36
+ 原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。
37
+
38
+ 集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。
39
+
40
+ ---
41
+
42
+ <a id="japanese"></a>
43
+
44
+ # 過去のテンソルアーカイブ
45
+
46
+ 条件:`historical_image-classification-ms-2`
47
+
48
+ 研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。
49
+
50
+ 元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。
51
+
52
+ コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。
historical/image-classification/README.md CHANGED
@@ -1,9 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Historical tensor archive
2
 
3
- Condition: historical_image-classification
4
 
5
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
6
 
7
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
8
 
9
- The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
+ tags:
7
+ - pytorch
8
+ - research
9
+ - tensor-archive
10
+ ---
11
+
12
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
13
+
14
+ <a id="english"></a>
15
+
16
  # Historical tensor archive
17
 
18
+ Condition: `historical_image-classification`
19
 
20
  These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted.
21
 
22
  Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration.
23
 
24
+ The collection inference tool rejects this archive entry under `historical/`. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included.
25
+
26
+ ---
27
+
28
+ <a id="traditional-chinese"></a>
29
+
30
+ # 歷史張量封存項目
31
+
32
+ 條件:`historical_image-classification`
33
+
34
+ 保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。
35
+
36
+ 原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。
37
+
38
+ 集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。
39
+
40
+ ---
41
+
42
+ <a id="japanese"></a>
43
+
44
+ # 過去のテンソルアーカイブ
45
+
46
+ 条件:`historical_image-classification`
47
+
48
+ 研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。
49
+
50
+ 元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。
51
+
52
+ コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。
models/fusion_2_color/fold_0/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 0 --root /path/to/cases --output predictions/fusion_2_color_fold0
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_color; zero-based fold: 0.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 0 --root /path/to/cases --output predictions/fusion_2_color_fold0
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_color`; zero-based fold: `0`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## ��入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 0 --root /path/to/cases --output predictions/fusion_2_color_fold0
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_color`;從 0 開始編號的 fold:`0`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 0 --root /path/to/cases --output predictions/fusion_2_color_fold0
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_color`。0 始まりの fold:`0`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_color/fold_1/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 1 --root /path/to/cases --output predictions/fusion_2_color_fold1
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_color; zero-based fold: 1.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 1 --root /path/to/cases --output predictions/fusion_2_color_fold1
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_color`; zero-based fold: `1`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## ��入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 1 --root /path/to/cases --output predictions/fusion_2_color_fold1
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_color`;從 0 開始編號的 fold:`1`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 1 --root /path/to/cases --output predictions/fusion_2_color_fold1
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_color`。0 始まりの fold:`1`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_color/fold_2/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 2 --root /path/to/cases --output predictions/fusion_2_color_fold2
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_color; zero-based fold: 2.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 2 --root /path/to/cases --output predictions/fusion_2_color_fold2
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_color`; zero-based fold: `2`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## ��入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 2 --root /path/to/cases --output predictions/fusion_2_color_fold2
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_color`;從 0 開始編號的 fold:`2`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 2 --root /path/to/cases --output predictions/fusion_2_color_fold2
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_color`。0 始まりの fold:`2`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_color/fold_3/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 3 --root /path/to/cases --output predictions/fusion_2_color_fold3
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_color; zero-based fold: 3.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 3 --root /path/to/cases --output predictions/fusion_2_color_fold3
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_color`; zero-based fold: `3`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## ��入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 3 --root /path/to/cases --output predictions/fusion_2_color_fold3
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_color`;從 0 開始編號的 fold:`3`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 3 --root /path/to/cases --output predictions/fusion_2_color_fold3
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_color`。0 始まりの fold:`3`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_color/fold_4/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 4 --root /path/to/cases --output predictions/fusion_2_color_fold4
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_color; zero-based fold: 4.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 4 --root /path/to/cases --output predictions/fusion_2_color_fold4
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_color`; zero-based fold: `4`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## ��入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 4 --root /path/to/cases --output predictions/fusion_2_color_fold4
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_color`;從 0 開始編號的 fold:`4`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 4 --root /path/to/cases --output predictions/fusion_2_color_fold4
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_color`。0 始まりの fold:`4`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_color/fold_5/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 5 --root /path/to/cases --output predictions/fusion_2_color_fold5
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_color; zero-based fold: 5.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 5 --root /path/to/cases --output predictions/fusion_2_color_fold5
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_color`; zero-based fold: `5`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## ��入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 5 --root /path/to/cases --output predictions/fusion_2_color_fold5
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_color`;從 0 開始編號的 fold:`5`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 5 --root /path/to/cases --output predictions/fusion_2_color_fold5
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_color`。0 始まりの fold:`5`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_color/fold_6/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 6 --root /path/to/cases --output predictions/fusion_2_color_fold6
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_color; zero-based fold: 6.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 6 --root /path/to/cases --output predictions/fusion_2_color_fold6
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_color`; zero-based fold: `6`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## ��入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 6 --root /path/to/cases --output predictions/fusion_2_color_fold6
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_color`;從 0 開始編號的 fold:`6`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 6 --root /path/to/cases --output predictions/fusion_2_color_fold6
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_color`。0 始まりの fold:`6`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_color/fold_7/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 7 --root /path/to/cases --output predictions/fusion_2_color_fold7
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_color; zero-based fold: 7.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 7 --root /path/to/cases --output predictions/fusion_2_color_fold7
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_color`; zero-based fold: `7`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## ��入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 7 --root /path/to/cases --output predictions/fusion_2_color_fold7
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_color`;從 0 開始編號的 fold:`7`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 7 --root /path/to/cases --output predictions/fusion_2_color_fold7
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_color`。0 始まりの fold:`7`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_color/fold_8/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 8 --root /path/to/cases --output predictions/fusion_2_color_fold8
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_color; zero-based fold: 8.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 8 --root /path/to/cases --output predictions/fusion_2_color_fold8
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_color`; zero-based fold: `8`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## ��入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 8 --root /path/to/cases --output predictions/fusion_2_color_fold8
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_color`;從 0 開始編號的 fold:`8`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 8 --root /path/to/cases --output predictions/fusion_2_color_fold8
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_color`。0 始まりの fold:`8`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_color/fold_9/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 9 --root /path/to/cases --output predictions/fusion_2_color_fold9
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_color; zero-based fold: 9.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 9 --root /path/to/cases --output predictions/fusion_2_color_fold9
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_color`; zero-based fold: `9`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## ��入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 9 --root /path/to/cases --output predictions/fusion_2_color_fold9
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_color`;從 0 開始編號的 fold:`9`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_color --fold 9 --root /path/to/cases --output predictions/fusion_2_color_fold9
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_color`。0 始まりの fold:`9`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_cross/fold_0/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["_vertical", "_horizontal"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 0 --root /path/to/cases --output predictions/fusion_2_cross_fold0
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_cross; zero-based fold: 0.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["_vertical", "_horizontal"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 0 --root /path/to/cases --output predictions/fusion_2_cross_fold0
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_cross`; zero-based fold: `0`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["_vertical", "_horizontal"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 0 --root /path/to/cases --output predictions/fusion_2_cross_fold0
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`0`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["_vertical", "_horizontal"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 0 --root /path/to/cases --output predictions/fusion_2_cross_fold0
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_cross`。0 始まりの fold:`0`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_cross/fold_1/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["_vertical", "_horizontal"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 1 --root /path/to/cases --output predictions/fusion_2_cross_fold1
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_cross; zero-based fold: 1.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["_vertical", "_horizontal"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 1 --root /path/to/cases --output predictions/fusion_2_cross_fold1
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_cross`; zero-based fold: `1`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["_vertical", "_horizontal"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 1 --root /path/to/cases --output predictions/fusion_2_cross_fold1
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`1`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["_vertical", "_horizontal"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 1 --root /path/to/cases --output predictions/fusion_2_cross_fold1
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_cross`。0 始まりの fold:`1`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_cross/fold_2/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["_vertical", "_horizontal"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 2 --root /path/to/cases --output predictions/fusion_2_cross_fold2
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_cross; zero-based fold: 2.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["_vertical", "_horizontal"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 2 --root /path/to/cases --output predictions/fusion_2_cross_fold2
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_cross`; zero-based fold: `2`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["_vertical", "_horizontal"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 2 --root /path/to/cases --output predictions/fusion_2_cross_fold2
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`2`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["_vertical", "_horizontal"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 2 --root /path/to/cases --output predictions/fusion_2_cross_fold2
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_cross`。0 始まりの fold:`2`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_cross/fold_3/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["_vertical", "_horizontal"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 3 --root /path/to/cases --output predictions/fusion_2_cross_fold3
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_cross; zero-based fold: 3.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["_vertical", "_horizontal"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 3 --root /path/to/cases --output predictions/fusion_2_cross_fold3
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_cross`; zero-based fold: `3`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["_vertical", "_horizontal"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 3 --root /path/to/cases --output predictions/fusion_2_cross_fold3
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`3`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["_vertical", "_horizontal"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 3 --root /path/to/cases --output predictions/fusion_2_cross_fold3
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_cross`。0 始まりの fold:`3`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_cross/fold_4/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["_vertical", "_horizontal"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 4 --root /path/to/cases --output predictions/fusion_2_cross_fold4
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_cross; zero-based fold: 4.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["_vertical", "_horizontal"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 4 --root /path/to/cases --output predictions/fusion_2_cross_fold4
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_cross`; zero-based fold: `4`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["_vertical", "_horizontal"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 4 --root /path/to/cases --output predictions/fusion_2_cross_fold4
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`4`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["_vertical", "_horizontal"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 4 --root /path/to/cases --output predictions/fusion_2_cross_fold4
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_cross`。0 始まりの fold:`4`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_cross/fold_5/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["_vertical", "_horizontal"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 5 --root /path/to/cases --output predictions/fusion_2_cross_fold5
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_cross; zero-based fold: 5.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["_vertical", "_horizontal"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 5 --root /path/to/cases --output predictions/fusion_2_cross_fold5
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_cross`; zero-based fold: `5`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["_vertical", "_horizontal"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 5 --root /path/to/cases --output predictions/fusion_2_cross_fold5
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`5`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["_vertical", "_horizontal"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 5 --root /path/to/cases --output predictions/fusion_2_cross_fold5
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_cross`。0 始まりの fold:`5`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_cross/fold_6/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["_vertical", "_horizontal"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 6 --root /path/to/cases --output predictions/fusion_2_cross_fold6
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_cross; zero-based fold: 6.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["_vertical", "_horizontal"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 6 --root /path/to/cases --output predictions/fusion_2_cross_fold6
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_cross`; zero-based fold: `6`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["_vertical", "_horizontal"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 6 --root /path/to/cases --output predictions/fusion_2_cross_fold6
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`6`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["_vertical", "_horizontal"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 6 --root /path/to/cases --output predictions/fusion_2_cross_fold6
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_cross`。0 始まりの fold:`6`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_cross/fold_7/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["_vertical", "_horizontal"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 7 --root /path/to/cases --output predictions/fusion_2_cross_fold7
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_cross; zero-based fold: 7.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["_vertical", "_horizontal"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 7 --root /path/to/cases --output predictions/fusion_2_cross_fold7
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_cross`; zero-based fold: `7`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["_vertical", "_horizontal"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 7 --root /path/to/cases --output predictions/fusion_2_cross_fold7
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`7`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["_vertical", "_horizontal"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 7 --root /path/to/cases --output predictions/fusion_2_cross_fold7
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_cross`。0 始まりの fold:`7`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_cross/fold_8/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["_vertical", "_horizontal"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 8 --root /path/to/cases --output predictions/fusion_2_cross_fold8
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_cross; zero-based fold: 8.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["_vertical", "_horizontal"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 8 --root /path/to/cases --output predictions/fusion_2_cross_fold8
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_cross`; zero-based fold: `8`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["_vertical", "_horizontal"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 8 --root /path/to/cases --output predictions/fusion_2_cross_fold8
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`8`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["_vertical", "_horizontal"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 8 --root /path/to/cases --output predictions/fusion_2_cross_fold8
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_cross`。0 始まりの fold:`8`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_cross/fold_9/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["_vertical", "_horizontal"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 9 --root /path/to/cases --output predictions/fusion_2_cross_fold9
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_cross; zero-based fold: 9.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["_vertical", "_horizontal"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 9 --root /path/to/cases --output predictions/fusion_2_cross_fold9
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_cross`; zero-based fold: `9`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["_vertical", "_horizontal"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 9 --root /path/to/cases --output predictions/fusion_2_cross_fold9
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`9`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["_vertical", "_horizontal"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_cross --fold 9 --root /path/to/cases --output predictions/fusion_2_cross_fold9
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_cross`。0 始まりの fold:`9`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_gray/fold_0/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["gray_inner", "gray_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 0 --root /path/to/cases --output predictions/fusion_2_gray_fold0
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_gray; zero-based fold: 0.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["gray_inner", "gray_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 0 --root /path/to/cases --output predictions/fusion_2_gray_fold0
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_gray`; zero-based fold: `0`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["gray_inner", "gray_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 0 --root /path/to/cases --output predictions/fusion_2_gray_fold0
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`0`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["gray_inner", "gray_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 0 --root /path/to/cases --output predictions/fusion_2_gray_fold0
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾��れたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_gray`。0 始まりの fold:`0`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_gray/fold_1/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["gray_inner", "gray_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 1 --root /path/to/cases --output predictions/fusion_2_gray_fold1
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_gray; zero-based fold: 1.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["gray_inner", "gray_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 1 --root /path/to/cases --output predictions/fusion_2_gray_fold1
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_gray`; zero-based fold: `1`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["gray_inner", "gray_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 1 --root /path/to/cases --output predictions/fusion_2_gray_fold1
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`1`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["gray_inner", "gray_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 1 --root /path/to/cases --output predictions/fusion_2_gray_fold1
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾��れたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_gray`。0 始まりの fold:`1`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_gray/fold_2/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["gray_inner", "gray_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 2 --root /path/to/cases --output predictions/fusion_2_gray_fold2
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_gray; zero-based fold: 2.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["gray_inner", "gray_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 2 --root /path/to/cases --output predictions/fusion_2_gray_fold2
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_gray`; zero-based fold: `2`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["gray_inner", "gray_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 2 --root /path/to/cases --output predictions/fusion_2_gray_fold2
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`2`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["gray_inner", "gray_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 2 --root /path/to/cases --output predictions/fusion_2_gray_fold2
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾��れたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_gray`。0 始まりの fold:`2`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_gray/fold_3/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["gray_inner", "gray_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 3 --root /path/to/cases --output predictions/fusion_2_gray_fold3
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_gray; zero-based fold: 3.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["gray_inner", "gray_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 3 --root /path/to/cases --output predictions/fusion_2_gray_fold3
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_gray`; zero-based fold: `3`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["gray_inner", "gray_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 3 --root /path/to/cases --output predictions/fusion_2_gray_fold3
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`3`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["gray_inner", "gray_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 3 --root /path/to/cases --output predictions/fusion_2_gray_fold3
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾��れたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_gray`。0 始まりの fold:`3`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_gray/fold_4/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["gray_inner", "gray_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 4 --root /path/to/cases --output predictions/fusion_2_gray_fold4
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_gray; zero-based fold: 4.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["gray_inner", "gray_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 4 --root /path/to/cases --output predictions/fusion_2_gray_fold4
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_gray`; zero-based fold: `4`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["gray_inner", "gray_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 4 --root /path/to/cases --output predictions/fusion_2_gray_fold4
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`4`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["gray_inner", "gray_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 4 --root /path/to/cases --output predictions/fusion_2_gray_fold4
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾��れたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_gray`。0 始まりの fold:`4`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_gray/fold_5/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["gray_inner", "gray_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 5 --root /path/to/cases --output predictions/fusion_2_gray_fold5
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_gray; zero-based fold: 5.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["gray_inner", "gray_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 5 --root /path/to/cases --output predictions/fusion_2_gray_fold5
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_gray`; zero-based fold: `5`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["gray_inner", "gray_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 5 --root /path/to/cases --output predictions/fusion_2_gray_fold5
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`5`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["gray_inner", "gray_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 5 --root /path/to/cases --output predictions/fusion_2_gray_fold5
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾��れたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_gray`。0 始まりの fold:`5`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_gray/fold_6/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["gray_inner", "gray_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 6 --root /path/to/cases --output predictions/fusion_2_gray_fold6
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_gray; zero-based fold: 6.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["gray_inner", "gray_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 6 --root /path/to/cases --output predictions/fusion_2_gray_fold6
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_gray`; zero-based fold: `6`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["gray_inner", "gray_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 6 --root /path/to/cases --output predictions/fusion_2_gray_fold6
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`6`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["gray_inner", "gray_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 6 --root /path/to/cases --output predictions/fusion_2_gray_fold6
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾��れたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_gray`。0 始まりの fold:`6`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_gray/fold_7/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["gray_inner", "gray_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 7 --root /path/to/cases --output predictions/fusion_2_gray_fold7
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_gray; zero-based fold: 7.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["gray_inner", "gray_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 7 --root /path/to/cases --output predictions/fusion_2_gray_fold7
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_gray`; zero-based fold: `7`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["gray_inner", "gray_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 7 --root /path/to/cases --output predictions/fusion_2_gray_fold7
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`7`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["gray_inner", "gray_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 7 --root /path/to/cases --output predictions/fusion_2_gray_fold7
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾��れたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_gray`。0 始まりの fold:`7`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_gray/fold_8/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["gray_inner", "gray_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 8 --root /path/to/cases --output predictions/fusion_2_gray_fold8
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_gray; zero-based fold: 8.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["gray_inner", "gray_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 8 --root /path/to/cases --output predictions/fusion_2_gray_fold8
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_gray`; zero-based fold: `8`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["gray_inner", "gray_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 8 --root /path/to/cases --output predictions/fusion_2_gray_fold8
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`8`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["gray_inner", "gray_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 8 --root /path/to/cases --output predictions/fusion_2_gray_fold8
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾��れたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_gray`。0 始まりの fold:`8`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_2_gray/fold_9/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["gray_inner", "gray_outer"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 9 --root /path/to/cases --output predictions/fusion_2_gray_fold9
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_2_gray; zero-based fold: 9.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["gray_inner", "gray_outer"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 9 --root /path/to/cases --output predictions/fusion_2_gray_fold9
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_2_gray`; zero-based fold: `9`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["gray_inner", "gray_outer"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 9 --root /path/to/cases --output predictions/fusion_2_gray_fold9
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`9`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["gray_inner", "gray_outer"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_2_gray --fold 9 --root /path/to/cases --output predictions/fusion_2_gray_fold9
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾��れたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_2_gray`。0 始まりの fold:`9`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_3_color/fold_0/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer", "color_full"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 0 --root /path/to/cases --output predictions/fusion_3_color_fold0
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_3_color; zero-based fold: 0.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer", "color_full"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 0 --root /path/to/cases --output predictions/fusion_3_color_fold0
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_3_color`; zero-based fold: `0`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer", "color_full"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 0 --root /path/to/cases --output predictions/fusion_3_color_fold0
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_3_color`;從 0 開始編號的 fold:`0`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer", "color_full"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 0 --root /path/to/cases --output predictions/fusion_3_color_fold0
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していませ��。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_3_color`。0 始まりの fold:`0`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_3_color/fold_1/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer", "color_full"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 1 --root /path/to/cases --output predictions/fusion_3_color_fold1
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_3_color; zero-based fold: 1.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer", "color_full"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 1 --root /path/to/cases --output predictions/fusion_3_color_fold1
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_3_color`; zero-based fold: `1`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer", "color_full"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 1 --root /path/to/cases --output predictions/fusion_3_color_fold1
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_3_color`;從 0 開始編號的 fold:`1`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer", "color_full"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 1 --root /path/to/cases --output predictions/fusion_3_color_fold1
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していませ��。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_3_color`。0 始まりの fold:`1`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_3_color/fold_2/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer", "color_full"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 2 --root /path/to/cases --output predictions/fusion_3_color_fold2
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_3_color; zero-based fold: 2.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer", "color_full"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 2 --root /path/to/cases --output predictions/fusion_3_color_fold2
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_3_color`; zero-based fold: `2`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer", "color_full"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 2 --root /path/to/cases --output predictions/fusion_3_color_fold2
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_3_color`;從 0 開始編號的 fold:`2`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer", "color_full"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 2 --root /path/to/cases --output predictions/fusion_3_color_fold2
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していませ��。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_3_color`。0 始まりの fold:`2`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_3_color/fold_3/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer", "color_full"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 3 --root /path/to/cases --output predictions/fusion_3_color_fold3
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_3_color; zero-based fold: 3.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer", "color_full"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 3 --root /path/to/cases --output predictions/fusion_3_color_fold3
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_3_color`; zero-based fold: `3`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer", "color_full"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 3 --root /path/to/cases --output predictions/fusion_3_color_fold3
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_3_color`;從 0 開始編號的 fold:`3`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer", "color_full"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 3 --root /path/to/cases --output predictions/fusion_3_color_fold3
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していませ��。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_3_color`。0 始まりの fold:`3`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_3_color/fold_4/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer", "color_full"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 4 --root /path/to/cases --output predictions/fusion_3_color_fold4
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_3_color; zero-based fold: 4.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer", "color_full"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 4 --root /path/to/cases --output predictions/fusion_3_color_fold4
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_3_color`; zero-based fold: `4`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer", "color_full"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 4 --root /path/to/cases --output predictions/fusion_3_color_fold4
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_3_color`;從 0 開始編號的 fold:`4`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer", "color_full"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 4 --root /path/to/cases --output predictions/fusion_3_color_fold4
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していませ��。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_3_color`。0 始まりの fold:`4`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_3_color/fold_5/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer", "color_full"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 5 --root /path/to/cases --output predictions/fusion_3_color_fold5
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_3_color; zero-based fold: 5.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer", "color_full"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 5 --root /path/to/cases --output predictions/fusion_3_color_fold5
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_3_color`; zero-based fold: `5`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer", "color_full"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 5 --root /path/to/cases --output predictions/fusion_3_color_fold5
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_3_color`;從 0 開始編號的 fold:`5`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer", "color_full"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 5 --root /path/to/cases --output predictions/fusion_3_color_fold5
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していませ��。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_3_color`。0 始まりの fold:`5`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_3_color/fold_6/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer", "color_full"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 6 --root /path/to/cases --output predictions/fusion_3_color_fold6
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_3_color; zero-based fold: 6.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer", "color_full"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 6 --root /path/to/cases --output predictions/fusion_3_color_fold6
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_3_color`; zero-based fold: `6`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer", "color_full"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 6 --root /path/to/cases --output predictions/fusion_3_color_fold6
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_3_color`;從 0 開始編號的 fold:`6`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer", "color_full"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 6 --root /path/to/cases --output predictions/fusion_3_color_fold6
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していませ��。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_3_color`。0 始まりの fold:`6`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_3_color/fold_7/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer", "color_full"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 7 --root /path/to/cases --output predictions/fusion_3_color_fold7
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_3_color; zero-based fold: 7.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer", "color_full"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 7 --root /path/to/cases --output predictions/fusion_3_color_fold7
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_3_color`; zero-based fold: `7`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer", "color_full"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 7 --root /path/to/cases --output predictions/fusion_3_color_fold7
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_3_color`;從 0 開始編號的 fold:`7`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer", "color_full"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 7 --root /path/to/cases --output predictions/fusion_3_color_fold7
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していませ��。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_3_color`。0 始まりの fold:`7`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_3_color/fold_8/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer", "color_full"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 8 --root /path/to/cases --output predictions/fusion_3_color_fold8
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_3_color; zero-based fold: 8.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer", "color_full"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 8 --root /path/to/cases --output predictions/fusion_3_color_fold8
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_3_color`; zero-based fold: `8`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer", "color_full"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 8 --root /path/to/cases --output predictions/fusion_3_color_fold8
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_3_color`;從 0 開始編號的 fold:`8`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer", "color_full"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 8 --root /path/to/cases --output predictions/fusion_3_color_fold8
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していませ��。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_3_color`。0 始まりの fold:`8`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_3_color/fold_9/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["color_inner", "color_outer", "color_full"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 9 --root /path/to/cases --output predictions/fusion_3_color_fold9
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_3_color; zero-based fold: 9.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["color_inner", "color_outer", "color_full"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 9 --root /path/to/cases --output predictions/fusion_3_color_fold9
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_3_color`; zero-based fold: `9`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["color_inner", "color_outer", "color_full"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 9 --root /path/to/cases --output predictions/fusion_3_color_fold9
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_3_color`;從 0 開始編號的 fold:`9`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["color_inner", "color_outer", "color_full"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_color --fold 9 --root /path/to/cases --output predictions/fusion_3_color_fold9
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していませ��。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_3_color`。0 始まりの fold:`9`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_3_gray/fold_0/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["gray_inner", "gray_outer", "gray_full"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 0 --root /path/to/cases --output predictions/fusion_3_gray_fold0
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_3_gray; zero-based fold: 0.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["gray_inner", "gray_outer", "gray_full"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 0 --root /path/to/cases --output predictions/fusion_3_gray_fold0
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_3_gray`; zero-based fold: `0`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["gray_inner", "gray_outer", "gray_full"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 0 --root /path/to/cases --output predictions/fusion_3_gray_fold0
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_3_gray`;從 0 開始編號的 fold:`0`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["gray_inner", "gray_outer", "gray_full"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 0 --root /path/to/cases --output predictions/fusion_3_gray_fold0
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備��た公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_3_gray`。0 始まりの fold:`0`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
models/fusion_3_gray/fold_1/README.md CHANGED
@@ -1,4 +1,8 @@
1
  ---
 
 
 
 
2
  tags:
3
  - pytorch
4
  - timm
@@ -7,43 +11,47 @@ tags:
7
  - research
8
  ---
9
 
 
 
 
 
10
  # Multistream model artifact
11
 
12
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
 
14
  Architecture: resnet50; hidden dimension: 2048.
15
 
16
- Ordered streams: ["gray_inner", "gray_outer", "gray_full"]
17
 
18
- Class mapping: {"bad": 0, "good": 1}
19
 
20
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
 
22
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
 
 
24
 
25
- Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
  ## Loading this condition and fold
27
 
28
- Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
 
30
  ```bash
31
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 1 --root /path/to/cases --output predictions/fusion_3_gray_fold1
32
  ```
33
 
34
- Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
 
36
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
 
38
  ## Preprocessing and verification
39
 
40
- config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
 
42
  ## License
43
 
44
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
 
46
- Collection condition: fusion_3_gray; zero-based fold: 1.
47
 
48
  Declared preprocessing:
49
 
@@ -70,4 +78,142 @@ Declared preprocessing:
70
 
71
  Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1.
72
 
73
- [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
  tags:
7
  - pytorch
8
  - timm
 
11
  - research
12
  ---
13
 
14
+ [English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese)
15
+
16
+ <a id="english"></a>
17
+
18
  # Multistream model artifact
19
 
20
  This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
21
 
22
  Architecture: resnet50; hidden dimension: 2048.
23
 
24
+ Ordered streams: `["gray_inner", "gray_outer", "gray_full"]`
25
 
26
+ Class mapping: `{"bad": 0, "good": 1}`
27
 
28
  Class names are labels only; do not infer healthy/diseased semantics without the study definition.
29
 
30
  The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
31
 
32
+ Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
33
 
 
34
  ## Loading this condition and fold
35
 
36
+ Install the code repository requirements and run from its `new/` directory. The shared loader and requirements live at the collection root, not in this model directory.
37
 
38
  ```bash
39
  python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 1 --root /path/to/cases --output predictions/fusion_3_gray_fold1
40
  ```
41
 
42
+ Before the model PR is merged, append `--revision refs/pr/<number>`; after merge the default `main` revision can be used.
43
 
44
  Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
45
 
46
  ## Preprocessing and verification
47
 
48
+ `config.json` records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
49
 
50
  ## License
51
 
52
  No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
53
 
54
+ Collection condition: `fusion_3_gray`; zero-based fold: `1`.
55
 
56
  Declared preprocessing:
57
 
 
78
 
79
  Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1.
80
 
81
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
82
+
83
+ ---
84
+
85
+ <a id="traditional-chinese"></a>
86
+
87
+ # 多流模型產物
88
+
89
+ 這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。
90
+
91
+ 模型架構:resnet50;隱藏維度:2048。
92
+
93
+ 輸入流順序:`["gray_inner", "gray_outer", "gray_full"]`
94
+
95
+ 類別對應:`{"bad": 0, "good": 1}`
96
+
97
+ 類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。
98
+
99
+ 來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。
100
+
101
+ 公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
102
+
103
+ ## 載入此條件與 fold
104
+
105
+ 請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。
106
+
107
+ ```bash
108
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 1 --root /path/to/cases --output predictions/fusion_3_gray_fold1
109
+ ```
110
+
111
+ 模型 PR 合併前,請加上 `--revision refs/pr/<number>`;合併後可使用預設的 `main` 版本。
112
+
113
+ 僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。
114
+
115
+ ## 前處理與核對
116
+
117
+ `config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。
118
+
119
+ ## 授權
120
+
121
+ 匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。
122
+
123
+ 集合條件:`fusion_3_gray`;從 0 開始編號的 fold:`1`。
124
+
125
+ 宣告的前處理設定:
126
+
127
+ ```json
128
+ {
129
+ "image_size": 448,
130
+ "resize_size": 448,
131
+ "mean": [
132
+ 0.485,
133
+ 0.456,
134
+ 0.406
135
+ ],
136
+ "std": [
137
+ 0.229,
138
+ 0.224,
139
+ 0.225
140
+ ],
141
+ "resize_backend": "tensor",
142
+ "interpolation": "bilinear",
143
+ "antialias": true,
144
+ "crop": "center"
145
+ }
146
+ ```
147
+
148
+ 設定註記:順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。
149
+
150
+ [完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)
151
+
152
+ ---
153
+
154
+ <a id="japanese"></a>
155
+
156
+ # マルチストリームモデルの成果物
157
+
158
+ これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。
159
+
160
+ モデル構造:resnet50。隠れ次元数:2048。
161
+
162
+ ストリームの順序:`["gray_inner", "gray_outer", "gray_full"]`
163
+
164
+ クラスの対応関係:`{"bad": 0, "good": 1}`
165
+
166
+ クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。
167
+
168
+ 変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。
169
+
170
+ 公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)
171
+
172
+ ## この条件と fold の読み込み
173
+
174
+ コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。
175
+
176
+ ```bash
177
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 1 --root /path/to/cases --output predictions/fusion_3_gray_fold1
178
+ ```
179
+
180
+ モデルの PR がマージされる前は、`--revision refs/pr/<number>` を追加してください。マージ後は既定の `main` リビジョンを使用できます。
181
+
182
+ 選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。
183
+
184
+ ## 前処理と確認
185
+
186
+ `config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。
187
+
188
+ ## ライセンス
189
+
190
+ エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備��た公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。
191
+
192
+ コレクションの条件:`fusion_3_gray`。0 始まりの fold:`1`。
193
+
194
+ 宣言された前処理設定:
195
+
196
+ ```json
197
+ {
198
+ "image_size": 448,
199
+ "resize_size": 448,
200
+ "mean": [
201
+ 0.485,
202
+ 0.456,
203
+ 0.406
204
+ ],
205
+ "std": [
206
+ 0.229,
207
+ 0.224,
208
+ 0.225
209
+ ],
210
+ "resize_backend": "tensor",
211
+ "interpolation": "bilinear",
212
+ "antialias": true,
213
+ "crop": "center"
214
+ }
215
+ ```
216
+
217
+ 設定の注記:順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。
218
+
219
+ [ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)