ZepengHuo commited on
Commit
beb4032
·
1 Parent(s): d329921

Track other files

Browse files
Files changed (2) hide show
  1. README.md +17 -0
  2. config.json +6 -0
README.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SwinT-CT Checkpoint
2
+
3
+ This is a PyTorch Lightning `.ckpt` checkpoint for a SwinT model trained on chest CT images.
4
+
5
+ ## Usage
6
+
7
+ A quickstart script is below.
8
+
9
+ ```python
10
+ import radfusion3
11
+ dm = radfusion3.data.DataModule(config, test_split=config.test_split)
12
+ model = radfusion3.builder.build_lightning_model(config, ckpt=ckpt)
13
+ trainer.fit(model=model, datamodule=dm, ckpt_path=config.ckpt)
14
+ trainer.test(datamodule=dm, ckpt_path="best")
15
+ ```
16
+
17
+ For detailed instructions please follow the [README in Github repo](https://github.com/som-shahlab/INSPECT_public/tree/main?tab=readme-ov-file#1-image-modality-experiment).
config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "model_2d",
3
+ "model_name": "swint_ct",
4
+ "pretrain_type": "supervised",
5
+ "num_class": 1
6
+ }