Billy12345 commited on
Commit
9bd17f4
·
verified ·
1 Parent(s): 986e3bb

Publish public model models/fusion_6/fold_6

Browse files
models/fusion_6/fold_6/README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - pytorch
4
+ - timm
5
+ - multistream
6
+ - image-classification
7
+ - research
8
+ ---
9
+
10
+ # Multistream model artifact
11
+
12
+ This is a research artifact. This export does not establish whether training used real or synthetic data, independent validation, or clinical readiness.
13
+
14
+ Architecture: resnet50; hidden dimension: 2048.
15
+
16
+ Ordered streams: ["color_inner", "color_outer", "color_full", "gray_inner", "gray_outer", "gray_full"]
17
+
18
+ Class mapping: {"bad": 0, "good": 1}
19
+
20
+ Class names are labels only; do not infer healthy/diseased semantics without the study definition.
21
+
22
+ The source is a legacy model. Architecture and tensor keys/shapes were checked strictly, but the historical stream order, label meaning and preprocessing cannot be proved from weights. These settings were supplied by the operator. Earlier experiments used case-level random folds with identified patient-overlap concerns and selected epochs on validation accuracy. Their scores must not be presented as independent patient-grouped cross-validation results. Converted format does not correct those experiments.
23
+
24
+
25
+ Public code: https://github.com/chou141253/ERM-AI/tree/7687fab91d129f51db32c663ea0122b9b69b75b9/new
26
+ ## Loading this condition and fold
27
+
28
+ Install the code repository requirements and run from its new/ directory. The shared loader and requirements live at the collection root, not in this model directory.
29
+
30
+ ```bash
31
+ python tools/infer_published.py --repo ntuhophai/ERM-AI --condition fusion_6 --fold 6 --root /path/to/cases --output predictions/fusion_6_fold6
32
+ ```
33
+
34
+ Before the model PR is merged, append --revision refs/pr/<number>; after merge the default main revision can be used.
35
+
36
+ Only the selected weights/config are downloaded. Provide one image for each ordered stream. The local tool uses its trusted model definition and saves class probabilities.
37
+
38
+ ## Preprocessing and verification
39
+
40
+ config.json records the RGB resize backend, bilinear interpolation, center crop and normalization. For raw legacy exports, verify these operator-supplied settings against the original experiment. Export verification checks every tensor key and shape and rejects nonfinite floating-point weights; it does not run inference or validate performance.
41
+
42
+ ## License
43
+
44
+ No model license was inferred by the exporter. Supply the authorized model license and complete the study-specific model card before treating this as a documented release.
45
+
46
+ Collection condition: fusion_6; zero-based fold: 6.
47
+
48
+ Declared preprocessing:
49
+
50
+ ```json
51
+ {
52
+ "image_size": 448,
53
+ "resize_size": 448,
54
+ "mean": [
55
+ 0.485,
56
+ 0.456,
57
+ 0.406
58
+ ],
59
+ "std": [
60
+ 0.229,
61
+ 0.224,
62
+ 0.225
63
+ ],
64
+ "resize_backend": "tensor",
65
+ "interpolation": "bilinear",
66
+ "antialias": true,
67
+ "crop": "center"
68
+ }
69
+ ```
70
+
71
+ Profile note: Order follows historical inference directory naming. Original runtime version is unrecorded; antialias true is an explicit operator choice to verify.
72
+
73
+ [Complete download, inference and output instructions](https://github.com/chou141253/ERM-AI/blob/7687fab91d129f51db32c663ea0122b9b69b75b9/new/INFERENCE.md)
models/fusion_6/fold_6/config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "public_format_version": 1,
3
+ "model_config": {
4
+ "name": "resnet50",
5
+ "hidden_dim": 2048,
6
+ "freeze_backbones": false,
7
+ "pretrained": false
8
+ },
9
+ "streams": [
10
+ "color_inner",
11
+ "color_outer",
12
+ "color_full",
13
+ "gray_inner",
14
+ "gray_outer",
15
+ "gray_full"
16
+ ],
17
+ "class_to_idx": {
18
+ "bad": 0,
19
+ "good": 1
20
+ },
21
+ "preprocessing": {
22
+ "image_size": 448,
23
+ "resize_size": 448,
24
+ "mean": [
25
+ 0.485,
26
+ 0.456,
27
+ 0.406
28
+ ],
29
+ "std": [
30
+ 0.229,
31
+ 0.224,
32
+ 0.225
33
+ ],
34
+ "resize_backend": "tensor",
35
+ "interpolation": "bilinear",
36
+ "antialias": true,
37
+ "crop": "center"
38
+ },
39
+ "artifact_kind": "research",
40
+ "source_format": "legacy_state_dict",
41
+ "settings_provenance": "operator_supplied",
42
+ "private_training_metadata_omitted": true,
43
+ "legacy_no_split_metadata": true
44
+ }
models/fusion_6/fold_6/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e567bc8a1cda42139a14594a0059bbbaea5de1f82c82feb2bca310be760f20c3
3
+ size 683142304