ZepengHuo
commited on
Commit
·
983440d
0
Parent(s):
Upload resnetv2_ct
Browse files- .gitattributes +1 -0
- README.md +17 -0
- config.json +6 -0
.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ResNetV2-CT Checkpoint
|
| 2 |
+
|
| 3 |
+
This is a PyTorch Lightning `.ckpt` checkpoint for a ResNetV2 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": "resnetv2_101_ct",
|
| 4 |
+
"pretrain_type": "supervised",
|
| 5 |
+
"num_class": 1
|
| 6 |
+
}
|