update install
Browse files- README.md +12 -7
- requirements.txt +47 -0
README.md
CHANGED
@@ -36,9 +36,11 @@ Configuration used for finetuning is available through [config](https://github.c
|
|
36 |
To run inference, first install dependencies
|
37 |
|
38 |
```
|
39 |
-
mamba create -n prithvi-burn-scar python=3.10
|
40 |
mamba activate prithvi-burn-scar
|
41 |
-
|
|
|
|
|
42 |
```
|
43 |
|
44 |
#### Instructions for downloading from [HuggingFace datasets](https://huggingface.co/datasets)
|
@@ -50,19 +52,22 @@ mim install mmcv-full==1.5
|
|
50 |
enter your HuggingFace username/password to do the `git clone`.
|
51 |
|
52 |
```
|
53 |
-
mkdir data
|
54 |
cd data/
|
55 |
git clone https://huggingface.co/datasets/ibm-nasa-geospatial/hls_burn_scars burn_scars
|
56 |
-
tar -xzvf burn_scars/hls_burn_scars.tar.gz -C
|
57 |
-
ls -lh data/
|
58 |
```
|
59 |
|
60 |
|
61 |
With the datasets and the environment, you can now run the inference script.
|
62 |
|
63 |
```
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
|
|
66 |
```
|
67 |
|
68 |
### Results
|
|
|
36 |
To run inference, first install dependencies
|
37 |
|
38 |
```
|
39 |
+
mamba create -n prithvi-burn-scar python=3.10 pycocotools ncurses
|
40 |
mamba activate prithvi-burn-scar
|
41 |
+
pip install --upgrade pip && \
|
42 |
+
pip install -r requirements.txt && \
|
43 |
+
mim install mmcv-full==1.5.0
|
44 |
```
|
45 |
|
46 |
#### Instructions for downloading from [HuggingFace datasets](https://huggingface.co/datasets)
|
|
|
52 |
enter your HuggingFace username/password to do the `git clone`.
|
53 |
|
54 |
```
|
55 |
+
mkdir -p data
|
56 |
cd data/
|
57 |
git clone https://huggingface.co/datasets/ibm-nasa-geospatial/hls_burn_scars burn_scars
|
58 |
+
tar -xzvf burn_scars/hls_burn_scars.tar.gz -C ./
|
|
|
59 |
```
|
60 |
|
61 |
|
62 |
With the datasets and the environment, you can now run the inference script.
|
63 |
|
64 |
```
|
65 |
+
python burn_scar_batch_inference_script.py \
|
66 |
+
-config burn_scars_Prithvi_100M.py \
|
67 |
+
-ckpt burn_scars_Prithvi_100M.pth \
|
68 |
+
-input data/burn_scars/validation \
|
69 |
+
-output data/burn_scars/inference_output \
|
70 |
+
-input_type tif
|
71 |
```
|
72 |
|
73 |
### Results
|
requirements.txt
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
boxsdk==3.6.2
|
2 |
+
cityscapesscripts==2.2.1
|
3 |
+
codecov
|
4 |
+
detail==0.2.2
|
5 |
+
docutils==0.16.0
|
6 |
+
einops==0.6.0
|
7 |
+
flake8
|
8 |
+
interrogate
|
9 |
+
jupyterlab==4.0.1
|
10 |
+
matplotlib==3.5.1
|
11 |
+
mmcls>=0.20.1
|
12 |
+
mmdet==2.22.0
|
13 |
+
model_archiver==1.0.3
|
14 |
+
myst-parser
|
15 |
+
-e git+https://github.com/gaotongxiao/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
|
16 |
+
natsort==8.3.1
|
17 |
+
numpy==1.21.6
|
18 |
+
onnx==1.13.1
|
19 |
+
onnxruntime==1.14.1
|
20 |
+
onnx2torch
|
21 |
+
opencv-python==4.7.0.72
|
22 |
+
openmim
|
23 |
+
packaging==21.3
|
24 |
+
pandas==1.3.5
|
25 |
+
pavi==0.0.1
|
26 |
+
Pillow==9.4.0
|
27 |
+
pip-tools
|
28 |
+
prettytable==3.6.0
|
29 |
+
pytest==7.1.3
|
30 |
+
rasterio==1.3.4
|
31 |
+
requests==2.28.2
|
32 |
+
scikit-learn
|
33 |
+
scipy==1.7.3
|
34 |
+
scikit-image
|
35 |
+
seaborn==0.12.2
|
36 |
+
sphinx==4.0.2
|
37 |
+
sphinx_copybutton
|
38 |
+
sphinx_markdown_tables
|
39 |
+
tensorrt==8.5.3.1
|
40 |
+
timm==0.4.12
|
41 |
+
torch==1.9.0+cu111
|
42 |
+
-f https://download.pytorch.org/whl/torch_stable.html
|
43 |
+
torchvision==0.10.0
|
44 |
+
torchmetrics
|
45 |
+
ts==0.5.1
|
46 |
+
xdoctest>=0.10.0
|
47 |
+
yapf
|