Skip to content

Commit bc6c809

Browse files
committed
Update Sentinel-2 Colab setup
1 parent 03f8b7f commit bc6c809

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ OmniWaterMask is a Python library for high accuracy water segmentation in high t
2525

2626
[![Colab_Button]][Link]
2727

28-
[Link]: https://colab.research.google.com/drive/15qgTgk4XiWcSzllNt4CtFU7pDSNrKLHk?usp=sharing 'Try OmniWaterMask In Colab'
28+
[Link]: https://colab.research.google.com/github/DPIRD-DMA/OmniWaterMask/blob/main/examples/Sentinel%202%20example.ipynb 'Try OmniWaterMask In Colab'
2929

3030
[Colab_Button]: https://img.shields.io/badge/Try%20in%20Colab-grey?style=for-the-badge&logo=google-colab
3131

examples/Sentinel 2 example.ipynb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"try:\n",
10+
" import google.colab # type: ignore # noqa: F401\n",
11+
"\n",
12+
" %pip install -q omniwatermask==0.5 s2mosaic\n",
13+
" %pip uninstall -q -y torch torchvision torchaudio\n",
14+
" %pip install -q --index-url https://download.pytorch.org/whl/cu124 torch torchvision torchaudio\n",
15+
"except ImportError:\n",
16+
" pass"
17+
]
18+
},
319
{
420
"cell_type": "code",
521
"execution_count": 1,

0 commit comments

Comments
 (0)