This is a part of the open challenge to make it easier to reproduce experimental results from research papers using the MLCommons CM scripting language.
Code and sample images are taken from https://ipolcore.ipol.im/demo/clientApp/demo.html?id=439 .
The demo illustrates the method proposed by Daudt et al. (2019) for change detection on satellite images. It takes as input two color images in PNG format. Both images should be satellites images of the same area, and co-registered. The output image is a change map. For each pixel in the input images, the value of the change map is 1 if a change is detected and 0 otherwise.
Pair of images from the OSCD test set are already provided with the demo. For those images, the ground truth is available in the original dataset: https://ieee-dataport.org/open-access/oscd-onera-satellite-change-detection.
- #617
- http://www.ipol.im/pub/art/2022/439/
- https://access.cknowledge.org/playground/?action=challenges&name=reproduce-and-automate-ipol-paper
We implemented 2 CM scripts for this challenge:
- Download IPOL paper sources and cache them in CM
- Run IPOL 2022 439 paper demo using above script and PyTorch
CM scripts are implemented for a demo on Ubuntu and must be tested across different systems:
-
Install MLCommons CM(CK2) automation framework as described here.
-
Install MLCommons repository with CM automation scripts:
cm pull repo mlcommons@ck
- Install src from IPOL 2022 439 paper:
cm run script "get ipol src" --year=2022 --number=439
cm show cache --tags=ipol,src
- Download sample images and run demo (CM will detect or install missing dependencies)
cm run script "download file _wget" --url=https://cKnowledge.org/ai/data/ipol-paper-2024-439-sample-image-1.png --verify=no --env.CM_DOWNLOAD_CHECKSUM=850639287ad23194576582680c2ecfc3
cm run script "download file _wget" --url=https://cKnowledge.org/ai/data/ipol-paper-2024-439-sample-image-2.png --verify=no --env.CM_DOWNLOAD_CHECKSUM=31364c03d91873ed2d244cce6d664dd0
cm run script "reproduce ipol 2022-439"
cm run script "reproduce ipol 2022-439" --adr.torch.version=1.13.1 --adr.torchvision.version=0.14.1
This script will use 2 sample images from this paper and should produce diff.png in the current directory.
You can use other 2 images by specifying their full path as follows:
cm run script "reproduce ipol 2022-439" \
--image1={full path to png image 1} \
--image2={full path to png image 2}
Join the public MLCommons Task Force on automation and reproducibility to participate in further collaborative developments.