English
File size: 2,189 Bytes
e09216f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fb38cfb
e09216f
 
 
 
 
 
fb38cfb
e09216f
 
fb38cfb
 
 
e09216f
 
fb38cfb
 
e09216f
 
fb38cfb
e09216f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
license: apache-2.0
---


# Cloud Adapter Models

This repository contains the code and pre-trained model weights for the paper **"Adapting Vision Foundation Models for Robust Cloud Segmentation in Remote Sensing Images"**. The models are specifically designed to perform robust cloud segmentation in remote sensing imagery by leveraging and fine-tuning vision foundation models.

## Features

- Pre-trained model weights for cloud segmentation tasks.
- Code for fine-tuning and evaluation of the models on remote sensing datasets.
- A user-friendly **Gradio Demo** to test the models interactively.

## Installation

To use the code in this repository, clone it locally and install the required dependencies:

```bash
git clone https://huggingface.co/XavierJiezou/cloud-adapter-models
cd cloud-adapter-models
pip install -r requirements.txt
```

## Usage

### 1. Download Pre-trained Models

The pre-trained model weights are available in the repository. Download the weights and place them in the appropriate directory.



### 2. Run the Gradio Demo

To interactively test the models using Gradio:

```bash
python app.py
```

#### Notes:
- **GPU Requirement**: If using a GPU, ensure it has at least **16GB of VRAM** to run the model efficiently.
- **CPU-Only Mode**: If you wish to run the demo on CPU, set the environment variable `CUDA_VISIBLE_DEVICES` to `-1`:

```bash
CUDA_VISIBLE_DEVICES=-1 python app.py
``` 


This will launch a web interface where you can upload remote sensing images and view the segmentation results.


## Gradio Demo

The Gradio demo allows users to upload remote sensing images, run cloud segmentation, and visualize the results. It can be easily modified to suit custom datasets or tasks.


## Citation

If you find this repository helpful, please consider citing the paper:

```latex
@{cloud-adapter,
title={Adapting Vision Foundation Models for Robust Cloud Segmentation in Remote Sensing Images}, 
author={Xuechao Zou and Shun Zhang and Kai Li and Shiying Wang and Junliang Xing and Lei Jin and Congyan Lang and Pin Tao},
year={2024},
eprint={2411.13127},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2411.13127}
}
```