strath-ai / SatelliteCloudGenerator

A PyTorch-based tool to generate clouds for satellite images.
Apache License 2.0
109 stars 8 forks source link

Using the same channel mask for multiple images #5

Closed zakiindra closed 2 weeks ago

zakiindra commented 1 month ago

First of all, I want to appreciate this work. It is very useful, and I'm currently using it for my research. I want to use the same cloud pattern for multiple images, and I believe it is returned as cmask in the example. Is it possible to use the same cmask for different images? I am evaluating performance of ML model robustness against cloud and I want to apply the same cloud pattern to many images to observe if different patterns influence the performance. Is there any way I can do it?

Thank you.

mikonvergence commented 1 month ago

Hi @zakiindra, thank you!

Yes, it is possible and I have done this before for my research I think.

Please have a look here: https://github.com/strath-ai/SatelliteCloudGenerator/blob/d0787cbdc1b39a7976f89aa085f1430f3207eda6/src/CloudSimulator.py#L328-L333

Let me know if this answers your doubts.