lukaskuhndkfz commited on
Commit
b93e032
·
verified ·
1 Parent(s): d1bcb8e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +48 -2
README.md CHANGED
@@ -1,2 +1,48 @@
1
- # ModelAuditor
2
- This repository contains the pretrained models for ModelAuditor
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ModelAuditor Pre-trained Models
2
+
3
+ Pre-trained ResNet50 models for medical image classification, used with the [ModelAuditor](https://github.com/lukaskuhndkfz/ModelAuditor) framework for AI-powered model auditing and robustness evaluation.
4
+
5
+ ## Models
6
+
7
+ | Model | Domain | Task | Input Size |
8
+ |-------|--------|------|------------|
9
+ | `camelyon17_resnet50_1_224.pt` | Pathology | Tumor detection in lymph node sections | 224x224 |
10
+ | `chexpert_resnet50_1_224.pt` | Radiology | Chest X-ray classification | 224x224 |
11
+ | `ham10000_resnet50_1_224.pt` | Dermatology | Skin lesion classification (melanoma vs. benign keratosis) | 224x224 |
12
+
13
+ ## Usage
14
+
15
+ ### Download Models
16
+
17
+ ```bash
18
+ pip install huggingface_hub
19
+
20
+ # Download all models
21
+ huggingface-cli download lukaskuhndkfz/ModelAuditor --local-dir models
22
+
23
+ # Or download individually
24
+ huggingface-cli download lukaskuhndkfz/ModelAuditor ham10000_resnet50_1_224.pt --local-dir models
25
+
26
+ Use with ModelAuditor
27
+
28
+ git clone https://github.com/lukaskuhndkfz/ModelAuditor
29
+ cd ModelAuditor
30
+ pip install -e ".[medical]"
31
+
32
+ # Run auditing
33
+ python main.py --model resnet50 --dataset ham10000 --weights models/ham10000_resnet50_1_224.pt
34
+
35
+ Load in PyTorch
36
+
37
+ import torch
38
+ from torchvision.models import resnet50
39
+
40
+ model = resnet50(num_classes=2)
41
+ model.load_state_dict(torch.load("ham10000_resnet50_1_224.pt", map_location="cpu"))
42
+ model.eval()
43
+
44
+ Datasets
45
+
46
+ - Camelyon17: https://wilds.stanford.edu/datasets/#camelyon17
47
+ - CheXpert: https://stanfordmlgroup.github.io/competitions/chexpert/
48
+ - HAM10000: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/DBW86T