diff --git a/README.md b/README.md index 6db9a50b31a5ddfe1ce79ca49669036ca9b4269b..b26eed73675abe93ceecc4cd898bca5d44075908 100644 --- a/README.md +++ b/README.md @@ -1,87 +1,239 @@ ---- -tags: -- pytorch -- timm -- multistream -- research ---- - -# ERM-AI complete research model collection - -## Official code and instructions -- [GitHub repository](https://github.com/ntuhophai/ERM-AI) -- [Inference instructions](https://github.com/ntuhophai/ERM-AI/blob/main/new/INFERENCE.md) - -This collection preserves 167 model files: 160 loadable model/fold entries and 7 historical tensor archives. -A loadable entry means that its tensors match the declared architecture; it does not establish clinical validity or independent test performance. - -## Layout - -```text -catalog.json -modeling_multistream.py -README.md -requirements.txt -models//fold_<0-9>/{model.safetensors,config.json,README.md} -historical//{model.safetensors,config.json,README.md} -``` - -## Conditions and ordered streams - -| Condition | Ordered streams | Tensor resize antialias | Profile evidence / limits | -|---|---|---|---| -| single_vertical | _vertical | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | -| single_horizontal | _horizontal | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | -| single_color_full | color_full | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | -| single_color_inner | color_inner | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | -| single_color_outer | color_outer | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | -| single_gray_full | gray_full | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | -| single_gray_inner | gray_inner | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | -| single_gray_outer | gray_outer | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | -| 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. | -| fusion_2_color | color_inner, color_outer | True | Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. | -| fusion_2_gray | gray_inner, gray_outer | True | Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. | -| fusion_3_color | color_inner, color_outer, color_full | True | Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. | -| fusion_3_gray | gray_inner, gray_outer, gray_full | True | Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. | -| 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. | -| 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. | -| 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. | - -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. - -## Architecture and preprocessing - -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). -Input tensors have shape [batch, streams, 3, 448, 448]. Class mapping: {"bad": 0, "good": 1}. Softmax converts logits into class probabilities. -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. - -## Inference - -Clone the code repository and run from its new/ directory: - -```bash -git clone https://github.com/ntuhophai/ERM-AI.git -cd ERM-AI/new -python -m pip install -r requirements.txt -python tools/infer_published.py --repo ntuhophai/ERM-AI --list -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 -python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --all-folds --root /path/to/cases --output predictions/fusion_8 -``` - -The collection is available on the main branch. -For reproducible downloads, pin --revision to a model repository commit. Predictions include per-class probabilities in the saved class index order. -Case folders must provide one matching image per required stream. Both class/case/image folders and unlabeled case/image folders are supported. -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. - -Historical entries are tensor-only because their original fold/stream settings were not saved. They are included for completeness but are not automatically inferable. - -## Provenance and limits - -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. -Class names bad/good are recorded labels; do not infer healthy/diseased meanings without the study definition. -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. -No model license was guessed. Complete the study-specific model documentation/license before treating this as a clinical release. - -Original code snapshot used for this release: -[pinned source snapshot](https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new). -For current instructions, use the official GitHub repository linked above. \ No newline at end of file +--- +language: +- en +- zh +- ja +tags: +- pytorch +- timm +- multistream +- research +--- + +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + +# ERM-AI complete research model collection + +This collection preserves 167 model weight files: 160 loadable model/fold entries and 7 historical tensor archives. +A loadable entry means that its tensors match the declared architecture; it does not establish clinical validity or independent test performance. + +## Layout + +```text +catalog.json +modeling_multistream.py +README.md +requirements.txt +models//fold_<0-9>/{model.safetensors,config.json,README.md} +historical//{model.safetensors,config.json,README.md} +``` + +## Conditions and ordered streams + +| Condition | Ordered streams | Tensor resize antialias | Profile evidence / limits | +|---|---|---|---| +| single_vertical | _vertical | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | +| single_horizontal | _horizontal | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | +| single_color_full | color_full | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | +| single_color_inner | color_inner | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | +| single_color_outer | color_outer | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | +| single_gray_full | gray_full | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | +| single_gray_inner | gray_inner | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | +| single_gray_outer | gray_outer | True | Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. | +| 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. | +| fusion_2_color | color_inner, color_outer | True | Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. | +| fusion_2_gray | gray_inner, gray_outer | True | Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. | +| fusion_3_color | color_inner, color_outer, color_full | True | Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. | +| fusion_3_gray | gray_inner, gray_outer, gray_full | True | Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. | +| 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. | +| 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. | +| 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. | + +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. + +## Architecture and preprocessing + +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). +Input tensors have shape [batch, streams, 3, 448, 448]. Class mapping: {"bad": 0, "good": 1}. Softmax converts logits into class probabilities. +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`. + +## Inference + +Clone the code repository and run from its `new/` directory: + +```bash +python -m pip install -r requirements.txt +python tools/infer_published.py --repo ntuhophai/ERM-AI --list +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 +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --all-folds --root /path/to/cases --output predictions/fusion_8 +``` + +Before the model PR is merged, add `--revision refs/pr/` 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. +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. +Case folders must provide one matching image per required stream. Both class/case/image folders and unlabeled case/image folders are supported. +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. + +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. + +## Provenance and limits + +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. +Class names bad/good are recorded labels; do not infer healthy/diseased meanings without the study definition. +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. +No model license was guessed. Complete the study-specific model documentation/license before treating this as a clinical release. + +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. + +--- + + + +# ERM-AI 完整研究模型集合 + +本集合保存 167 個模型權重檔案,包含 160 個可載入的模型/fold 項目,以及 7 個歷史張量封存項目。 +「可載入」僅表示張量符合宣告的模型架構,不代表已證實臨床有效性或獨立測試效能。 + +## 目錄結構 + +```text +catalog.json +modeling_multistream.py +README.md +requirements.txt +models//fold_<0-9>/{model.safetensors,config.json,README.md} +historical//{model.safetensors,config.json,README.md} +``` + +## 實驗條件與輸入流順序 + +| 條件 | 輸入流順序 | 張量縮放抗鋸齒 | 設定依據/限制 | +|---|---|---|---| +| single_vertical | _vertical | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 | +| single_horizontal | _horizontal | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 | +| single_color_full | color_full | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 | +| single_color_inner | color_inner | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 | +| single_color_outer | color_outer | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 | +| single_gray_full | gray_full | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 | +| single_gray_inner | gray_inner | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 | +| single_gray_outer | gray_outer | True | 單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 | +| fusion_2_cross | _vertical, _horizontal | True | 順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。 | +| fusion_2_color | color_inner, color_outer | True | 順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 | +| fusion_2_gray | gray_inner, gray_outer | True | 順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 | +| fusion_3_color | color_inner, color_outer, color_full | True | 順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 | +| fusion_3_gray | gray_inner, gray_outer, gray_full | True | 順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 | +| fusion_4 | _vertical, _horizontal, color_full, gray_full | True | 順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 | +| fusion_6 | color_inner, color_outer, color_full, gray_inner, gray_outer, gray_full | True | 順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 | +| fusion_8 | _vertical, _horizontal, color_full, color_inner, color_outer, gray_full, gray_inner, gray_outer | False | 順序依保存的 config.yaml;保存的八流環境使用 torchvision 0.16.2,其張量 Resize 預設不啟用抗鋸齒。 | + +各條件包含 `catalog.json` 宣告的 fold,編號從 0 開始。各輸入流使用獨立的骨幹網路;融合模型串接池化後的特徵,再以多層感知器(MLP)分類。單流模型則直接以池化後的特徵分類。 + +## 模型架構與前處理 + +單流 ResNet50 將全域池化後的 2048 維特徵映射至兩個類別。融合模型串接各輸入流的特徵,再依序使用 Linear(N*2048, 2048)、ReLU、Linear(2048, 2048) 與 Linear(2048, 2)。 +輸入張量形狀為 [batch, streams, 3, 448, 448]。類別對應:{"bad": 0, "good": 1}。使用 softmax 將 logits 轉為各類別機率。 +RGB 影像縮放後端:tensor;縮放尺寸:448;使用雙線性插值與中心裁切。正規化平均值:[0.485, 0.456, 0.406];標準差:[0.229, 0.224, 0.225]。各條件的抗鋸齒設定列於上表,並保存在 `config.json`。 + +## 推論 + +複製程式碼儲存庫後,在其中的 `new/` 目錄執行: + +```bash +python -m pip install -r requirements.txt +python tools/infer_published.py --repo ntuhophai/ERM-AI --list +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 +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --all-folds --root /path/to/cases --output predictions/fusion_8 +``` + +模型 PR 合併前,請在上述每個存取 Hub 的指令加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。請等所有模型與 `catalog.json` 上傳完成後再執行推論。 +僅下載所選 fold 的權重與設定。為確保下載結果可重現,請使用 `--revision` 指定模型儲存庫的 commit。預測結果依保存的類別索引順序包含各類別機率。 +每個病例目錄須為各必要輸入流提供一張對應影像。同時支援 class/case/image 與不含類別標籤的 case/image 目錄結構。 +若要平均所選模型的預測機率,再使用 `--ensemble`。這是在同一群體上進行預測,並非 out-of-fold 驗證。 + +`historical/` 下的封存項目因未保存原始 fold/輸入流設定,因此僅封存張量,以保留完整紀錄;無法自動用於推論。 + +## 來源與限制 + +這些權重來自歷史研究實驗。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證分數選取 checkpoint。不得將這些分數稱為病人互斥的交叉驗證結果。 +bad/good 是原始紀錄中的類別標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 +Profile 是明確宣告的設定;張量的鍵與形狀無法證實歷史輸入流語意或前處理方式。尤其四流/六流實驗未保留執行環境版本,其抗鋸齒選擇須依原始紀錄核對。 +未推定或擅自指定模型授權。將本集合視為臨床用途的發布版本前,須完成該研究的模型文件與授權說明。 + +公開程式碼快照:[程式碼與完整使用說明](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)。另請參閱該快照中的 `INFERENCE.md` 與 `MODEL_CATALOG.md`。 + +--- + + + +# ERM-AI 研究モデルの完全コレクション + +本コレクションには 167 個のモデル重みファイルを保存しています。内訳は、読み込み可能なモデル/fold が 160 件、過去のテンソルアーカイブが 7 件です。 +「読み込み可能」とは、テンソルが宣言されたモデル構造に適合することを意味します。臨床的妥当性や独立したテストでの性能が確認されたことを意味するものではありません。 + +## ディレクトリ構成 + +```text +catalog.json +modeling_multistream.py +README.md +requirements.txt +models//fold_<0-9>/{model.safetensors,config.json,README.md} +historical//{model.safetensors,config.json,README.md} +``` + +## 実験条件とストリームの順序 + +| 条件 | ストリームの順序 | テンソルのリサイズ時のアンチエイリアス | 設定の根拠/制約 | +|---|---|---|---| +| single_vertical | _vertical | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 | +| single_horizontal | _horizontal | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 | +| single_color_full | color_full | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 | +| single_color_inner | color_inner | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 | +| single_color_outer | color_outer | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 | +| single_gray_full | gray_full | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 | +| single_gray_inner | gray_inner | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 | +| single_gray_outer | gray_outer | True | 単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 | +| fusion_2_cross | _vertical, _horizontal | True | 順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 | +| fusion_2_color | color_inner, color_outer | True | 順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 | +| fusion_2_gray | gray_inner, gray_outer | True | 順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 | +| fusion_3_color | color_inner, color_outer, color_full | True | 順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 | +| fusion_3_gray | gray_inner, gray_outer, gray_full | True | 順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 | +| fusion_4 | _vertical, _horizontal, color_full, gray_full | True | 順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 | +| fusion_6 | color_inner, color_outer, color_full, gray_inner, gray_outer, gray_full | True | 順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 | +| 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 は既定でアンチエイリアスを適用しません。 | + +各条件には、`catalog.json` に宣言された 0 始まりの fold が含まれます。各ストリームは独立したバックボーンを持ち、融合モデルはプーリング後の特徴を連結して多層パーセプトロン(MLP)で分類します。単一ストリームモデルはプーリング後の特徴を直接分類します。 + +## モデル構造と前処理 + +単一ストリームの ResNet50 は、グローバルプーリング後の 2048 次元特徴を 2 クラスに写像します。融合モデルは各ストリームの特徴を連結し、Linear(N*2048, 2048)、ReLU、Linear(2048, 2048)、Linear(2048, 2) を順に適用します。 +入力テンソルの形状は [batch, streams, 3, 448, 448] です。クラスの対応関係:{"bad": 0, "good": 1}。softmax で logits を各クラスの確率に変換します。 +RGB 画像のリサイズ処理:tensor。リサイズサイズ:448。双線形補間と中央クロップを使用します。正規化の平均値:[0.485, 0.456, 0.406]。標準偏差:[0.229, 0.224, 0.225]。条件ごとのアンチエイリアス設定は上表と `config.json` に記録されています。 + +## 推論 + +コードリポジトリをクローンし、`new/` ディレクトリで実行してください。 + +```bash +python -m pip install -r requirements.txt +python tools/infer_published.py --repo ntuhophai/ERM-AI --list +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 +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --all-folds --root /path/to/cases --output predictions/fusion_8 +``` + +モデルの PR がマージされる前は、上記の Hub にアクセスする各コマンドに `--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。すべてのモデルと `catalog.json` のアップロードが完了してから推論を実行してください。 +選択した fold の重みと設定のみをダウンロードします。再現可能なダウンロードのため、`--revision` でモデルリポジトリのコミットを指定してください。予測結果には、保存されたクラスインデックス順の各クラスの確率が含まれます。 +各症例フォルダーには、必要なストリームごとに対応する画像を 1 枚用意してください。class/case/image 構成と、クラスラベルのない case/image 構成の両方に対応しています。 +選択したモデルの予測確率を平均する場合に `--ensemble` を使用してください。同一コホートに対する予測であり、out-of-fold 検証ではありません。 + +`historical/` 配下のアーカイブ項目は、元の fold/ストリーム設定が保存されていないため、テンソルのみを収録しています。記録の完全性を保つためのものであり、自動推論には対応していません。 + +## 来歴と制約 + +これらは過去の研究で得られた重みです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証スコアに基づいてチェックポイントを選択していました。これらのスコアを、患者単位で独立した交差検証の結果と表記しないでください。 +bad/good は記録されたクラスラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 +プロファイルは明示的に宣言された設定です。テンソルのキーや形状から、過去のストリームの意味や前処理を証明することはできません。特に 4/6 ストリーム実験では実行環境のバージョンが保存されていないため、アンチエイリアスの選択を元の記録と照合する必要があります。 +モデルのライセンスは推測に基づいて指定していません。臨床用途の公開版として扱う前に、本研究固有のモデル文書とライセンスを整備してください。 + +公開コードのスナップショット:[コードと完全な利用手順](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new)。スナップショット内の `INFERENCE.md` と `MODEL_CATALOG.md` も参照してください。 diff --git a/historical/image-classification-2-stream-1/README.md b/historical/image-classification-2-stream-1/README.md index c14c190d7ea4a744671a81c0534f890e57ed41df..cc598a3c84bf26a17992fd1360036df58825f37e 100644 --- a/historical/image-classification-2-stream-1/README.md +++ b/historical/image-classification-2-stream-1/README.md @@ -1,9 +1,52 @@ +--- +language: +- en +- zh +- ja +tags: +- pytorch +- research +- tensor-archive +--- + +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Historical tensor archive -Condition: historical_image-classification-2-stream-1 +Condition: `historical_image-classification-2-stream-1` These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted. Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration. -The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included. +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. + +--- + + + +# 歷史張量封存項目 + +條件:`historical_image-classification-2-stream-1` + +保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。 + +原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。 + +集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。 + +--- + + + +# 過去のテンソルアーカイブ + +条件:`historical_image-classification-2-stream-1` + +研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。 + +元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。 + +コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。 diff --git a/historical/image-classification-2/README.md b/historical/image-classification-2/README.md index ecbd3296daa57d80493e218aa555357d63ab8797..f07f3e7d5915cf61026914c0f35bc505c0fae433 100644 --- a/historical/image-classification-2/README.md +++ b/historical/image-classification-2/README.md @@ -1,9 +1,52 @@ +--- +language: +- en +- zh +- ja +tags: +- pytorch +- research +- tensor-archive +--- + +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Historical tensor archive -Condition: historical_image-classification-2 +Condition: `historical_image-classification-2` These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted. Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration. -The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included. +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. + +--- + + + +# 歷史張量封存項目 + +條件:`historical_image-classification-2` + +保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。 + +原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。 + +集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。 + +--- + + + +# 過去のテンソルアーカイブ + +条件:`historical_image-classification-2` + +研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。 + +元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。 + +コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。 diff --git a/historical/image-classification-3/README.md b/historical/image-classification-3/README.md index 2defa67f813c34faf287d342156ea1b68ab2a097..1ba60e0ee75d8cfb1a592da69a5b35ce09408224 100644 --- a/historical/image-classification-3/README.md +++ b/historical/image-classification-3/README.md @@ -1,9 +1,52 @@ +--- +language: +- en +- zh +- ja +tags: +- pytorch +- research +- tensor-archive +--- + +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Historical tensor archive -Condition: historical_image-classification-3 +Condition: `historical_image-classification-3` These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted. Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration. -The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included. +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. + +--- + + + +# 歷史張量封存項目 + +條件:`historical_image-classification-3` + +保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。 + +原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。 + +集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。 + +--- + + + +# 過去のテンソルアーカイブ + +条件:`historical_image-classification-3` + +研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。 + +元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。 + +コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。 diff --git a/historical/image-classification-4/README.md b/historical/image-classification-4/README.md index a5428a8a2ca21b3c2be3134141dc7e2d6128a6ab..029e37f779100764a8d75e946dcdd28b13a3b6ba 100644 --- a/historical/image-classification-4/README.md +++ b/historical/image-classification-4/README.md @@ -1,9 +1,52 @@ +--- +language: +- en +- zh +- ja +tags: +- pytorch +- research +- tensor-archive +--- + +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Historical tensor archive -Condition: historical_image-classification-4 +Condition: `historical_image-classification-4` These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted. Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration. -The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included. +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. + +--- + + + +# 歷史張量封存項目 + +條件:`historical_image-classification-4` + +保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。 + +原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。 + +集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。 + +--- + + + +# 過去のテンソルアーカイブ + +条件:`historical_image-classification-4` + +研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。 + +元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。 + +コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。 diff --git a/historical/image-classification-6/README.md b/historical/image-classification-6/README.md index a211b5eabae4a864d1a693ca848d34faea97d843..a5fb4aeb963b8bc9eb75bfd4a1dbdda1b2316a41 100644 --- a/historical/image-classification-6/README.md +++ b/historical/image-classification-6/README.md @@ -1,9 +1,52 @@ +--- +language: +- en +- zh +- ja +tags: +- pytorch +- research +- tensor-archive +--- + +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Historical tensor archive -Condition: historical_image-classification-6 +Condition: `historical_image-classification-6` These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted. Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration. -The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included. +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. + +--- + + + +# 歷史張量封存項目 + +條件:`historical_image-classification-6` + +保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。 + +原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。 + +集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。 + +--- + + + +# 過去のテンソルアーカイブ + +条件:`historical_image-classification-6` + +研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。 + +元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。 + +コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。 diff --git a/historical/image-classification-ms-2/README.md b/historical/image-classification-ms-2/README.md index 34e79c4820610840fa925ead504c524fd3217cd5..e40590fd3ad316509fd9ad3f2a1edd7573dab513 100644 --- a/historical/image-classification-ms-2/README.md +++ b/historical/image-classification-ms-2/README.md @@ -1,9 +1,52 @@ +--- +language: +- en +- zh +- ja +tags: +- pytorch +- research +- tensor-archive +--- + +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Historical tensor archive -Condition: historical_image-classification-ms-2 +Condition: `historical_image-classification-ms-2` These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted. Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration. -The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included. +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. + +--- + + + +# 歷史張量封存項目 + +條件:`historical_image-classification-ms-2` + +保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。 + +原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。 + +集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。 + +--- + + + +# 過去のテンソルアーカイブ + +条件:`historical_image-classification-ms-2` + +研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。 + +元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。 + +コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。 diff --git a/historical/image-classification/README.md b/historical/image-classification/README.md index 8beffbeeb4a6e6c0d8f52fb1d701070f8dd087be..2fc788886a5da01996f33047288712533a32e8f6 100644 --- a/historical/image-classification/README.md +++ b/historical/image-classification/README.md @@ -1,9 +1,52 @@ +--- +language: +- en +- zh +- ja +tags: +- pytorch +- research +- tensor-archive +--- + +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Historical tensor archive -Condition: historical_image-classification +Condition: `historical_image-classification` These original tensors are preserved for research provenance. No fold, stream order, label mapping or preprocessing is asserted. Original fold/stream/preprocessing metadata is unavailable; archive tensors without guessing a deployment configuration. -The collection inference tool rejects this entry. Recover the original experiment settings before constructing an inference model. No patient/sample metadata is included. +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. + +--- + + + +# 歷史張量封存項目 + +條件:`historical_image-classification` + +保存這些原始張量是為了保留研究來源紀錄,並未宣告其 fold、輸入流順序、類別對應或前處理設定。 + +原始 fold/輸入流/前處理資訊已不可取得;因此僅封存張量,不推測部署設定。 + +集合推論工具不接受此 `historical/` 下的封存項目。建立可用於推論的模型前,須先找回原始實驗設定。本項目不包含病人或樣本資訊。 + +--- + + + +# 過去のテンソルアーカイブ + +条件:`historical_image-classification` + +研究の来歴を保持するために元のテンソルを保存しています。fold、ストリームの順序、クラスの対応関係、前処理の設定は宣言していません。 + +元の fold/ストリーム/前処理のメタデータが利用できないため、推論用の設定を推測せず、テンソルのみを保存しています。 + +コレクションの推論ツールは、`historical/` 配下のこのアーカイブ項目を受け付けません。推論モデルを構築するには、元の実験設定を復元する必要があります。患者やサンプルのメタデータは含まれていません。 diff --git a/models/fusion_2_color/fold_0/README.md b/models/fusion_2_color/fold_0/README.md index 673fd10c2f9ac142697ff7841013148f9269efee..ba2acd42cff8cab81638d234893b2c6b7d9f46e4 100644 --- a/models/fusion_2_color/fold_0/README.md +++ b/models/fusion_2_color/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer"] +Ordered streams: `["color_inner", "color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_color; zero-based fold: 0. +Collection condition: `fusion_2_color`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_color`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_color`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_color/fold_1/README.md b/models/fusion_2_color/fold_1/README.md index 9c6f1ca099a96e7b6712c240128b3c366abaae29..266330c410187ed1ef3dcf8667eb07e0007a69e6 100644 --- a/models/fusion_2_color/fold_1/README.md +++ b/models/fusion_2_color/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer"] +Ordered streams: `["color_inner", "color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_color; zero-based fold: 1. +Collection condition: `fusion_2_color`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_color`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_color`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_color/fold_2/README.md b/models/fusion_2_color/fold_2/README.md index f4249c4b18565e6e39ff1d1b13ec3940efc12983..aa09f2a22cacfd2df84c90357852afe7b68d3b89 100644 --- a/models/fusion_2_color/fold_2/README.md +++ b/models/fusion_2_color/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer"] +Ordered streams: `["color_inner", "color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_color; zero-based fold: 2. +Collection condition: `fusion_2_color`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_color`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_color`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_color/fold_3/README.md b/models/fusion_2_color/fold_3/README.md index 68e9df7c068f9d8b818cfd6398d8652968d3a8a0..e072b890761fa372b9d6cdb0bd6c7b1a572696cc 100644 --- a/models/fusion_2_color/fold_3/README.md +++ b/models/fusion_2_color/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer"] +Ordered streams: `["color_inner", "color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_color; zero-based fold: 3. +Collection condition: `fusion_2_color`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_color`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_color`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_color/fold_4/README.md b/models/fusion_2_color/fold_4/README.md index 41d8d00af47dda92f8edd21d7bfcce1a380d7d54..8a111f0f3f63823888802e821135a1acc9ca9279 100644 --- a/models/fusion_2_color/fold_4/README.md +++ b/models/fusion_2_color/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer"] +Ordered streams: `["color_inner", "color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_color; zero-based fold: 4. +Collection condition: `fusion_2_color`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_color`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_color`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_color/fold_5/README.md b/models/fusion_2_color/fold_5/README.md index 31a4dc749e9920e6c666ce47f58060409c17bf31..43a318e55c7f30d1b83c2b91708be51f31073bac 100644 --- a/models/fusion_2_color/fold_5/README.md +++ b/models/fusion_2_color/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer"] +Ordered streams: `["color_inner", "color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_color; zero-based fold: 5. +Collection condition: `fusion_2_color`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_color`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_color`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_color/fold_6/README.md b/models/fusion_2_color/fold_6/README.md index 951d308d5d519dc5c7b4bf2c17daa36a92c22e97..e828c9c125384a45dfa33dca858b55efc523d5f4 100644 --- a/models/fusion_2_color/fold_6/README.md +++ b/models/fusion_2_color/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer"] +Ordered streams: `["color_inner", "color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_color; zero-based fold: 6. +Collection condition: `fusion_2_color`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_color`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_color`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_color/fold_7/README.md b/models/fusion_2_color/fold_7/README.md index 9c2360db39589d1e478b22b004e91b602b19fe07..bd138c10e16db9a4a13dab1106d453c88edc112e 100644 --- a/models/fusion_2_color/fold_7/README.md +++ b/models/fusion_2_color/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer"] +Ordered streams: `["color_inner", "color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_color; zero-based fold: 7. +Collection condition: `fusion_2_color`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_color`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_color`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_color/fold_8/README.md b/models/fusion_2_color/fold_8/README.md index fd6b7649a5b0e7c497ab547725460491c2e560d5..a1b02d6e5c894b48efca0de1c07e2c12b6e16a10 100644 --- a/models/fusion_2_color/fold_8/README.md +++ b/models/fusion_2_color/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer"] +Ordered streams: `["color_inner", "color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_color; zero-based fold: 8. +Collection condition: `fusion_2_color`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_color`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_color`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_color/fold_9/README.md b/models/fusion_2_color/fold_9/README.md index 388b3e21d2c3e4c1f03a68dca4c111fe0d243ebe..617480287772bc6b29079097126139fec5ba121b 100644 --- a/models/fusion_2_color/fold_9/README.md +++ b/models/fusion_2_color/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer"] +Ordered streams: `["color_inner", "color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_color; zero-based fold: 9. +Collection condition: `fusion_2_color`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config2.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_color`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config2.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_color`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config2.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_cross/fold_0/README.md b/models/fusion_2_cross/fold_0/README.md index 286b1c0a76c2c8d9ba82fd40529df568791fe5ae..044372b13739500ee8264a4974e7556c6ec0a413 100644 --- a/models/fusion_2_cross/fold_0/README.md +++ b/models/fusion_2_cross/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal"] +Ordered streams: `["_vertical", "_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_cross; zero-based fold: 0. +Collection condition: `fusion_2_cross`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_cross`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_cross/fold_1/README.md b/models/fusion_2_cross/fold_1/README.md index ca8a841907cfba7a7534e5bfff721b5849a2ccaa..b1c41caaad18040c7a3f8ef010f6c3a3012626d1 100644 --- a/models/fusion_2_cross/fold_1/README.md +++ b/models/fusion_2_cross/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal"] +Ordered streams: `["_vertical", "_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_cross; zero-based fold: 1. +Collection condition: `fusion_2_cross`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_cross`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_cross/fold_2/README.md b/models/fusion_2_cross/fold_2/README.md index 791adb76397f6205712f88a856c47c4b6ff85195..ad978f18af43cd6fed49592f07147537fcc5f251 100644 --- a/models/fusion_2_cross/fold_2/README.md +++ b/models/fusion_2_cross/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal"] +Ordered streams: `["_vertical", "_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_cross; zero-based fold: 2. +Collection condition: `fusion_2_cross`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_cross`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_cross/fold_3/README.md b/models/fusion_2_cross/fold_3/README.md index b52e4f79f878ad7abed3164ad437fad8765f2509..ca1600371edff431adda3db82c7f18b210f9b287 100644 --- a/models/fusion_2_cross/fold_3/README.md +++ b/models/fusion_2_cross/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal"] +Ordered streams: `["_vertical", "_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_cross; zero-based fold: 3. +Collection condition: `fusion_2_cross`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_cross`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_cross/fold_4/README.md b/models/fusion_2_cross/fold_4/README.md index d2a69a186c5e5c0e979dc70781a4faeb8fa78ebc..894dee2375604ebb5a999d56d3004205aa79379c 100644 --- a/models/fusion_2_cross/fold_4/README.md +++ b/models/fusion_2_cross/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal"] +Ordered streams: `["_vertical", "_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_cross; zero-based fold: 4. +Collection condition: `fusion_2_cross`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_cross`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_cross/fold_5/README.md b/models/fusion_2_cross/fold_5/README.md index 51ceecfada7d0249a95839ea75ed14b8a32e9d12..b5ef8826bc5bb9bc9983074a9dc591506474b168 100644 --- a/models/fusion_2_cross/fold_5/README.md +++ b/models/fusion_2_cross/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal"] +Ordered streams: `["_vertical", "_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_cross; zero-based fold: 5. +Collection condition: `fusion_2_cross`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_cross`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_cross/fold_6/README.md b/models/fusion_2_cross/fold_6/README.md index 1aa50d8a1eacd741a07c9c9d4a91d4aba7fc2edf..e8904de2583e8a52905474e2f31e304a1984aa39 100644 --- a/models/fusion_2_cross/fold_6/README.md +++ b/models/fusion_2_cross/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal"] +Ordered streams: `["_vertical", "_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_cross; zero-based fold: 6. +Collection condition: `fusion_2_cross`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_cross`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_cross/fold_7/README.md b/models/fusion_2_cross/fold_7/README.md index d0239e0e6f4aec51bbec26a05aa866f9ce82cc01..55df56036ac9f023974b81081f30fa0ee08ad628 100644 --- a/models/fusion_2_cross/fold_7/README.md +++ b/models/fusion_2_cross/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal"] +Ordered streams: `["_vertical", "_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_cross; zero-based fold: 7. +Collection condition: `fusion_2_cross`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_cross`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_cross/fold_8/README.md b/models/fusion_2_cross/fold_8/README.md index 82d86b4a03edf1a08a5034d7174e5792db9e7934..0e53b81d71b3697dde6dea46884c2750d8cc8826 100644 --- a/models/fusion_2_cross/fold_8/README.md +++ b/models/fusion_2_cross/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal"] +Ordered streams: `["_vertical", "_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_cross; zero-based fold: 8. +Collection condition: `fusion_2_cross`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_cross`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_cross/fold_9/README.md b/models/fusion_2_cross/fold_9/README.md index edaaee3d9b032bb2fc0a5d2ae7d9a9a42b8e4d5f..f45da59df4f3386a4eff345524439e9d8dc6f820 100644 --- a/models/fusion_2_cross/fold_9/README.md +++ b/models/fusion_2_cross/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal"] +Ordered streams: `["_vertical", "_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_cross; zero-based fold: 9. +Collection condition: `fusion_2_cross`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming; original YAML is missing. Two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_cross`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定;原始 YAML 已缺失。雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_cross`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の YAML は残っていません。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_gray/fold_0/README.md b/models/fusion_2_gray/fold_0/README.md index 1a3f59ed1948c7d96962a1c3991eaf3b8a3e072b..a6763fbc294ca4c479cdcbeb8fc88ec320132c9f 100644 --- a/models/fusion_2_gray/fold_0/README.md +++ b/models/fusion_2_gray/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer"] +Ordered streams: `["gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_gray; zero-based fold: 0. +Collection condition: `fusion_2_gray`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_gray`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_gray/fold_1/README.md b/models/fusion_2_gray/fold_1/README.md index c47cd25218d7aeb319810730f749d83cd266fc60..7eaee6c7636ad9f91bbd63c3e8f27141b89fdbad 100644 --- a/models/fusion_2_gray/fold_1/README.md +++ b/models/fusion_2_gray/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer"] +Ordered streams: `["gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_gray; zero-based fold: 1. +Collection condition: `fusion_2_gray`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_gray`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_gray/fold_2/README.md b/models/fusion_2_gray/fold_2/README.md index 1cba6cef4faa56447a65e1ae310ab8dcd2f21234..6fe9cf9f7247189ff870f32195b91f388c5f60bf 100644 --- a/models/fusion_2_gray/fold_2/README.md +++ b/models/fusion_2_gray/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer"] +Ordered streams: `["gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_gray; zero-based fold: 2. +Collection condition: `fusion_2_gray`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_gray`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_gray/fold_3/README.md b/models/fusion_2_gray/fold_3/README.md index a7aadca0760ec3e4b5f970b1140127ac611a5573..3838a48f52c95309d7c3fe5bc013465131af9df9 100644 --- a/models/fusion_2_gray/fold_3/README.md +++ b/models/fusion_2_gray/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer"] +Ordered streams: `["gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_gray; zero-based fold: 3. +Collection condition: `fusion_2_gray`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_gray`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_gray/fold_4/README.md b/models/fusion_2_gray/fold_4/README.md index 53541460f5f899eb44818bad8692dedcec4dc0d6..7a67b19fe8ed14f314de36d32c6fbf4cbeeb89c4 100644 --- a/models/fusion_2_gray/fold_4/README.md +++ b/models/fusion_2_gray/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer"] +Ordered streams: `["gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_gray; zero-based fold: 4. +Collection condition: `fusion_2_gray`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_gray`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_gray/fold_5/README.md b/models/fusion_2_gray/fold_5/README.md index 25236781f4d6231420c33c5a69353922171a9ddd..5d05976b524cacd6ecd348092b646613e2d4afc4 100644 --- a/models/fusion_2_gray/fold_5/README.md +++ b/models/fusion_2_gray/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer"] +Ordered streams: `["gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_gray; zero-based fold: 5. +Collection condition: `fusion_2_gray`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_gray`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_gray/fold_6/README.md b/models/fusion_2_gray/fold_6/README.md index 5b0976f93185851f42b08a966650f7768bfaeffa..7b6eca6a21e68cf7411c2e3401cd2efc230f1e7f 100644 --- a/models/fusion_2_gray/fold_6/README.md +++ b/models/fusion_2_gray/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer"] +Ordered streams: `["gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_gray; zero-based fold: 6. +Collection condition: `fusion_2_gray`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_gray`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_gray/fold_7/README.md b/models/fusion_2_gray/fold_7/README.md index 9766b9c363ecd1ee1647ff059b6bab141cfc05e1..f43599e9ccdfd7e61e70db3f6191d157c1ec21cc 100644 --- a/models/fusion_2_gray/fold_7/README.md +++ b/models/fusion_2_gray/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer"] +Ordered streams: `["gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_gray; zero-based fold: 7. +Collection condition: `fusion_2_gray`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_gray`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_gray/fold_8/README.md b/models/fusion_2_gray/fold_8/README.md index 9398f39fb6297c676339007b2d25991becfc1736..fec838fe591b87747cb8b2af61043df39d39fa8e 100644 --- a/models/fusion_2_gray/fold_8/README.md +++ b/models/fusion_2_gray/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer"] +Ordered streams: `["gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_gray; zero-based fold: 8. +Collection condition: `fusion_2_gray`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_gray`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_2_gray/fold_9/README.md b/models/fusion_2_gray/fold_9/README.md index 7dd68e7f4f7d3a80583d00d4b35e748e1e779006..36706e68f7b1fa2b4461f0d0b8eb65bea607fb47 100644 --- a/models/fusion_2_gray/fold_9/README.md +++ b/models/fusion_2_gray/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer"] +Ordered streams: `["gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_2_gray; zero-based fold: 9. +Collection condition: `fusion_2_gray`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config3.yaml; two-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_2_gray`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config3.yaml;雙流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_2_gray`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config3.yaml に基づきます。2 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_color/fold_0/README.md b/models/fusion_3_color/fold_0/README.md index ca48cac4ae122ecec342887006887bd5a6f372f7..132e932a9a3af995d502d1c705d7a83d9d355e55 100644 --- a/models/fusion_3_color/fold_0/README.md +++ b/models/fusion_3_color/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full"] +Ordered streams: `["color_inner", "color_outer", "color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_color; zero-based fold: 0. +Collection condition: `fusion_3_color`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_color`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_color`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_color/fold_1/README.md b/models/fusion_3_color/fold_1/README.md index 8c8563dbff41533b50e3ae8e8e30f5ede089811e..5f50ce2398939e9f82965b76e66836b94405cb01 100644 --- a/models/fusion_3_color/fold_1/README.md +++ b/models/fusion_3_color/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full"] +Ordered streams: `["color_inner", "color_outer", "color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_color; zero-based fold: 1. +Collection condition: `fusion_3_color`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_color`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_color`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_color/fold_2/README.md b/models/fusion_3_color/fold_2/README.md index 5b7c2adb80f44908ff3802a7aa397bd18b7a9e68..bc83f27cf71d8af16b64b5ac91cb3128e44a1b04 100644 --- a/models/fusion_3_color/fold_2/README.md +++ b/models/fusion_3_color/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full"] +Ordered streams: `["color_inner", "color_outer", "color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_color; zero-based fold: 2. +Collection condition: `fusion_3_color`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_color`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_color`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_color/fold_3/README.md b/models/fusion_3_color/fold_3/README.md index fd3fc4a75e0856eb60f1b2ad871b8e57b4d6efca..1ec73fc344975951cfab590c4220bf5dfe5ef20a 100644 --- a/models/fusion_3_color/fold_3/README.md +++ b/models/fusion_3_color/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full"] +Ordered streams: `["color_inner", "color_outer", "color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_color; zero-based fold: 3. +Collection condition: `fusion_3_color`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_color`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_color`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_color/fold_4/README.md b/models/fusion_3_color/fold_4/README.md index d682c0092be4cfcf0b963f9842a2623fcab0dedb..821f3bd9a68fb03696bc22d75f7251dc17cbd721 100644 --- a/models/fusion_3_color/fold_4/README.md +++ b/models/fusion_3_color/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full"] +Ordered streams: `["color_inner", "color_outer", "color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_color; zero-based fold: 4. +Collection condition: `fusion_3_color`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_color`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_color`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_color/fold_5/README.md b/models/fusion_3_color/fold_5/README.md index da34b94a206d6b5bca50b9ad8bc0378d726f742d..772bda3c3891d6512af01d5fedab233bed6fde0c 100644 --- a/models/fusion_3_color/fold_5/README.md +++ b/models/fusion_3_color/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full"] +Ordered streams: `["color_inner", "color_outer", "color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_color; zero-based fold: 5. +Collection condition: `fusion_3_color`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_color`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_color`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_color/fold_6/README.md b/models/fusion_3_color/fold_6/README.md index cefdec7d9bee290073cd254c5a5d289bac2a42d5..ecdfd15126e516252e65386b2308c4590221f023 100644 --- a/models/fusion_3_color/fold_6/README.md +++ b/models/fusion_3_color/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full"] +Ordered streams: `["color_inner", "color_outer", "color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_color; zero-based fold: 6. +Collection condition: `fusion_3_color`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_color`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_color`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_color/fold_7/README.md b/models/fusion_3_color/fold_7/README.md index 4d99adf2209e92884fc591c6e7464a836573c0f9..b6f8a3b8f36bdf9241bfff1aff8e7c0963bb6c14 100644 --- a/models/fusion_3_color/fold_7/README.md +++ b/models/fusion_3_color/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full"] +Ordered streams: `["color_inner", "color_outer", "color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_color; zero-based fold: 7. +Collection condition: `fusion_3_color`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_color`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_color`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_color/fold_8/README.md b/models/fusion_3_color/fold_8/README.md index e1cc04acff58f152aee5adc8ba5587cbd42ae8b2..3a340d49fc9ba9662480bc9f07f124f9f7ebe0d2 100644 --- a/models/fusion_3_color/fold_8/README.md +++ b/models/fusion_3_color/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full"] +Ordered streams: `["color_inner", "color_outer", "color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_color; zero-based fold: 8. +Collection condition: `fusion_3_color`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_color`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_color`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_color/fold_9/README.md b/models/fusion_3_color/fold_9/README.md index 84a3012e032ce85fda24ee085cfd1b7467b3e5b8..081581b2abb49a77cbad41d70230dd55770cb7d4 100644 --- a/models/fusion_3_color/fold_9/README.md +++ b/models/fusion_3_color/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full"] +Ordered streams: `["color_inner", "color_outer", "color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_color; zero-based fold: 9. +Collection condition: `fusion_3_color`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config4.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_color`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config4.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_color`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config4.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_gray/fold_0/README.md b/models/fusion_3_gray/fold_0/README.md index fc6201572ffa3d042c40185ec054a496a223bf1b..5122a71dc78642a1ca6da08b194cc1284a70436c 100644 --- a/models/fusion_3_gray/fold_0/README.md +++ b/models/fusion_3_gray/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_gray; zero-based fold: 0. +Collection condition: `fusion_3_gray`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_gray`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_gray`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_gray/fold_1/README.md b/models/fusion_3_gray/fold_1/README.md index 62163e26a556f753d01c94e6fd4cb5a0eb54e8e7..2342007ca05a6f445ba9ec84c7bf38584044cdd1 100644 --- a/models/fusion_3_gray/fold_1/README.md +++ b/models/fusion_3_gray/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_gray; zero-based fold: 1. +Collection condition: `fusion_3_gray`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_gray`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_gray`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_gray/fold_2/README.md b/models/fusion_3_gray/fold_2/README.md index 6952cf033c110d358008bee718312252ef7527f4..2e9b840a191b841876922d0352ab3aa849e16195 100644 --- a/models/fusion_3_gray/fold_2/README.md +++ b/models/fusion_3_gray/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 2 --root /path/to/cases --output predictions/fusion_3_gray_fold2 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_gray; zero-based fold: 2. +Collection condition: `fusion_3_gray`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 2 --root /path/to/cases --output predictions/fusion_3_gray_fold2 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_gray`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 2 --root /path/to/cases --output predictions/fusion_3_gray_fold2 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_gray`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_gray/fold_3/README.md b/models/fusion_3_gray/fold_3/README.md index a25cc11d9813b75aa54a03b82e92496a87e18e46..5fc05164b98f54fbb92881c68243d6b41036b2e4 100644 --- a/models/fusion_3_gray/fold_3/README.md +++ b/models/fusion_3_gray/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 3 --root /path/to/cases --output predictions/fusion_3_gray_fold3 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_gray; zero-based fold: 3. +Collection condition: `fusion_3_gray`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 3 --root /path/to/cases --output predictions/fusion_3_gray_fold3 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_gray`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 3 --root /path/to/cases --output predictions/fusion_3_gray_fold3 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_gray`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_gray/fold_4/README.md b/models/fusion_3_gray/fold_4/README.md index 47ade242a17f17634484defec38aaaf6ae2af897..cea84b71e7a62a7545197734d1f6c6fddcb53bdd 100644 --- a/models/fusion_3_gray/fold_4/README.md +++ b/models/fusion_3_gray/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 4 --root /path/to/cases --output predictions/fusion_3_gray_fold4 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_gray; zero-based fold: 4. +Collection condition: `fusion_3_gray`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 4 --root /path/to/cases --output predictions/fusion_3_gray_fold4 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_gray`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 4 --root /path/to/cases --output predictions/fusion_3_gray_fold4 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_gray`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_gray/fold_5/README.md b/models/fusion_3_gray/fold_5/README.md index f765e7c3de7dc4dcbad75cd66ab2e3aa2b0f05e0..2b0f4b4c941cb20ee15480650152e70c2b46f272 100644 --- a/models/fusion_3_gray/fold_5/README.md +++ b/models/fusion_3_gray/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 5 --root /path/to/cases --output predictions/fusion_3_gray_fold5 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_gray; zero-based fold: 5. +Collection condition: `fusion_3_gray`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 5 --root /path/to/cases --output predictions/fusion_3_gray_fold5 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_gray`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 5 --root /path/to/cases --output predictions/fusion_3_gray_fold5 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_gray`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_gray/fold_6/README.md b/models/fusion_3_gray/fold_6/README.md index e5e1747d3d276b2fc69eda07b4aa034292ba9138..1371ccd01da49432dd0c61edf8a6438968724e9e 100644 --- a/models/fusion_3_gray/fold_6/README.md +++ b/models/fusion_3_gray/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 6 --root /path/to/cases --output predictions/fusion_3_gray_fold6 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_gray; zero-based fold: 6. +Collection condition: `fusion_3_gray`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 6 --root /path/to/cases --output predictions/fusion_3_gray_fold6 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_gray`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 6 --root /path/to/cases --output predictions/fusion_3_gray_fold6 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_gray`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_gray/fold_7/README.md b/models/fusion_3_gray/fold_7/README.md index 6d20425b1b1f443cf2939720db7f5c20e3d1c048..dae26afb6d883e9c34e026c90474cf52c4ddb828 100644 --- a/models/fusion_3_gray/fold_7/README.md +++ b/models/fusion_3_gray/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 7 --root /path/to/cases --output predictions/fusion_3_gray_fold7 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_gray; zero-based fold: 7. +Collection condition: `fusion_3_gray`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 7 --root /path/to/cases --output predictions/fusion_3_gray_fold7 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_gray`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 7 --root /path/to/cases --output predictions/fusion_3_gray_fold7 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_gray`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_gray/fold_8/README.md b/models/fusion_3_gray/fold_8/README.md index 2494a684bfb6569564ef2eb40b68f564b7749844..b512e56c8cf6d497a042c6bc875e4616aac7d98f 100644 --- a/models/fusion_3_gray/fold_8/README.md +++ b/models/fusion_3_gray/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 8 --root /path/to/cases --output predictions/fusion_3_gray_fold8 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_gray; zero-based fold: 8. +Collection condition: `fusion_3_gray`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 8 --root /path/to/cases --output predictions/fusion_3_gray_fold8 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_gray`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 8 --root /path/to/cases --output predictions/fusion_3_gray_fold8 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_gray`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_3_gray/fold_9/README.md b/models/fusion_3_gray/fold_9/README.md index 99884b07ee7d23f2968a0aeaa0cc64f9037eeaf6..88d53b73fa9fa34e12af4882f1e006b575e5072e 100644 --- a/models/fusion_3_gray/fold_9/README.md +++ b/models/fusion_3_gray/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 9 --root /path/to/cases --output predictions/fusion_3_gray_fold9 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_3_gray; zero-based fold: 9. +Collection condition: `fusion_3_gray`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config5.yaml; three-stream runtime records use torchvision 0.17.1. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 9 --root /path/to/cases --output predictions/fusion_3_gray_fold9 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_3_gray`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依保存的 config5.yaml;三流執行環境紀錄使用 torchvision 0.17.1。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_3_gray --fold 9 --root /path/to/cases --output predictions/fusion_3_gray_fold9 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_3_gray`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は保存された config5.yaml に基づきます。3 ストリームの実行環境記録では torchvision 0.17.1 を使用しています。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_4/fold_0/README.md b/models/fusion_4/fold_0/README.md index 422fa1693e79ad716e52648bc3ab24b5ecc2b71d..80156678913ac0112f5162eec0313e5b4f0cec9f 100644 --- a/models/fusion_4/fold_0/README.md +++ b/models/fusion_4/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "gray_full"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 0 --root /path/to/cases --output predictions/fusion_4_fold0 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_4; zero-based fold: 0. +Collection condition: `fusion_4`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 0 --root /path/to/cases --output predictions/fusion_4_fold0 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_4`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 0 --root /path/to/cases --output predictions/fusion_4_fold0 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_4`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_4/fold_1/README.md b/models/fusion_4/fold_1/README.md index 063951955ee2fa2bfa55828688b1badac09ad1fa..58bad9a53561231af306b359e5f4338aa4d2cb0c 100644 --- a/models/fusion_4/fold_1/README.md +++ b/models/fusion_4/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "gray_full"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 1 --root /path/to/cases --output predictions/fusion_4_fold1 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_4; zero-based fold: 1. +Collection condition: `fusion_4`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 1 --root /path/to/cases --output predictions/fusion_4_fold1 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_4`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 1 --root /path/to/cases --output predictions/fusion_4_fold1 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_4`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_4/fold_2/README.md b/models/fusion_4/fold_2/README.md index 12960e67f30b973bf814a82a5136a976398e9dc5..3c52e4e6765cd3529e79d692e3cff18fc1b437fa 100644 --- a/models/fusion_4/fold_2/README.md +++ b/models/fusion_4/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "gray_full"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 2 --root /path/to/cases --output predictions/fusion_4_fold2 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_4; zero-based fold: 2. +Collection condition: `fusion_4`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 2 --root /path/to/cases --output predictions/fusion_4_fold2 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_4`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 2 --root /path/to/cases --output predictions/fusion_4_fold2 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_4`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_4/fold_3/README.md b/models/fusion_4/fold_3/README.md index 957d1859507d611ddf599f7bceee5815695b98be..9d849e983bfaf1658d33b3b763000228d372c16d 100644 --- a/models/fusion_4/fold_3/README.md +++ b/models/fusion_4/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "gray_full"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 3 --root /path/to/cases --output predictions/fusion_4_fold3 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_4; zero-based fold: 3. +Collection condition: `fusion_4`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 3 --root /path/to/cases --output predictions/fusion_4_fold3 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_4`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 3 --root /path/to/cases --output predictions/fusion_4_fold3 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_4`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_4/fold_4/README.md b/models/fusion_4/fold_4/README.md index 493bc6d6e078b9cf0393a3790eab72f9cf73e5ea..87c3219174de8b1339525533779e6eda8b6973ae 100644 --- a/models/fusion_4/fold_4/README.md +++ b/models/fusion_4/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "gray_full"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 4 --root /path/to/cases --output predictions/fusion_4_fold4 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_4; zero-based fold: 4. +Collection condition: `fusion_4`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 4 --root /path/to/cases --output predictions/fusion_4_fold4 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_4`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 4 --root /path/to/cases --output predictions/fusion_4_fold4 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_4`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_4/fold_5/README.md b/models/fusion_4/fold_5/README.md index 40f59b204808ba3649360c33ab810c2d3035123d..28f5899488fc1fa721eb68608944ff7a4be9db4f 100644 --- a/models/fusion_4/fold_5/README.md +++ b/models/fusion_4/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "gray_full"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 5 --root /path/to/cases --output predictions/fusion_4_fold5 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_4; zero-based fold: 5. +Collection condition: `fusion_4`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 5 --root /path/to/cases --output predictions/fusion_4_fold5 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_4`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 5 --root /path/to/cases --output predictions/fusion_4_fold5 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_4`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_4/fold_6/README.md b/models/fusion_4/fold_6/README.md index 3741887af712b18aaaea18c7899312ecbf0b4cff..fa1ab5e2f11b34b02ea6dcaee191c6fb3d0e4aba 100644 --- a/models/fusion_4/fold_6/README.md +++ b/models/fusion_4/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "gray_full"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 6 --root /path/to/cases --output predictions/fusion_4_fold6 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_4; zero-based fold: 6. +Collection condition: `fusion_4`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 6 --root /path/to/cases --output predictions/fusion_4_fold6 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_4`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 6 --root /path/to/cases --output predictions/fusion_4_fold6 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_4`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_4/fold_7/README.md b/models/fusion_4/fold_7/README.md index 89e91dbca0dfd395e948511060b728dbaa83af3f..a341d33e501cd29dbbfc17ac151a27c3448c0e24 100644 --- a/models/fusion_4/fold_7/README.md +++ b/models/fusion_4/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "gray_full"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 7 --root /path/to/cases --output predictions/fusion_4_fold7 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_4; zero-based fold: 7. +Collection condition: `fusion_4`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 7 --root /path/to/cases --output predictions/fusion_4_fold7 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_4`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 7 --root /path/to/cases --output predictions/fusion_4_fold7 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_4`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_4/fold_8/README.md b/models/fusion_4/fold_8/README.md index 1a4d6cc4db48ee2881b8a71c5755db1525456925..e3414018ef8c8af57fb0990ee0ffd8d320a4b01e 100644 --- a/models/fusion_4/fold_8/README.md +++ b/models/fusion_4/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "gray_full"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 8 --root /path/to/cases --output predictions/fusion_4_fold8 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_4; zero-based fold: 8. +Collection condition: `fusion_4`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 8 --root /path/to/cases --output predictions/fusion_4_fold8 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_4`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 8 --root /path/to/cases --output predictions/fusion_4_fold8 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_4`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_4/fold_9/README.md b/models/fusion_4/fold_9/README.md index 509eb42149fd7baf0630b6c42ed1eda01393280f..f74242fab0be82346bd50584837ef29ccad429b2 100644 --- a/models/fusion_4/fold_9/README.md +++ b/models/fusion_4/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "gray_full"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 9 --root /path/to/cases --output predictions/fusion_4_fold9 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_4; zero-based fold: 9. +Collection condition: `fusion_4`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 9 --root /path/to/cases --output predictions/fusion_4_fold9 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_4`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_4 --fold 9 --root /path/to/cases --output predictions/fusion_4_fold9 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_4`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_6/fold_0/README.md b/models/fusion_6/fold_0/README.md index b2f69da44f98be96864b28827815ba367d5340e0..34aa994d2f4ac0419120a67d17c81d3c8e510ba2 100644 --- a/models/fusion_6/fold_0/README.md +++ b/models/fusion_6/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 0 --root /path/to/cases --output predictions/fusion_6_fold0 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_6; zero-based fold: 0. +Collection condition: `fusion_6`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 0 --root /path/to/cases --output predictions/fusion_6_fold0 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_6`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 0 --root /path/to/cases --output predictions/fusion_6_fold0 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_6`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_6/fold_1/README.md b/models/fusion_6/fold_1/README.md index 7560fae8fed9d407139abde0e03ffecbf3f34c00..d6381b7475850c192a1916ba9d2905e4d8f2485c 100644 --- a/models/fusion_6/fold_1/README.md +++ b/models/fusion_6/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 1 --root /path/to/cases --output predictions/fusion_6_fold1 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_6; zero-based fold: 1. +Collection condition: `fusion_6`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 1 --root /path/to/cases --output predictions/fusion_6_fold1 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_6`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 1 --root /path/to/cases --output predictions/fusion_6_fold1 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_6`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_6/fold_2/README.md b/models/fusion_6/fold_2/README.md index aa2cbf763c68a52a744c88b827c045790f167294..34dc077cff60771f855e46484570dd21fdc5075c 100644 --- a/models/fusion_6/fold_2/README.md +++ b/models/fusion_6/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 2 --root /path/to/cases --output predictions/fusion_6_fold2 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_6; zero-based fold: 2. +Collection condition: `fusion_6`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 2 --root /path/to/cases --output predictions/fusion_6_fold2 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_6`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 2 --root /path/to/cases --output predictions/fusion_6_fold2 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_6`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_6/fold_3/README.md b/models/fusion_6/fold_3/README.md index 4be5079236938478dcd2647ddc112d9af8d7b43f..1a5cbc38032dee07d50cc176a5609965894a0c43 100644 --- a/models/fusion_6/fold_3/README.md +++ b/models/fusion_6/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 3 --root /path/to/cases --output predictions/fusion_6_fold3 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_6; zero-based fold: 3. +Collection condition: `fusion_6`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 3 --root /path/to/cases --output predictions/fusion_6_fold3 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_6`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 3 --root /path/to/cases --output predictions/fusion_6_fold3 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_6`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_6/fold_4/README.md b/models/fusion_6/fold_4/README.md index c8aa4087afd79076b77f1800bec280df98e25cc7..14d6cb321f0248d07bb922563b5a4274115696f6 100644 --- a/models/fusion_6/fold_4/README.md +++ b/models/fusion_6/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 4 --root /path/to/cases --output predictions/fusion_6_fold4 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_6; zero-based fold: 4. +Collection condition: `fusion_6`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 4 --root /path/to/cases --output predictions/fusion_6_fold4 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_6`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 4 --root /path/to/cases --output predictions/fusion_6_fold4 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_6`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_6/fold_5/README.md b/models/fusion_6/fold_5/README.md index 6da44283f5e981aeabbdc8b0269ea0ac35a92414..c2bc52c703fd01dad0fe3f275b536e313f6e14c1 100644 --- a/models/fusion_6/fold_5/README.md +++ b/models/fusion_6/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 5 --root /path/to/cases --output predictions/fusion_6_fold5 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_6; zero-based fold: 5. +Collection condition: `fusion_6`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 5 --root /path/to/cases --output predictions/fusion_6_fold5 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_6`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 5 --root /path/to/cases --output predictions/fusion_6_fold5 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_6`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_6/fold_6/README.md b/models/fusion_6/fold_6/README.md index f9954f61ee171b46542186591be9ad4f7736379f..c26059be80c97085f3f6e0cca37e1758b2160da1 100644 --- a/models/fusion_6/fold_6/README.md +++ b/models/fusion_6/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 6 --root /path/to/cases --output predictions/fusion_6_fold6 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_6; zero-based fold: 6. +Collection condition: `fusion_6`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 6 --root /path/to/cases --output predictions/fusion_6_fold6 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_6`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 6 --root /path/to/cases --output predictions/fusion_6_fold6 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_6`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_6/fold_7/README.md b/models/fusion_6/fold_7/README.md index de9cd76ea0e2f001b07e5d1fd17cd173471d98f2..3a741c6d9cd25042a2d5518acbc7097bf3f10431 100644 --- a/models/fusion_6/fold_7/README.md +++ b/models/fusion_6/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 7 --root /path/to/cases --output predictions/fusion_6_fold7 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_6; zero-based fold: 7. +Collection condition: `fusion_6`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 7 --root /path/to/cases --output predictions/fusion_6_fold7 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_6`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 7 --root /path/to/cases --output predictions/fusion_6_fold7 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_6`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_6/fold_8/README.md b/models/fusion_6/fold_8/README.md index daef3679f26eae724a617c94981e7f8c2209189e..0401feafab1ac33c69763c8a3dc8c3c412f75049 100644 --- a/models/fusion_6/fold_8/README.md +++ b/models/fusion_6/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 8 --root /path/to/cases --output predictions/fusion_6_fold8 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_6; zero-based fold: 8. +Collection condition: `fusion_6`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 8 --root /path/to/cases --output predictions/fusion_6_fold8 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_6`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 8 --root /path/to/cases --output predictions/fusion_6_fold8 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_6`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_6/fold_9/README.md b/models/fusion_6/fold_9/README.md index fa90cc6811c68da11e6fda9584d7bf08d9eef376..750d1292fbed06bbbb9a7ea414268adfc6185bc7 100644 --- a/models/fusion_6/fold_9/README.md +++ b/models/fusion_6/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"] +Ordered streams: `["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 9 --root /path/to/cases --output predictions/fusion_6_fold9 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_6; zero-based fold: 9. +Collection condition: `fusion_6`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 9 --root /path/to/cases --output predictions/fusion_6_fold9 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_6`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:順序依歷史推論目錄名稱判定。原始執行環境版本未記錄;antialias=true 是操作者明確指定、仍須核對的設定。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 9 --root /path/to/cases --output predictions/fusion_6_fold9 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_6`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:順序は過去の推論ディレクトリ名に基づきます。元の実行環境のバージョンは記録されていません。antialias=true は操作者が明示的に選択した設定であり、照合が必要です。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_8/fold_0/README.md b/models/fusion_8/fold_0/README.md index 6b0125a9e5d5df37870490f493c4e5915d433d54..a09ced676ca5b21392549cb87d07eb2af1580a8b 100644 --- a/models/fusion_8/fold_0/README.md +++ b/models/fusion_8/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 0 --root /path/to/cases --output predictions/fusion_8_fold0 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_8; zero-based fold: 0. +Collection condition: `fusion_8`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config.yaml; saved eight-stream environment uses torchvision 0.16.2, whose Tensor Resize default was not antialiased. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 0 --root /path/to/cases --output predictions/fusion_8_fold0 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_8`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定註記:順序依保存的 config.yaml;保存的八流環境使用 torchvision 0.16.2,其張量 Resize 預設不啟用抗鋸齒。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 0 --root /path/to/cases --output predictions/fusion_8_fold0 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_8`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定の注記:順序は保存された config.yaml に基づきます。保存された 8 ストリーム環境では torchvision 0.16.2 を使用しており、テンソルの Resize は既定でアンチエイリアスを適用しません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_8/fold_1/README.md b/models/fusion_8/fold_1/README.md index df3245aee125a6f21779cd17c98df2654bd963ce..3306f72995f4b32ad05100901887e7400b8823a9 100644 --- a/models/fusion_8/fold_1/README.md +++ b/models/fusion_8/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 1 --root /path/to/cases --output predictions/fusion_8_fold1 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_8; zero-based fold: 1. +Collection condition: `fusion_8`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config.yaml; saved eight-stream environment uses torchvision 0.16.2, whose Tensor Resize default was not antialiased. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 1 --root /path/to/cases --output predictions/fusion_8_fold1 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_8`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定註記:順序依保存的 config.yaml;保存的八流環境使用 torchvision 0.16.2,其張量 Resize 預設不啟用抗鋸齒。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 1 --root /path/to/cases --output predictions/fusion_8_fold1 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_8`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定の注記:順序は保存された config.yaml に基づきます。保存された 8 ストリーム環境では torchvision 0.16.2 を使用しており、テンソルの Resize は既定でアンチエイリアスを適用しません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_8/fold_2/README.md b/models/fusion_8/fold_2/README.md index 1f0eb56ed90ae8d4ddbff775a92b7104568f6188..23659b0b91472764a64125beb6303ea8c346580c 100644 --- a/models/fusion_8/fold_2/README.md +++ b/models/fusion_8/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 2 --root /path/to/cases --output predictions/fusion_8_fold2 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_8; zero-based fold: 2. +Collection condition: `fusion_8`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config.yaml; saved eight-stream environment uses torchvision 0.16.2, whose Tensor Resize default was not antialiased. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 2 --root /path/to/cases --output predictions/fusion_8_fold2 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_8`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定註記:順序依保存的 config.yaml;保存的八流環境使用 torchvision 0.16.2,其張量 Resize 預設不啟用抗鋸齒。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 2 --root /path/to/cases --output predictions/fusion_8_fold2 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_8`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定の注記:順序は保存された config.yaml に基づきます。保存された 8 ストリーム環境では torchvision 0.16.2 を使用しており、テンソルの Resize は既定でアンチエイリアスを適用しません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_8/fold_3/README.md b/models/fusion_8/fold_3/README.md index 86ef30cc9d4b84a905f4adaf1950525661534349..02808dfa674e178e67c5a0e7628bda5da138bd2c 100644 --- a/models/fusion_8/fold_3/README.md +++ b/models/fusion_8/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 3 --root /path/to/cases --output predictions/fusion_8_fold3 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_8; zero-based fold: 3. +Collection condition: `fusion_8`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config.yaml; saved eight-stream environment uses torchvision 0.16.2, whose Tensor Resize default was not antialiased. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 3 --root /path/to/cases --output predictions/fusion_8_fold3 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_8`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定註記:順序依保存的 config.yaml;保存的八流環境使用 torchvision 0.16.2,其張量 Resize 預設不啟用抗鋸齒。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 3 --root /path/to/cases --output predictions/fusion_8_fold3 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_8`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定の注記:順序は保存された config.yaml に基づきます。保存された 8 ストリーム環境では torchvision 0.16.2 を使用しており、テンソルの Resize は既定でアンチエイリアスを適用しません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_8/fold_4/README.md b/models/fusion_8/fold_4/README.md index 00893d01d13feb5b2ed489c5bc282036e59c53ba..9a3f0675940a86b2700cd3c19d8a532a7849340c 100644 --- a/models/fusion_8/fold_4/README.md +++ b/models/fusion_8/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 4 --root /path/to/cases --output predictions/fusion_8_fold4 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_8; zero-based fold: 4. +Collection condition: `fusion_8`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config.yaml; saved eight-stream environment uses torchvision 0.16.2, whose Tensor Resize default was not antialiased. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 4 --root /path/to/cases --output predictions/fusion_8_fold4 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_8`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定註記:順序依保存的 config.yaml;保存的八流環境使用 torchvision 0.16.2,其張量 Resize 預設不啟用抗鋸齒。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 4 --root /path/to/cases --output predictions/fusion_8_fold4 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_8`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定の注記:順序は保存された config.yaml に基づきます。保存された 8 ストリーム環境では torchvision 0.16.2 を使用しており、テンソルの Resize は既定でアンチエイリアスを適用しません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_8/fold_5/README.md b/models/fusion_8/fold_5/README.md index 5066c2d89d228f8e4bada0e5e9ced5fefea1c55a..893b625dbc009865534e8f296c54918473e82631 100644 --- a/models/fusion_8/fold_5/README.md +++ b/models/fusion_8/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 5 --root /path/to/cases --output predictions/fusion_8_fold5 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_8; zero-based fold: 5. +Collection condition: `fusion_8`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config.yaml; saved eight-stream environment uses torchvision 0.16.2, whose Tensor Resize default was not antialiased. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 5 --root /path/to/cases --output predictions/fusion_8_fold5 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_8`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定註記:順序依保存的 config.yaml;保存的八流環境使用 torchvision 0.16.2,其張量 Resize 預設不啟用抗鋸齒。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 5 --root /path/to/cases --output predictions/fusion_8_fold5 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_8`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定の注記:順序は保存された config.yaml に基づきます。保存された 8 ストリーム環境では torchvision 0.16.2 を使用しており、テンソルの Resize は既定でアンチエイリアスを適用しません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_8/fold_6/README.md b/models/fusion_8/fold_6/README.md index a1a1277d1e46ebe85adca315d278520d8a69dfe9..35dac7f85c475d7f44503df788a60643a16ad83c 100644 --- a/models/fusion_8/fold_6/README.md +++ b/models/fusion_8/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 6 --root /path/to/cases --output predictions/fusion_8_fold6 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_8; zero-based fold: 6. +Collection condition: `fusion_8`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config.yaml; saved eight-stream environment uses torchvision 0.16.2, whose Tensor Resize default was not antialiased. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 6 --root /path/to/cases --output predictions/fusion_8_fold6 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_8`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定註記:順序依保存的 config.yaml;保存的八流環境使用 torchvision 0.16.2,其張量 Resize 預設不啟用抗鋸齒。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 6 --root /path/to/cases --output predictions/fusion_8_fold6 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_8`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定の注記:順序は保存された config.yaml に基づきます。保存された 8 ストリーム環境では torchvision 0.16.2 を使用しており、テンソルの Resize は既定でアンチエイリアスを適用しません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_8/fold_7/README.md b/models/fusion_8/fold_7/README.md index 7bd7c4441ef962f171c98d5754b0978e88ff5db7..652ae96f43ee9cab57032a6171333c039cb7e332 100644 --- a/models/fusion_8/fold_7/README.md +++ b/models/fusion_8/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 7 --root /path/to/cases --output predictions/fusion_8_fold7 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_8; zero-based fold: 7. +Collection condition: `fusion_8`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config.yaml; saved eight-stream environment uses torchvision 0.16.2, whose Tensor Resize default was not antialiased. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 7 --root /path/to/cases --output predictions/fusion_8_fold7 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_8`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定註記:順序依保存的 config.yaml;保存的八流環境使用 torchvision 0.16.2,其張量 Resize 預設不啟用抗鋸齒。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 7 --root /path/to/cases --output predictions/fusion_8_fold7 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_8`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定の注記:順序は保存された config.yaml に基づきます。保存された 8 ストリーム環境では torchvision 0.16.2 を使用しており、テンソルの Resize は既定でアンチエイリアスを適用しません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_8/fold_8/README.md b/models/fusion_8/fold_8/README.md index 90bc5b15688254ec91425315a0251e5a40f1922b..31d755dc0c6a0d8bebc24b2a3cb79f2d96f9ea9b 100644 --- a/models/fusion_8/fold_8/README.md +++ b/models/fusion_8/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 8 --root /path/to/cases --output predictions/fusion_8_fold8 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_8; zero-based fold: 8. +Collection condition: `fusion_8`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config.yaml; saved eight-stream environment uses torchvision 0.16.2, whose Tensor Resize default was not antialiased. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 8 --root /path/to/cases --output predictions/fusion_8_fold8 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_8`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定註記:順序依保存的 config.yaml;保存的八流環境使用 torchvision 0.16.2,其張量 Resize 預設不啟用抗鋸齒。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 8 --root /path/to/cases --output predictions/fusion_8_fold8 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_8`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定の注記:順序は保存された config.yaml に基づきます。保存された 8 ストリーム環境では torchvision 0.16.2 を使用しており、テンソルの Resize は既定でアンチエイリアスを適用しません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/fusion_8/fold_9/README.md b/models/fusion_8/fold_9/README.md index d643befe756fec239b3bd6d24beea4d5c7ab458a..f7c0b3eec4dc3825f9639f024e910d4205b65c51 100644 --- a/models/fusion_8/fold_9/README.md +++ b/models/fusion_8/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"] +Ordered streams: `["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 9 --root /path/to/cases --output predictions/fusion_8_fold9 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: fusion_8; zero-based fold: 9. +Collection condition: `fusion_8`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Order follows saved config.yaml; saved eight-stream environment uses torchvision 0.16.2, whose Tensor Resize default was not antialiased. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 9 --root /path/to/cases --output predictions/fusion_8_fold9 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`fusion_8`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定註記:順序依保存的 config.yaml;保存的八流環境使用 torchvision 0.16.2,其張量 Resize 預設不啟用抗鋸齒。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical", "_horizontal", "color_full", "color_inner", "color_outer", "gray_full", "gray_inner", "gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_8 --fold 9 --root /path/to/cases --output predictions/fusion_8_fold9 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`fusion_8`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": false, + "crop": "center" +} +``` + +設定の注記:順序は保存された config.yaml に基づきます。保存された 8 ストリーム環境では torchvision 0.16.2 を使用しており、テンソルの Resize は既定でアンチエイリアスを適用しません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_full/fold_0/README.md b/models/single_color_full/fold_0/README.md index 84293db854c06d70fa6ba21e3b3cb562464565a1..ebd924efc1df4143a7ca94387dc1867a6d4e21c1 100644 --- a/models/single_color_full/fold_0/README.md +++ b/models/single_color_full/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_full"] +Ordered streams: `["color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 0 --root /path/to/cases --output predictions/single_color_full_fold0 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_full; zero-based fold: 0. +Collection condition: `single_color_full`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 0 --root /path/to/cases --output predictions/single_color_full_fold0 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_full`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 0 --root /path/to/cases --output predictions/single_color_full_fold0 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_full`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_full/fold_1/README.md b/models/single_color_full/fold_1/README.md index 61630841c56efaa0309dc14a06bbf7e7c03aace0..f7bd2fc173a7b898add72b6ba15ae79dceec7c28 100644 --- a/models/single_color_full/fold_1/README.md +++ b/models/single_color_full/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_full"] +Ordered streams: `["color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 1 --root /path/to/cases --output predictions/single_color_full_fold1 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_full; zero-based fold: 1. +Collection condition: `single_color_full`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 1 --root /path/to/cases --output predictions/single_color_full_fold1 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_full`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 1 --root /path/to/cases --output predictions/single_color_full_fold1 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_full`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_full/fold_2/README.md b/models/single_color_full/fold_2/README.md index 3eb91c9e7171ebfa880d18ad7c3d8dcdf3161172..686365889be07608e0b35c6b16b9febf9ce56720 100644 --- a/models/single_color_full/fold_2/README.md +++ b/models/single_color_full/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_full"] +Ordered streams: `["color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 2 --root /path/to/cases --output predictions/single_color_full_fold2 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_full; zero-based fold: 2. +Collection condition: `single_color_full`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 2 --root /path/to/cases --output predictions/single_color_full_fold2 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_full`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 2 --root /path/to/cases --output predictions/single_color_full_fold2 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_full`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_full/fold_3/README.md b/models/single_color_full/fold_3/README.md index a0ea470595991914c8f8eb4feea6c5a0ee4e43bc..622425ddd32dbbb9470fe3f68c254ef91b1b803d 100644 --- a/models/single_color_full/fold_3/README.md +++ b/models/single_color_full/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_full"] +Ordered streams: `["color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 3 --root /path/to/cases --output predictions/single_color_full_fold3 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_full; zero-based fold: 3. +Collection condition: `single_color_full`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 3 --root /path/to/cases --output predictions/single_color_full_fold3 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_full`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 3 --root /path/to/cases --output predictions/single_color_full_fold3 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_full`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_full/fold_4/README.md b/models/single_color_full/fold_4/README.md index 641a7af43e9956f5802fcf9ce97514f11a530532..b2f3135b65146429a21d54acbfca34b30b6bb71a 100644 --- a/models/single_color_full/fold_4/README.md +++ b/models/single_color_full/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_full"] +Ordered streams: `["color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 4 --root /path/to/cases --output predictions/single_color_full_fold4 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_full; zero-based fold: 4. +Collection condition: `single_color_full`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 4 --root /path/to/cases --output predictions/single_color_full_fold4 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_full`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 4 --root /path/to/cases --output predictions/single_color_full_fold4 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_full`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_full/fold_5/README.md b/models/single_color_full/fold_5/README.md index 5f88c89ecb0e5a31cc32bbfd83769aa112695de3..bd86771ab268c28f7de468d482a75c5154e4cc19 100644 --- a/models/single_color_full/fold_5/README.md +++ b/models/single_color_full/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_full"] +Ordered streams: `["color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 5 --root /path/to/cases --output predictions/single_color_full_fold5 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_full; zero-based fold: 5. +Collection condition: `single_color_full`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 5 --root /path/to/cases --output predictions/single_color_full_fold5 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_full`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 5 --root /path/to/cases --output predictions/single_color_full_fold5 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_full`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_full/fold_6/README.md b/models/single_color_full/fold_6/README.md index 8ea57ca11e3cb7f277d3d2b4f510ed2c998b7839..bd75e160e9ab7030e63afd87b509daac28cacb0e 100644 --- a/models/single_color_full/fold_6/README.md +++ b/models/single_color_full/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_full"] +Ordered streams: `["color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 6 --root /path/to/cases --output predictions/single_color_full_fold6 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_full; zero-based fold: 6. +Collection condition: `single_color_full`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 6 --root /path/to/cases --output predictions/single_color_full_fold6 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_full`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 6 --root /path/to/cases --output predictions/single_color_full_fold6 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_full`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_full/fold_7/README.md b/models/single_color_full/fold_7/README.md index 973ae1381836c4cab37f99f03f3b9e9aec285d5f..71825bb2d8b1d777e73b88ecb06d8ec263762f2e 100644 --- a/models/single_color_full/fold_7/README.md +++ b/models/single_color_full/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_full"] +Ordered streams: `["color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 7 --root /path/to/cases --output predictions/single_color_full_fold7 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_full; zero-based fold: 7. +Collection condition: `single_color_full`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 7 --root /path/to/cases --output predictions/single_color_full_fold7 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_full`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 7 --root /path/to/cases --output predictions/single_color_full_fold7 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_full`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_full/fold_8/README.md b/models/single_color_full/fold_8/README.md index 4842c1701518778a7b890bea37910ea7ad785b53..d4d3d268d1602868770edf551826f2f5ec4cb09c 100644 --- a/models/single_color_full/fold_8/README.md +++ b/models/single_color_full/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_full"] +Ordered streams: `["color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 8 --root /path/to/cases --output predictions/single_color_full_fold8 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_full; zero-based fold: 8. +Collection condition: `single_color_full`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 8 --root /path/to/cases --output predictions/single_color_full_fold8 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_full`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 8 --root /path/to/cases --output predictions/single_color_full_fold8 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_full`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_full/fold_9/README.md b/models/single_color_full/fold_9/README.md index 02e02823c1a34401559861137de8897dfbfdaa3e..1d0b6b51cf27f5e97b6ac2227d713330516a886b 100644 --- a/models/single_color_full/fold_9/README.md +++ b/models/single_color_full/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_full"] +Ordered streams: `["color_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 9 --root /path/to/cases --output predictions/single_color_full_fold9 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_full; zero-based fold: 9. +Collection condition: `single_color_full`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 9 --root /path/to/cases --output predictions/single_color_full_fold9 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_full`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_full --fold 9 --root /path/to/cases --output predictions/single_color_full_fold9 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_full`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_inner/fold_0/README.md b/models/single_color_inner/fold_0/README.md index 12fe777da72d5b369819b6ea1390800fa705fb9b..c5e627cb5ff6932f4f481be35721ef6dec6bacf8 100644 --- a/models/single_color_inner/fold_0/README.md +++ b/models/single_color_inner/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner"] +Ordered streams: `["color_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 0 --root /path/to/cases --output predictions/single_color_inner_fold0 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_inner; zero-based fold: 0. +Collection condition: `single_color_inner`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 0 --root /path/to/cases --output predictions/single_color_inner_fold0 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_inner`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 0 --root /path/to/cases --output predictions/single_color_inner_fold0 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_inner`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_inner/fold_1/README.md b/models/single_color_inner/fold_1/README.md index c660784771a7e8b12c04ec9fc8693eb5f2ab0ed5..a7a08984e08cd827100d4c6784156b60d018eac0 100644 --- a/models/single_color_inner/fold_1/README.md +++ b/models/single_color_inner/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner"] +Ordered streams: `["color_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 1 --root /path/to/cases --output predictions/single_color_inner_fold1 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_inner; zero-based fold: 1. +Collection condition: `single_color_inner`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 1 --root /path/to/cases --output predictions/single_color_inner_fold1 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_inner`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 1 --root /path/to/cases --output predictions/single_color_inner_fold1 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_inner`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_inner/fold_2/README.md b/models/single_color_inner/fold_2/README.md index 695c6688c2e8c750ed0b37ecbbcc8a7185f21f16..739d9812555d6b6596b61ca15ea242b693c441df 100644 --- a/models/single_color_inner/fold_2/README.md +++ b/models/single_color_inner/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner"] +Ordered streams: `["color_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 2 --root /path/to/cases --output predictions/single_color_inner_fold2 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_inner; zero-based fold: 2. +Collection condition: `single_color_inner`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 2 --root /path/to/cases --output predictions/single_color_inner_fold2 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_inner`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 2 --root /path/to/cases --output predictions/single_color_inner_fold2 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_inner`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_inner/fold_3/README.md b/models/single_color_inner/fold_3/README.md index 94a21f556221e8aae8f1b9f5dcf5918c7697d747..011b8301d0678e2f9be8f80f3c85cdf213a59abb 100644 --- a/models/single_color_inner/fold_3/README.md +++ b/models/single_color_inner/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner"] +Ordered streams: `["color_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 3 --root /path/to/cases --output predictions/single_color_inner_fold3 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_inner; zero-based fold: 3. +Collection condition: `single_color_inner`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 3 --root /path/to/cases --output predictions/single_color_inner_fold3 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_inner`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 3 --root /path/to/cases --output predictions/single_color_inner_fold3 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_inner`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_inner/fold_4/README.md b/models/single_color_inner/fold_4/README.md index 297f7afd754ef2b1db731f7f82b0912f77ed21a6..e6110386e02993f35a79b2feae5b1afac16cf3e1 100644 --- a/models/single_color_inner/fold_4/README.md +++ b/models/single_color_inner/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner"] +Ordered streams: `["color_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 4 --root /path/to/cases --output predictions/single_color_inner_fold4 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_inner; zero-based fold: 4. +Collection condition: `single_color_inner`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 4 --root /path/to/cases --output predictions/single_color_inner_fold4 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_inner`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 4 --root /path/to/cases --output predictions/single_color_inner_fold4 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_inner`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_inner/fold_5/README.md b/models/single_color_inner/fold_5/README.md index 7c5b91bad74d93e962044c2f86b8e2b0da757c3f..896773a86e7e81495e1223401ad5c356014dcc9a 100644 --- a/models/single_color_inner/fold_5/README.md +++ b/models/single_color_inner/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner"] +Ordered streams: `["color_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 5 --root /path/to/cases --output predictions/single_color_inner_fold5 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_inner; zero-based fold: 5. +Collection condition: `single_color_inner`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 5 --root /path/to/cases --output predictions/single_color_inner_fold5 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_inner`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 5 --root /path/to/cases --output predictions/single_color_inner_fold5 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_inner`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_inner/fold_6/README.md b/models/single_color_inner/fold_6/README.md index 37041d1960a5ca8570d5d8b009879c51d828d0a6..fbcf83176291832c4cf38b2e56d5b6a15d4379db 100644 --- a/models/single_color_inner/fold_6/README.md +++ b/models/single_color_inner/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner"] +Ordered streams: `["color_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 6 --root /path/to/cases --output predictions/single_color_inner_fold6 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_inner; zero-based fold: 6. +Collection condition: `single_color_inner`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 6 --root /path/to/cases --output predictions/single_color_inner_fold6 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_inner`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 6 --root /path/to/cases --output predictions/single_color_inner_fold6 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_inner`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_inner/fold_7/README.md b/models/single_color_inner/fold_7/README.md index 05f21f4522951f678b0ffbfb8f658c5e349f2729..7c6390db4ae35be89a415dad7abbf166f4af14b6 100644 --- a/models/single_color_inner/fold_7/README.md +++ b/models/single_color_inner/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner"] +Ordered streams: `["color_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 7 --root /path/to/cases --output predictions/single_color_inner_fold7 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_inner; zero-based fold: 7. +Collection condition: `single_color_inner`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 7 --root /path/to/cases --output predictions/single_color_inner_fold7 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_inner`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 7 --root /path/to/cases --output predictions/single_color_inner_fold7 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_inner`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_inner/fold_8/README.md b/models/single_color_inner/fold_8/README.md index 4462df1614830b3a25bed0d6a910859436ae0def..78cf4122ba3acec7802a231597e513e201c13e5b 100644 --- a/models/single_color_inner/fold_8/README.md +++ b/models/single_color_inner/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner"] +Ordered streams: `["color_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 8 --root /path/to/cases --output predictions/single_color_inner_fold8 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_inner; zero-based fold: 8. +Collection condition: `single_color_inner`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 8 --root /path/to/cases --output predictions/single_color_inner_fold8 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_inner`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 8 --root /path/to/cases --output predictions/single_color_inner_fold8 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_inner`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_inner/fold_9/README.md b/models/single_color_inner/fold_9/README.md index 753fef7353c8b626cc5cf4e51c4670cd20d7313e..cafa437848a6fd7b51c905125517e109644c9fc8 100644 --- a/models/single_color_inner/fold_9/README.md +++ b/models/single_color_inner/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_inner"] +Ordered streams: `["color_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 9 --root /path/to/cases --output predictions/single_color_inner_fold9 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_inner; zero-based fold: 9. +Collection condition: `single_color_inner`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 9 --root /path/to/cases --output predictions/single_color_inner_fold9 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_inner`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_inner --fold 9 --root /path/to/cases --output predictions/single_color_inner_fold9 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_inner`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_outer/fold_0/README.md b/models/single_color_outer/fold_0/README.md index abfffc50270f48cc4a2046982bad87190968ed9c..cfc8494fe05d1fbbf66089d7f4d6402ae8ed244b 100644 --- a/models/single_color_outer/fold_0/README.md +++ b/models/single_color_outer/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_outer"] +Ordered streams: `["color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 0 --root /path/to/cases --output predictions/single_color_outer_fold0 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_outer; zero-based fold: 0. +Collection condition: `single_color_outer`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 0 --root /path/to/cases --output predictions/single_color_outer_fold0 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_outer`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 0 --root /path/to/cases --output predictions/single_color_outer_fold0 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_outer`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_outer/fold_1/README.md b/models/single_color_outer/fold_1/README.md index 91b5e1bcc504c5e84827c4969f1a249ad32baf5b..13bf27c661d3229fb05cf4988240ae71bee8afc3 100644 --- a/models/single_color_outer/fold_1/README.md +++ b/models/single_color_outer/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_outer"] +Ordered streams: `["color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 1 --root /path/to/cases --output predictions/single_color_outer_fold1 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_outer; zero-based fold: 1. +Collection condition: `single_color_outer`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 1 --root /path/to/cases --output predictions/single_color_outer_fold1 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_outer`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 1 --root /path/to/cases --output predictions/single_color_outer_fold1 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_outer`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_outer/fold_2/README.md b/models/single_color_outer/fold_2/README.md index 48082da7995323e896c1d153fd837cb7506bcda7..2441db295138a1ecdb79e7fbc028c00fabc23834 100644 --- a/models/single_color_outer/fold_2/README.md +++ b/models/single_color_outer/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_outer"] +Ordered streams: `["color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 2 --root /path/to/cases --output predictions/single_color_outer_fold2 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_outer; zero-based fold: 2. +Collection condition: `single_color_outer`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 2 --root /path/to/cases --output predictions/single_color_outer_fold2 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_outer`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 2 --root /path/to/cases --output predictions/single_color_outer_fold2 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_outer`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_outer/fold_3/README.md b/models/single_color_outer/fold_3/README.md index 2c9430e8252313902f8f240f138607b2476932b9..417687d4bb467890ded3d92fcaeb035615ba4bc7 100644 --- a/models/single_color_outer/fold_3/README.md +++ b/models/single_color_outer/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_outer"] +Ordered streams: `["color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 3 --root /path/to/cases --output predictions/single_color_outer_fold3 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_outer; zero-based fold: 3. +Collection condition: `single_color_outer`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 3 --root /path/to/cases --output predictions/single_color_outer_fold3 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_outer`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 3 --root /path/to/cases --output predictions/single_color_outer_fold3 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_outer`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_outer/fold_4/README.md b/models/single_color_outer/fold_4/README.md index 9c3737af9faa8a32b2e0a1419084481381d0a3bc..e835b6dc1fbd63da5dbb506d54f4acd85f6c65f4 100644 --- a/models/single_color_outer/fold_4/README.md +++ b/models/single_color_outer/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_outer"] +Ordered streams: `["color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 4 --root /path/to/cases --output predictions/single_color_outer_fold4 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_outer; zero-based fold: 4. +Collection condition: `single_color_outer`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 4 --root /path/to/cases --output predictions/single_color_outer_fold4 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_outer`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 4 --root /path/to/cases --output predictions/single_color_outer_fold4 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_outer`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_outer/fold_5/README.md b/models/single_color_outer/fold_5/README.md index f80c744621440969f21582c90712ab6c42833bd2..53b25ce8d1bd485120a94d9a425f097d80355e73 100644 --- a/models/single_color_outer/fold_5/README.md +++ b/models/single_color_outer/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_outer"] +Ordered streams: `["color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 5 --root /path/to/cases --output predictions/single_color_outer_fold5 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_outer; zero-based fold: 5. +Collection condition: `single_color_outer`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 5 --root /path/to/cases --output predictions/single_color_outer_fold5 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_outer`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 5 --root /path/to/cases --output predictions/single_color_outer_fold5 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_outer`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_outer/fold_6/README.md b/models/single_color_outer/fold_6/README.md index d3f0268502a916f8922d51e56f568b8ea5580526..76fcd507fde3853d1ba00e8028f63969ad5ca5ab 100644 --- a/models/single_color_outer/fold_6/README.md +++ b/models/single_color_outer/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_outer"] +Ordered streams: `["color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 6 --root /path/to/cases --output predictions/single_color_outer_fold6 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_outer; zero-based fold: 6. +Collection condition: `single_color_outer`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 6 --root /path/to/cases --output predictions/single_color_outer_fold6 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_outer`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 6 --root /path/to/cases --output predictions/single_color_outer_fold6 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_outer`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_outer/fold_7/README.md b/models/single_color_outer/fold_7/README.md index f0d7cd7c5319b3e0f45c892b04d45d51b89c04f5..4b71762244a46aa1b7a72b4b235671d01aa5fa36 100644 --- a/models/single_color_outer/fold_7/README.md +++ b/models/single_color_outer/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_outer"] +Ordered streams: `["color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 7 --root /path/to/cases --output predictions/single_color_outer_fold7 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_outer; zero-based fold: 7. +Collection condition: `single_color_outer`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 7 --root /path/to/cases --output predictions/single_color_outer_fold7 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_outer`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 7 --root /path/to/cases --output predictions/single_color_outer_fold7 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_outer`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_outer/fold_8/README.md b/models/single_color_outer/fold_8/README.md index a87136961c482dfb664fc5b1104e091a9a97fb83..a6f195f022e79941faf9f614c4c3d5815ca44754 100644 --- a/models/single_color_outer/fold_8/README.md +++ b/models/single_color_outer/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_outer"] +Ordered streams: `["color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 8 --root /path/to/cases --output predictions/single_color_outer_fold8 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_outer; zero-based fold: 8. +Collection condition: `single_color_outer`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 8 --root /path/to/cases --output predictions/single_color_outer_fold8 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_outer`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 8 --root /path/to/cases --output predictions/single_color_outer_fold8 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_outer`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_color_outer/fold_9/README.md b/models/single_color_outer/fold_9/README.md index 936f1aae3778a216693c07e3ead6961655c2b8dd..8379f267b36ae21c53374b5a440b34411039f76c 100644 --- a/models/single_color_outer/fold_9/README.md +++ b/models/single_color_outer/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["color_outer"] +Ordered streams: `["color_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 9 --root /path/to/cases --output predictions/single_color_outer_fold9 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_color_outer; zero-based fold: 9. +Collection condition: `single_color_outer`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["color_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 9 --root /path/to/cases --output predictions/single_color_outer_fold9 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_color_outer`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["color_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_color_outer --fold 9 --root /path/to/cases --output predictions/single_color_outer_fold9 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_color_outer`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_full/fold_0/README.md b/models/single_gray_full/fold_0/README.md index 64399fd92d6af2edf9e48bc4632e2eed2f1e2f41..b7413fa16e6d52613942b856c2c592a49551a7a7 100644 --- a/models/single_gray_full/fold_0/README.md +++ b/models/single_gray_full/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_full"] +Ordered streams: `["gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 0 --root /path/to/cases --output predictions/single_gray_full_fold0 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_full; zero-based fold: 0. +Collection condition: `single_gray_full`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 0 --root /path/to/cases --output predictions/single_gray_full_fold0 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_full`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 0 --root /path/to/cases --output predictions/single_gray_full_fold0 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_full`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_full/fold_1/README.md b/models/single_gray_full/fold_1/README.md index 0240d81079c02107e39d5edfdc5f8cc95ca13228..3faf33a7a67b76bfb544da918081298da96c57fc 100644 --- a/models/single_gray_full/fold_1/README.md +++ b/models/single_gray_full/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_full"] +Ordered streams: `["gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 1 --root /path/to/cases --output predictions/single_gray_full_fold1 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_full; zero-based fold: 1. +Collection condition: `single_gray_full`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 1 --root /path/to/cases --output predictions/single_gray_full_fold1 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_full`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 1 --root /path/to/cases --output predictions/single_gray_full_fold1 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_full`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_full/fold_2/README.md b/models/single_gray_full/fold_2/README.md index 1a3337c2c11cb5f622b0ab293c15a9def617a03b..df66d6690d188f12a28e00182d3c4b48aa3cc4e0 100644 --- a/models/single_gray_full/fold_2/README.md +++ b/models/single_gray_full/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_full"] +Ordered streams: `["gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 2 --root /path/to/cases --output predictions/single_gray_full_fold2 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_full; zero-based fold: 2. +Collection condition: `single_gray_full`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 2 --root /path/to/cases --output predictions/single_gray_full_fold2 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_full`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 2 --root /path/to/cases --output predictions/single_gray_full_fold2 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_full`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_full/fold_3/README.md b/models/single_gray_full/fold_3/README.md index a8e9617b650f7886c76ae7c2832412596238cbdd..e5c7f8af26dd9512bb8ec0022f4120c96f4bbc2f 100644 --- a/models/single_gray_full/fold_3/README.md +++ b/models/single_gray_full/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_full"] +Ordered streams: `["gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 3 --root /path/to/cases --output predictions/single_gray_full_fold3 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_full; zero-based fold: 3. +Collection condition: `single_gray_full`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 3 --root /path/to/cases --output predictions/single_gray_full_fold3 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_full`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 3 --root /path/to/cases --output predictions/single_gray_full_fold3 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_full`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_full/fold_4/README.md b/models/single_gray_full/fold_4/README.md index 1f1ef58f9deca4cd8f188f82e292950aac4afdb7..9eb2c5f576d000cc597736767ff9c8dc4783a524 100644 --- a/models/single_gray_full/fold_4/README.md +++ b/models/single_gray_full/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_full"] +Ordered streams: `["gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 4 --root /path/to/cases --output predictions/single_gray_full_fold4 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_full; zero-based fold: 4. +Collection condition: `single_gray_full`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 4 --root /path/to/cases --output predictions/single_gray_full_fold4 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_full`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 4 --root /path/to/cases --output predictions/single_gray_full_fold4 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_full`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_full/fold_5/README.md b/models/single_gray_full/fold_5/README.md index 21863a0d837af42e5c7eed8ad2efd03b974891d5..193d2727628cdfcd10c7edb4703399c4a7f33585 100644 --- a/models/single_gray_full/fold_5/README.md +++ b/models/single_gray_full/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_full"] +Ordered streams: `["gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 5 --root /path/to/cases --output predictions/single_gray_full_fold5 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_full; zero-based fold: 5. +Collection condition: `single_gray_full`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 5 --root /path/to/cases --output predictions/single_gray_full_fold5 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_full`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 5 --root /path/to/cases --output predictions/single_gray_full_fold5 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_full`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_full/fold_6/README.md b/models/single_gray_full/fold_6/README.md index 6cede0beb142a930bda9941dea0b7ff3aa092d62..9481e763dc691874c9ffd52c12f8b1a10f3bbc56 100644 --- a/models/single_gray_full/fold_6/README.md +++ b/models/single_gray_full/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_full"] +Ordered streams: `["gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 6 --root /path/to/cases --output predictions/single_gray_full_fold6 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_full; zero-based fold: 6. +Collection condition: `single_gray_full`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 6 --root /path/to/cases --output predictions/single_gray_full_fold6 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_full`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 6 --root /path/to/cases --output predictions/single_gray_full_fold6 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_full`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_full/fold_7/README.md b/models/single_gray_full/fold_7/README.md index 52d790ba7708281fe4becb382180632714f2a603..5fae7fca7b5778f806e04f3fecc3655595b5a5c8 100644 --- a/models/single_gray_full/fold_7/README.md +++ b/models/single_gray_full/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_full"] +Ordered streams: `["gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 7 --root /path/to/cases --output predictions/single_gray_full_fold7 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_full; zero-based fold: 7. +Collection condition: `single_gray_full`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 7 --root /path/to/cases --output predictions/single_gray_full_fold7 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_full`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 7 --root /path/to/cases --output predictions/single_gray_full_fold7 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_full`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_full/fold_8/README.md b/models/single_gray_full/fold_8/README.md index b57d3dad0822b16b980070aab06d790f956362c5..9f0f9b5ad1654971c336ad70fc2e43fa7a934da0 100644 --- a/models/single_gray_full/fold_8/README.md +++ b/models/single_gray_full/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_full"] +Ordered streams: `["gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 8 --root /path/to/cases --output predictions/single_gray_full_fold8 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_full; zero-based fold: 8. +Collection condition: `single_gray_full`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 8 --root /path/to/cases --output predictions/single_gray_full_fold8 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_full`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 8 --root /path/to/cases --output predictions/single_gray_full_fold8 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_full`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_full/fold_9/README.md b/models/single_gray_full/fold_9/README.md index 387365dae4e61ed8fcf6c18262649dee5f6bdc36..f4e629ece629d8caf745fa673a6575567eabb95f 100644 --- a/models/single_gray_full/fold_9/README.md +++ b/models/single_gray_full/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_full"] +Ordered streams: `["gray_full"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 9 --root /path/to/cases --output predictions/single_gray_full_fold9 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_full; zero-based fold: 9. +Collection condition: `single_gray_full`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_full"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 9 --root /path/to/cases --output predictions/single_gray_full_fold9 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_full`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_full"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_full --fold 9 --root /path/to/cases --output predictions/single_gray_full_fold9 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_full`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_inner/fold_0/README.md b/models/single_gray_inner/fold_0/README.md index d71031a1728e381c5c832f174e3997109f33d517..c670676e64f8c0fe316a5b0840a6ab29ce6315a7 100644 --- a/models/single_gray_inner/fold_0/README.md +++ b/models/single_gray_inner/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner"] +Ordered streams: `["gray_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash 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 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_inner; zero-based fold: 0. +Collection condition: `single_gray_inner`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +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 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_inner`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +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 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_inner`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_inner/fold_1/README.md b/models/single_gray_inner/fold_1/README.md index 79d9e14e2c1fc7cd0ce92f8fee2254f33b28b17b..ebc89c9a8e73dc20d3d617daa4bec92058c2fced 100644 --- a/models/single_gray_inner/fold_1/README.md +++ b/models/single_gray_inner/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner"] +Ordered streams: `["gray_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 1 --root /path/to/cases --output predictions/single_gray_inner_fold1 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_inner; zero-based fold: 1. +Collection condition: `single_gray_inner`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 1 --root /path/to/cases --output predictions/single_gray_inner_fold1 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_inner`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 1 --root /path/to/cases --output predictions/single_gray_inner_fold1 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_inner`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_inner/fold_2/README.md b/models/single_gray_inner/fold_2/README.md index 260f72acef889c69f82abbe8263f37b4d66cb65a..d463b2f79779bbae314cd59ef1bf3dd20f8b7c5f 100644 --- a/models/single_gray_inner/fold_2/README.md +++ b/models/single_gray_inner/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner"] +Ordered streams: `["gray_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 2 --root /path/to/cases --output predictions/single_gray_inner_fold2 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_inner; zero-based fold: 2. +Collection condition: `single_gray_inner`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 2 --root /path/to/cases --output predictions/single_gray_inner_fold2 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_inner`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 2 --root /path/to/cases --output predictions/single_gray_inner_fold2 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_inner`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_inner/fold_3/README.md b/models/single_gray_inner/fold_3/README.md index 96f195e83797b5b54caecb557f52bf363667a4c5..acacd1f5e81b1ff56953b40add9425dd16cafaff 100644 --- a/models/single_gray_inner/fold_3/README.md +++ b/models/single_gray_inner/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner"] +Ordered streams: `["gray_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 3 --root /path/to/cases --output predictions/single_gray_inner_fold3 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_inner; zero-based fold: 3. +Collection condition: `single_gray_inner`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 3 --root /path/to/cases --output predictions/single_gray_inner_fold3 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_inner`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 3 --root /path/to/cases --output predictions/single_gray_inner_fold3 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_inner`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_inner/fold_4/README.md b/models/single_gray_inner/fold_4/README.md index 143aaea267d33a58ff9e96cab1d7cee487864e44..42bcd9b181e8df4049df5842ff6760f76b217256 100644 --- a/models/single_gray_inner/fold_4/README.md +++ b/models/single_gray_inner/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner"] +Ordered streams: `["gray_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 4 --root /path/to/cases --output predictions/single_gray_inner_fold4 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_inner; zero-based fold: 4. +Collection condition: `single_gray_inner`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 4 --root /path/to/cases --output predictions/single_gray_inner_fold4 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_inner`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 4 --root /path/to/cases --output predictions/single_gray_inner_fold4 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_inner`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_inner/fold_5/README.md b/models/single_gray_inner/fold_5/README.md index fd41ef1815045f6ece150f36a04d4abba4b2e723..ed5ba5bd545a57a9bfe03165a61db4158d69f1c6 100644 --- a/models/single_gray_inner/fold_5/README.md +++ b/models/single_gray_inner/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner"] +Ordered streams: `["gray_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 5 --root /path/to/cases --output predictions/single_gray_inner_fold5 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_inner; zero-based fold: 5. +Collection condition: `single_gray_inner`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 5 --root /path/to/cases --output predictions/single_gray_inner_fold5 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_inner`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 5 --root /path/to/cases --output predictions/single_gray_inner_fold5 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_inner`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_inner/fold_6/README.md b/models/single_gray_inner/fold_6/README.md index d3fac3df88aec2e66de6e7e18314e0676cc2c8c3..9095dc6e7d413ea5ea3cf5ecf9284ccb532134b0 100644 --- a/models/single_gray_inner/fold_6/README.md +++ b/models/single_gray_inner/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner"] +Ordered streams: `["gray_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 6 --root /path/to/cases --output predictions/single_gray_inner_fold6 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_inner; zero-based fold: 6. +Collection condition: `single_gray_inner`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 6 --root /path/to/cases --output predictions/single_gray_inner_fold6 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_inner`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 6 --root /path/to/cases --output predictions/single_gray_inner_fold6 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_inner`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_inner/fold_7/README.md b/models/single_gray_inner/fold_7/README.md index bf0030beba72c1afcc009b096947418142653315..4f6f26069b187559fa3d5c7b5be6957cc28e1814 100644 --- a/models/single_gray_inner/fold_7/README.md +++ b/models/single_gray_inner/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner"] +Ordered streams: `["gray_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 7 --root /path/to/cases --output predictions/single_gray_inner_fold7 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_inner; zero-based fold: 7. +Collection condition: `single_gray_inner`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 7 --root /path/to/cases --output predictions/single_gray_inner_fold7 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_inner`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 7 --root /path/to/cases --output predictions/single_gray_inner_fold7 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_inner`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_inner/fold_8/README.md b/models/single_gray_inner/fold_8/README.md index 7409c4e6a8f398c724ef57b1378c00f91aabf7df..d1cb829a30039c3824cb8e019698f04c68ebc67f 100644 --- a/models/single_gray_inner/fold_8/README.md +++ b/models/single_gray_inner/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner"] +Ordered streams: `["gray_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 8 --root /path/to/cases --output predictions/single_gray_inner_fold8 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_inner; zero-based fold: 8. +Collection condition: `single_gray_inner`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 8 --root /path/to/cases --output predictions/single_gray_inner_fold8 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_inner`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 8 --root /path/to/cases --output predictions/single_gray_inner_fold8 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_inner`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_inner/fold_9/README.md b/models/single_gray_inner/fold_9/README.md index 999869171ff667e6799410ad15a93f5e5a41d25c..da01dda09ca11ab9336037f53001d28cd9c5f030 100644 --- a/models/single_gray_inner/fold_9/README.md +++ b/models/single_gray_inner/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_inner"] +Ordered streams: `["gray_inner"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 9 --root /path/to/cases --output predictions/single_gray_inner_fold9 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_inner; zero-based fold: 9. +Collection condition: `single_gray_inner`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_inner"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 9 --root /path/to/cases --output predictions/single_gray_inner_fold9 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_inner`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_inner"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_inner --fold 9 --root /path/to/cases --output predictions/single_gray_inner_fold9 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_inner`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_outer/fold_0/README.md b/models/single_gray_outer/fold_0/README.md index d935ebf997696b2c83e72646ac89e536c5ffd98d..821806dbb4d02e705a91a8e437175bbe50262a70 100644 --- a/models/single_gray_outer/fold_0/README.md +++ b/models/single_gray_outer/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_outer"] +Ordered streams: `["gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 0 --root /path/to/cases --output predictions/single_gray_outer_fold0 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_outer; zero-based fold: 0. +Collection condition: `single_gray_outer`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 0 --root /path/to/cases --output predictions/single_gray_outer_fold0 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_outer`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 0 --root /path/to/cases --output predictions/single_gray_outer_fold0 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_outer`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_outer/fold_1/README.md b/models/single_gray_outer/fold_1/README.md index 8473a1ac079796780cf882e144003ded8035e11b..bd8dbaaa9ce652e4e6764f20bf859e55580d319e 100644 --- a/models/single_gray_outer/fold_1/README.md +++ b/models/single_gray_outer/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_outer"] +Ordered streams: `["gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 1 --root /path/to/cases --output predictions/single_gray_outer_fold1 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_outer; zero-based fold: 1. +Collection condition: `single_gray_outer`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 1 --root /path/to/cases --output predictions/single_gray_outer_fold1 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_outer`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 1 --root /path/to/cases --output predictions/single_gray_outer_fold1 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_outer`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_outer/fold_2/README.md b/models/single_gray_outer/fold_2/README.md index 35e346cd84324f08fbb22ca0e6bbfefa7f931d6d..7dd6cc7aa888c7ad1a7e52bebd57513f88044578 100644 --- a/models/single_gray_outer/fold_2/README.md +++ b/models/single_gray_outer/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_outer"] +Ordered streams: `["gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 2 --root /path/to/cases --output predictions/single_gray_outer_fold2 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_outer; zero-based fold: 2. +Collection condition: `single_gray_outer`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 2 --root /path/to/cases --output predictions/single_gray_outer_fold2 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_outer`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 2 --root /path/to/cases --output predictions/single_gray_outer_fold2 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_outer`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_outer/fold_3/README.md b/models/single_gray_outer/fold_3/README.md index 03afc939a76cf146af13e898ad1154ca4711299c..ef66af88196f2e0beecb4046398290b09e61244c 100644 --- a/models/single_gray_outer/fold_3/README.md +++ b/models/single_gray_outer/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_outer"] +Ordered streams: `["gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 3 --root /path/to/cases --output predictions/single_gray_outer_fold3 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_outer; zero-based fold: 3. +Collection condition: `single_gray_outer`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 3 --root /path/to/cases --output predictions/single_gray_outer_fold3 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_outer`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 3 --root /path/to/cases --output predictions/single_gray_outer_fold3 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_outer`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_outer/fold_4/README.md b/models/single_gray_outer/fold_4/README.md index e1e1486c99587a3aa3f3038067d33f5bb5eb97c9..60d20757e52f162133f1b58542eb897a54182d9f 100644 --- a/models/single_gray_outer/fold_4/README.md +++ b/models/single_gray_outer/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_outer"] +Ordered streams: `["gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 4 --root /path/to/cases --output predictions/single_gray_outer_fold4 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_outer; zero-based fold: 4. +Collection condition: `single_gray_outer`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 4 --root /path/to/cases --output predictions/single_gray_outer_fold4 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_outer`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 4 --root /path/to/cases --output predictions/single_gray_outer_fold4 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_outer`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_outer/fold_5/README.md b/models/single_gray_outer/fold_5/README.md index 1af81f69d9e9ede6e78ad09a5ef8ba7caf445b2c..09df0199cd27cce4bbed997b2fdb889f65d57562 100644 --- a/models/single_gray_outer/fold_5/README.md +++ b/models/single_gray_outer/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_outer"] +Ordered streams: `["gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 5 --root /path/to/cases --output predictions/single_gray_outer_fold5 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_outer; zero-based fold: 5. +Collection condition: `single_gray_outer`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 5 --root /path/to/cases --output predictions/single_gray_outer_fold5 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_outer`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 5 --root /path/to/cases --output predictions/single_gray_outer_fold5 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_outer`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_outer/fold_6/README.md b/models/single_gray_outer/fold_6/README.md index 2f32fbe3fbbdbc15fd06be5398c9bcdfaff6c35e..9a9c2fab9e012627e496a63ba7e60045eb57af66 100644 --- a/models/single_gray_outer/fold_6/README.md +++ b/models/single_gray_outer/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_outer"] +Ordered streams: `["gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 6 --root /path/to/cases --output predictions/single_gray_outer_fold6 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_outer; zero-based fold: 6. +Collection condition: `single_gray_outer`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 6 --root /path/to/cases --output predictions/single_gray_outer_fold6 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_outer`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 6 --root /path/to/cases --output predictions/single_gray_outer_fold6 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_outer`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_outer/fold_7/README.md b/models/single_gray_outer/fold_7/README.md index 35fabf1685ec885724062ea8ca6812ddfa83f139..a88b6b6a36346864260bf25ea54460b0303288ea 100644 --- a/models/single_gray_outer/fold_7/README.md +++ b/models/single_gray_outer/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_outer"] +Ordered streams: `["gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 7 --root /path/to/cases --output predictions/single_gray_outer_fold7 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_outer; zero-based fold: 7. +Collection condition: `single_gray_outer`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 7 --root /path/to/cases --output predictions/single_gray_outer_fold7 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_outer`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 7 --root /path/to/cases --output predictions/single_gray_outer_fold7 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_outer`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_outer/fold_8/README.md b/models/single_gray_outer/fold_8/README.md index 11b729842f5e30589ae9e11de7a6851275d977fd..ffca8a104275706fe529e60dce6875b8ed2126ba 100644 --- a/models/single_gray_outer/fold_8/README.md +++ b/models/single_gray_outer/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_outer"] +Ordered streams: `["gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 8 --root /path/to/cases --output predictions/single_gray_outer_fold8 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_outer; zero-based fold: 8. +Collection condition: `single_gray_outer`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 8 --root /path/to/cases --output predictions/single_gray_outer_fold8 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_outer`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 8 --root /path/to/cases --output predictions/single_gray_outer_fold8 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_outer`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_gray_outer/fold_9/README.md b/models/single_gray_outer/fold_9/README.md index b3f51c81e98a4fc201e610bc7c8f9373705c1c2d..39a0d89d4adf6c6355933f78e4f6e177f32e4554 100644 --- a/models/single_gray_outer/fold_9/README.md +++ b/models/single_gray_outer/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["gray_outer"] +Ordered streams: `["gray_outer"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 9 --root /path/to/cases --output predictions/single_gray_outer_fold9 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_gray_outer; zero-based fold: 9. +Collection condition: `single_gray_outer`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["gray_outer"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 9 --root /path/to/cases --output predictions/single_gray_outer_fold9 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_gray_outer`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["gray_outer"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_gray_outer --fold 9 --root /path/to/cases --output predictions/single_gray_outer_fold9 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_gray_outer`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_horizontal/fold_0/README.md b/models/single_horizontal/fold_0/README.md index 6480a2086133db10ad29e0b203d30218344fa891..6c823fbc17cc776193db2ecad19ad42f9f849f82 100644 --- a/models/single_horizontal/fold_0/README.md +++ b/models/single_horizontal/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_horizontal"] +Ordered streams: `["_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 0 --root /path/to/cases --output predictions/single_horizontal_fold0 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_horizontal; zero-based fold: 0. +Collection condition: `single_horizontal`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 0 --root /path/to/cases --output predictions/single_horizontal_fold0 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_horizontal`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 0 --root /path/to/cases --output predictions/single_horizontal_fold0 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_horizontal`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_horizontal/fold_1/README.md b/models/single_horizontal/fold_1/README.md index 04891592e460d6ff22d22a46c64cf8924cacec6c..833e849375b1de80b30df8c67bbe632c25a5973e 100644 --- a/models/single_horizontal/fold_1/README.md +++ b/models/single_horizontal/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_horizontal"] +Ordered streams: `["_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 1 --root /path/to/cases --output predictions/single_horizontal_fold1 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_horizontal; zero-based fold: 1. +Collection condition: `single_horizontal`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 1 --root /path/to/cases --output predictions/single_horizontal_fold1 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_horizontal`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 1 --root /path/to/cases --output predictions/single_horizontal_fold1 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_horizontal`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_horizontal/fold_2/README.md b/models/single_horizontal/fold_2/README.md index 0842b34e7cf2a37e60cd03275f000c6d76be3be9..4477b47c49602f32691bb5556b2f1749522109db 100644 --- a/models/single_horizontal/fold_2/README.md +++ b/models/single_horizontal/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_horizontal"] +Ordered streams: `["_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 2 --root /path/to/cases --output predictions/single_horizontal_fold2 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_horizontal; zero-based fold: 2. +Collection condition: `single_horizontal`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 2 --root /path/to/cases --output predictions/single_horizontal_fold2 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_horizontal`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 2 --root /path/to/cases --output predictions/single_horizontal_fold2 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_horizontal`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_horizontal/fold_3/README.md b/models/single_horizontal/fold_3/README.md index 7a0fa553e1e93241abd7d43d972d49c0473e1081..0c137faa00ac8acfca55842f63044815008c00d4 100644 --- a/models/single_horizontal/fold_3/README.md +++ b/models/single_horizontal/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_horizontal"] +Ordered streams: `["_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 3 --root /path/to/cases --output predictions/single_horizontal_fold3 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_horizontal; zero-based fold: 3. +Collection condition: `single_horizontal`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 3 --root /path/to/cases --output predictions/single_horizontal_fold3 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_horizontal`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 3 --root /path/to/cases --output predictions/single_horizontal_fold3 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_horizontal`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_horizontal/fold_4/README.md b/models/single_horizontal/fold_4/README.md index f43d3a69fbfe76cf7e29b72ddbe22ac2a5dd3480..da1ea93bd64b3708494267364286bdf709ec467a 100644 --- a/models/single_horizontal/fold_4/README.md +++ b/models/single_horizontal/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_horizontal"] +Ordered streams: `["_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 4 --root /path/to/cases --output predictions/single_horizontal_fold4 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_horizontal; zero-based fold: 4. +Collection condition: `single_horizontal`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 4 --root /path/to/cases --output predictions/single_horizontal_fold4 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_horizontal`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 4 --root /path/to/cases --output predictions/single_horizontal_fold4 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_horizontal`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_horizontal/fold_5/README.md b/models/single_horizontal/fold_5/README.md index d182de71a1514406924b7df5a4ac8c2e64b02f1c..0312b99d1dea4b1fd866dc9cacf7281fe6e88727 100644 --- a/models/single_horizontal/fold_5/README.md +++ b/models/single_horizontal/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_horizontal"] +Ordered streams: `["_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 5 --root /path/to/cases --output predictions/single_horizontal_fold5 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_horizontal; zero-based fold: 5. +Collection condition: `single_horizontal`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 5 --root /path/to/cases --output predictions/single_horizontal_fold5 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_horizontal`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 5 --root /path/to/cases --output predictions/single_horizontal_fold5 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_horizontal`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_horizontal/fold_6/README.md b/models/single_horizontal/fold_6/README.md index f1767e8e246f49c56bd0973c0d6964d3b4e523bf..18c61d5a07bbea8174bcf77cb72a882bd95770c1 100644 --- a/models/single_horizontal/fold_6/README.md +++ b/models/single_horizontal/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_horizontal"] +Ordered streams: `["_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 6 --root /path/to/cases --output predictions/single_horizontal_fold6 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_horizontal; zero-based fold: 6. +Collection condition: `single_horizontal`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 6 --root /path/to/cases --output predictions/single_horizontal_fold6 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_horizontal`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 6 --root /path/to/cases --output predictions/single_horizontal_fold6 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_horizontal`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_horizontal/fold_7/README.md b/models/single_horizontal/fold_7/README.md index 4b7704ac95219e20374a0540e15f2bfb929ed68c..33f547d585c5351ab1e62669631dade656f8f17f 100644 --- a/models/single_horizontal/fold_7/README.md +++ b/models/single_horizontal/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_horizontal"] +Ordered streams: `["_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 7 --root /path/to/cases --output predictions/single_horizontal_fold7 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_horizontal; zero-based fold: 7. +Collection condition: `single_horizontal`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 7 --root /path/to/cases --output predictions/single_horizontal_fold7 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_horizontal`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 7 --root /path/to/cases --output predictions/single_horizontal_fold7 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_horizontal`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_horizontal/fold_8/README.md b/models/single_horizontal/fold_8/README.md index dc3e9d6b4608f0dc278b0e54eeb4024be73770de..426f43f614fa98401a63534ce32139a7720306bd 100644 --- a/models/single_horizontal/fold_8/README.md +++ b/models/single_horizontal/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_horizontal"] +Ordered streams: `["_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 8 --root /path/to/cases --output predictions/single_horizontal_fold8 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_horizontal; zero-based fold: 8. +Collection condition: `single_horizontal`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 8 --root /path/to/cases --output predictions/single_horizontal_fold8 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_horizontal`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 8 --root /path/to/cases --output predictions/single_horizontal_fold8 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_horizontal`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_horizontal/fold_9/README.md b/models/single_horizontal/fold_9/README.md index 3a21115b7f0eab1b5ff6207a3aa0bca5df6ab06b..c0a8ddb46e3035027ec56f0786b01bc9254c12e0 100644 --- a/models/single_horizontal/fold_9/README.md +++ b/models/single_horizontal/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_horizontal"] +Ordered streams: `["_horizontal"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 9 --root /path/to/cases --output predictions/single_horizontal_fold9 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_horizontal; zero-based fold: 9. +Collection condition: `single_horizontal`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_horizontal"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 9 --root /path/to/cases --output predictions/single_horizontal_fold9 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_horizontal`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_horizontal"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_horizontal --fold 9 --root /path/to/cases --output predictions/single_horizontal_fold9 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_horizontal`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_vertical/fold_0/README.md b/models/single_vertical/fold_0/README.md index a2144a4abea5e3a83be04057eaa4c57b1cd0138c..575f7dc0bc2ab5768245748fdee9782a0ebb310b 100644 --- a/models/single_vertical/fold_0/README.md +++ b/models/single_vertical/fold_0/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical"] +Ordered streams: `["_vertical"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 0 --root /path/to/cases --output predictions/single_vertical_fold0 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_vertical; zero-based fold: 0. +Collection condition: `single_vertical`; zero-based fold: `0`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 0 --root /path/to/cases --output predictions/single_vertical_fold0 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_vertical`;從 0 開始編號的 fold:`0`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 0 --root /path/to/cases --output predictions/single_vertical_fold0 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_vertical`。0 始まりの fold:`0`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_vertical/fold_1/README.md b/models/single_vertical/fold_1/README.md index 349c45ad04b896cfee1ce3bdda211a05c41ed6de..9578c7ce39e21aee3acf48581ba3d05731dfc1f8 100644 --- a/models/single_vertical/fold_1/README.md +++ b/models/single_vertical/fold_1/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical"] +Ordered streams: `["_vertical"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 1 --root /path/to/cases --output predictions/single_vertical_fold1 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_vertical; zero-based fold: 1. +Collection condition: `single_vertical`; zero-based fold: `1`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 1 --root /path/to/cases --output predictions/single_vertical_fold1 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_vertical`;從 0 開始編號的 fold:`1`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 1 --root /path/to/cases --output predictions/single_vertical_fold1 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_vertical`。0 始まりの fold:`1`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_vertical/fold_2/README.md b/models/single_vertical/fold_2/README.md index de668a27d3ae0772ede6303761235f3be76c692a..0412a887d56df2391f021c28e581efd68cc1d274 100644 --- a/models/single_vertical/fold_2/README.md +++ b/models/single_vertical/fold_2/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical"] +Ordered streams: `["_vertical"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 2 --root /path/to/cases --output predictions/single_vertical_fold2 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_vertical; zero-based fold: 2. +Collection condition: `single_vertical`; zero-based fold: `2`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 2 --root /path/to/cases --output predictions/single_vertical_fold2 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_vertical`;從 0 開始編號的 fold:`2`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 2 --root /path/to/cases --output predictions/single_vertical_fold2 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_vertical`。0 始まりの fold:`2`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_vertical/fold_3/README.md b/models/single_vertical/fold_3/README.md index 2601bf981b1a39aeabd3baed0a7b0f38b84e1c45..393a7f04f5ff361707b0ac32f08b2aa609aabf52 100644 --- a/models/single_vertical/fold_3/README.md +++ b/models/single_vertical/fold_3/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical"] +Ordered streams: `["_vertical"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 3 --root /path/to/cases --output predictions/single_vertical_fold3 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_vertical; zero-based fold: 3. +Collection condition: `single_vertical`; zero-based fold: `3`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 3 --root /path/to/cases --output predictions/single_vertical_fold3 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_vertical`;從 0 開始編號的 fold:`3`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 3 --root /path/to/cases --output predictions/single_vertical_fold3 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_vertical`。0 始まりの fold:`3`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_vertical/fold_4/README.md b/models/single_vertical/fold_4/README.md index 3c081c8483883f56c3176394266d4816141a3b77..9b6ad302e4e39e55860345b243ab5bbd74f827d7 100644 --- a/models/single_vertical/fold_4/README.md +++ b/models/single_vertical/fold_4/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical"] +Ordered streams: `["_vertical"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 4 --root /path/to/cases --output predictions/single_vertical_fold4 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_vertical; zero-based fold: 4. +Collection condition: `single_vertical`; zero-based fold: `4`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 4 --root /path/to/cases --output predictions/single_vertical_fold4 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_vertical`;從 0 開始編號的 fold:`4`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 4 --root /path/to/cases --output predictions/single_vertical_fold4 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_vertical`。0 始まりの fold:`4`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_vertical/fold_5/README.md b/models/single_vertical/fold_5/README.md index 2a93e504aee0f3f6444f18fa628219d004838f56..92215541aa11c56a4620afb2633b516fb4f8dcd1 100644 --- a/models/single_vertical/fold_5/README.md +++ b/models/single_vertical/fold_5/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical"] +Ordered streams: `["_vertical"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 5 --root /path/to/cases --output predictions/single_vertical_fold5 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_vertical; zero-based fold: 5. +Collection condition: `single_vertical`; zero-based fold: `5`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 5 --root /path/to/cases --output predictions/single_vertical_fold5 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_vertical`;從 0 開始編號的 fold:`5`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 5 --root /path/to/cases --output predictions/single_vertical_fold5 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_vertical`。0 始まりの fold:`5`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_vertical/fold_6/README.md b/models/single_vertical/fold_6/README.md index b96dae5e2c4e02634eaf3401eb7c629b71743aca..396dddf3d4bfcc4624fc7defb8e4256abd063167 100644 --- a/models/single_vertical/fold_6/README.md +++ b/models/single_vertical/fold_6/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical"] +Ordered streams: `["_vertical"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 6 --root /path/to/cases --output predictions/single_vertical_fold6 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_vertical; zero-based fold: 6. +Collection condition: `single_vertical`; zero-based fold: `6`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 6 --root /path/to/cases --output predictions/single_vertical_fold6 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_vertical`;從 0 開始編號的 fold:`6`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 6 --root /path/to/cases --output predictions/single_vertical_fold6 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_vertical`。0 始まりの fold:`6`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_vertical/fold_7/README.md b/models/single_vertical/fold_7/README.md index 6912a850e0440d34a234a304f0b737d561e0e226..b8f2b84cbfa37b9afe47b877a954690048705c83 100644 --- a/models/single_vertical/fold_7/README.md +++ b/models/single_vertical/fold_7/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical"] +Ordered streams: `["_vertical"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 7 --root /path/to/cases --output predictions/single_vertical_fold7 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_vertical; zero-based fold: 7. +Collection condition: `single_vertical`; zero-based fold: `7`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 7 --root /path/to/cases --output predictions/single_vertical_fold7 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_vertical`;從 0 開始編號的 fold:`7`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 7 --root /path/to/cases --output predictions/single_vertical_fold7 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_vertical`。0 始まりの fold:`7`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_vertical/fold_8/README.md b/models/single_vertical/fold_8/README.md index c5603e9375f4dedfbbfe0eec1bf9d42a0e4d2a2a..f20b2a06b656cdf3ab326ff2442f0b1af2f3dd7b 100644 --- a/models/single_vertical/fold_8/README.md +++ b/models/single_vertical/fold_8/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical"] +Ordered streams: `["_vertical"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 8 --root /path/to/cases --output predictions/single_vertical_fold8 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_vertical; zero-based fold: 8. +Collection condition: `single_vertical`; zero-based fold: `8`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 8 --root /path/to/cases --output predictions/single_vertical_fold8 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_vertical`;從 0 開始編號的 fold:`8`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 8 --root /path/to/cases --output predictions/single_vertical_fold8 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_vertical`。0 始まりの fold:`8`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) diff --git a/models/single_vertical/fold_9/README.md b/models/single_vertical/fold_9/README.md index 359776a424ba03512aecff2b8fa625b6af4a590b..aa98852f0eb252a1b3a5a289147c6a21490b904c 100644 --- a/models/single_vertical/fold_9/README.md +++ b/models/single_vertical/fold_9/README.md @@ -1,4 +1,8 @@ --- +language: +- en +- zh +- ja tags: - pytorch - timm @@ -7,43 +11,47 @@ tags: - research --- +[English](#english) | [繁體中文](#traditional-chinese) | [日本語](#japanese) + + + # Multistream model artifact This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness. Architecture: resnet50; hidden dimension: 2048. -Ordered streams: ["_vertical"] +Ordered streams: `["_vertical"]` -Class mapping: {"bad": 0, "good": 1} +Class mapping: `{"bad": 0, "good": 1}` Class names are labels only; do not infer healthy/diseased semantics without the study definition. 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. +Public code: [GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) -Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new ## Loading this condition and fold -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. +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. ```bash python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 9 --root /path/to/cases --output predictions/single_vertical_fold9 ``` -Before the model PR is merged, append --revision refs/pr/; after merge the default main revision can be used. +Before the model PR is merged, append `--revision refs/pr/`; after merge the default `main` revision can be used. 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. ## Preprocessing and verification -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. +`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. ## License 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. -Collection condition: single_vertical; zero-based fold: 9. +Collection condition: `single_vertical`; zero-based fold: `9`. Declared preprocessing: @@ -70,4 +78,142 @@ Declared preprocessing: Profile note: Single-stream environment records use torchvision 0.17.1; exact per-fold environment snapshots were not retained. -[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md) +[Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# 多流模型產物 + +這是研究用產物。本次匯出無法證實訓練採用真實或合成資料、是否經過獨立驗證,或是否已具備臨床應用條件。 + +模型架構:resnet50;隱藏維度:2048。 + +輸入流順序:`["_vertical"]` + +類別對應:`{"bad": 0, "good": 1}` + +類別名稱僅為標籤;未取得研究定義前,不得將其直接解讀為健康/患病。 + +來源為歷史模型。已嚴格核對架構、張量鍵與形狀,但無法僅憑權重證實歷史輸入流順序、標籤意義及前處理方式;這些設定由操作者提供。早期實驗採用病例層級的隨機 fold,已發現跨 fold 病人重疊的疑慮,並依驗證準確率選取 epoch。不得將其分數稱為以病人分組且彼此獨立的交叉驗證結果。格式轉換不會修正原實驗的這些問題。 + +公開程式碼:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## 載入此條件與 fold + +請安裝程式碼儲存庫列出的相依套件,並從其中的 `new/` 目錄執行。共用載入器與相依套件清單位於模型集合根目錄,此模型子目錄內不含這些檔案。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 9 --root /path/to/cases --output predictions/single_vertical_fold9 +``` + +模型 PR 合併前,請加上 `--revision refs/pr/`;合併後可使用預設的 `main` 版本。 + +僅下載所選模型的權重與設定。請依輸入流順序提供各流對應的一張影像。本機工具使用其受信任的模型定義,並保存各類別機率。 + +## 前處理與核對 + +`config.json` 記錄 RGB 影像縮放後端、雙線性插值、中心裁切與正規化方式。若匯出原始歷史權重,須依原始實驗核對操作者提供的設定。匯出核對會檢查每個張量鍵與形狀,並拒絕含非有限浮點數的權重;不會執行推論或驗證效能。 + +## 授權 + +匯出器未推定或擅自指定模型授權。將本產物視為具完整文件的發布版本前,須提供經授權的模型授權條款,並完成該研究的模型卡。 + +集合條件:`single_vertical`;從 0 開始編號的 fold:`9`。 + +宣告的前處理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定註記:單流環境紀錄使用 torchvision 0.17.1;未保留各 fold 的完整環境快照。 + +[完整下載、推論與輸出說明](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md) + +--- + + + +# マルチストリームモデルの成果物 + +これは研究用の成果物です。このエクスポートによって、学習データが実データか合成データか、独立した検証が行われたか、臨床利用の準備が整っているかを確認することはできません。 + +モデル構造:resnet50。隠れ次元数:2048。 + +ストリームの順序:`["_vertical"]` + +クラスの対応関係:`{"bad": 0, "good": 1}` + +クラス名はラベルです。研究上の定義を確認せずに、健康/疾患を意味すると解釈しないでください。 + +変換元は過去のモデルです。モデル構造、テンソルのキーと形状を厳密に確認していますが、過去のストリーム順序、ラベルの意味、前処理は重みだけでは証明できません。これらの設定は操作者が提供したものです。初期の実験では症例単位のランダムな fold 分割を用い、fold 間で患者が重複する懸念が確認されており、検証正解率に基づいて epoch を選択していました。これらのスコアを、患者単位で分割された独立した交差検証の結果と表記しないでください。形式を変換しても、元の実験の問題は修正されません。 + +公開コード:[GitHub](https://github.com/chou141253/ERM-AI/tree/23309f88b6213e0910138ea56d15e6666b2ecf47/new) + +## この条件と fold の読み込み + +コードリポジトリに記載された依存パッケージをインストールし、`new/` ディレクトリから実行してください。共通ローダーと依存パッケージの一覧はコレクションのルートにあり、このモデルのサブディレクトリには含まれていません。 + +```bash +python tools/infer_published.py --repo ntuhophai/ERM-AI --condition single_vertical --fold 9 --root /path/to/cases --output predictions/single_vertical_fold9 +``` + +モデルの PR がマージされる前は、`--revision refs/pr/` を追加してください。マージ後は既定の `main` リビジョンを使用できます。 + +選択したモデルの重みと設定のみをダウンロードします。ストリームの順序に従い、各ストリームに対応する画像を 1 枚ずつ用意してください。ローカルツールは信頼済みのモデル定義を使用し、各クラスの確率を保存します。 + +## 前処理と確認 + +`config.json` に RGB 画像のリサイズ処理、双線形補間、中央クロップ、正規化を記録しています。旧形式の重みをエクスポートする場合は、操作者が提供した設定を元の実験と照合してください。エクスポート時の確認では、すべてのテンソルのキーと形状を検査し、非有限の浮動小数点値を含む重みを拒否します。推論や性能検証は実施しません。 + +## ライセンス + +エクスポーターはモデルのライセンスを推測に基づいて指定していません。文書を整備した公開版として扱う前に、正当に許諾されたモデルのライセンスを提示し、本研究固有のモデルカードを完成させてください。 + +コレクションの条件:`single_vertical`。0 始まりの fold:`9`。 + +宣言された前処理設定: + +```json +{ + "image_size": 448, + "resize_size": 448, + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ], + "resize_backend": "tensor", + "interpolation": "bilinear", + "antialias": true, + "crop": "center" +} +``` + +設定の注記:単一ストリームの環境記録では torchvision 0.17.1 を使用しています。fold ごとの正確な環境スナップショットは保存されていません。 + +[ダウンロード、推論、出力の完全な手順](https://github.com/chou141253/ERM-AI/blob/23309f88b6213e0910138ea56d15e6666b2ecf47/new/INFERENCE.md)