File size: 1,322 Bytes
a304e08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254f2e5
 
a304e08
254f2e5
 
 
 
 
 
 
 
 
a304e08
 
254f2e5
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
license: mit
tags:
- image-classification
- remote-sensing
- resnet
- pytorch
- transformers
---

# RSP-ResNet-50

ResNet-50 based model for remote sensing scene classification (51 classes).

## Usage

```python
from transformers import AutoModelForImageClassification
import torch

# Load model
model = AutoModelForImageClassification.from_pretrained(
    "BiliSakura/RSP-ResNet-50",
    trust_remote_code=True
)

# Inference
model.eval()
input_image = torch.randn(1, 3, 224, 224)  # (batch, channels, height, width)

with torch.no_grad():
    outputs = model(pixel_values=input_image)
    logits = outputs.logits  # Shape: (1, 51)
    predicted_class = logits.argmax(dim=-1).item()
```

## Model Details

- **Architecture:** ResNet-50
- **Input size:** 224×224×3
- **Number of classes:** 51
- **Parameters:** ~23.6M

## Citation

If you use this model, please cite the original RSP paper:

```bibtex
@ARTICLE{rsp,
  author={Wang, Di and Zhang, Jing and Du, Bo and Xia, Gui-Song and Tao, Dacheng},
  journal={IEEE Transactions on Geoscience and Remote Sensing}, 
  title={An Empirical Study of Remote Sensing Pretraining}, 
  year={2023},
  volume={61},
  number={},
  pages={1-20},
  doi={10.1109/TGRS.2022.3176603}
}
```

**Original Repository:** [ViTAE-Transformer/RSP](https://github.com/ViTAE-Transformer/RSP)