**[Download the notebook](https://gitlab.telecom-paris.fr/ring/sar2sar/-/raw/master/SAR2SAR_GRD_test.ipynb?inline=false) and then import it under Google Colab**
<ahref="https://colab.research.google.com/"target="_parent"><imgsrc="https://colab.research.google.com/assets/colab-badge.svg"alt="Open In Colab"/></a>
%% Cell type:markdown id: tags:
# SAR2SAR: a self-supervised despeckling algorithm for SAR images
## Emanuele Dalsasso, Loïc Denis, Florence Tupin
Please note that the training set is only composed of **GRD** SAR images, thus this testing code is specific to this data.
Some **GRD** images in **amplitude** format can be found in the folder _/content/SAR2SAR-GRD-test/test_data/_
To test on custom data, upload your single channel GRD images in a numpy array with shape [ydim, xdim] in the folder _/content/SAR2SAR-GRD-test/test_data/_
Results are stored in _/content/test_
At each time a test is run, clean the _/content/test_ directory otherwise the results will be overwritten.
%% Cell type:code id: tags:
```
```python
!python/content/SAR2SAR-GRD-test/main.py
```
%% Cell type:markdown id: tags:
When image dimension exeeds 256, the U-Net is scanned over the image with a default stride of 64 pixels. To change it to a custom value, run the cell below (here it is set to 32, allowing more quality at the cost of a greater runtime)