How to locally add some effects on images to simulate image defects?

PytorchBeginner: <p>Hi,<br>
I am trying to generate some defect images for model training. More specifically, I want to add some effects (i.e., poke, fold) on plain images. Especially, some images are with a kind of stereo defects and three real defective images are provided. Ideally, I want to have a function that can simulate those defects. Any suggestions? Thanks in advance.<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/7/6/764d86f4a1338e21a3588d8e8f76384d1415416e.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/764d86f4a1338e21a3588d8e8f76384d1415416e" title="000"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/7/6/764d86f4a1338e21a3588d8e8f76384d1415416e_2_500x500.jpeg" alt="000" data-base62-sha1="gSyrrLZXjeAoVHGICXlYD4Hxv4i" width="500" height="500" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/7/6/764d86f4a1338e21a3588d8e8f76384d1415416e_2_500x500.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/7/6/764d86f4a1338e21a3588d8e8f76384d1415416e_2_750x750.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/7/6/764d86f4a1338e21a3588d8e8f76384d1415416e_2_1000x1000.jpeg 2x" data-dominant-color="784E41"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">000</span><span class="informations">1024×1024 97.9 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/2/7/27d849962b66eab4740242d31e7ed11e93ec7020.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/27d849962b66eab4740242d31e7ed11e93ec7020" title="004"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/2/7/27d849962b66eab4740242d31e7ed11e93ec7020_2_500x500.jpeg" alt="004" data-base62-sha1="5Gu0VUSxWEwqFFqcEElpZaaBjoc" width="500" height="500" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/2/7/27d849962b66eab4740242d31e7ed11e93ec7020_2_500x500.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/2/7/27d849962b66eab4740242d31e7ed11e93ec7020_2_750x750.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/2/7/27d849962b66eab4740242d31e7ed11e93ec7020_2_1000x1000.jpeg 2x" data-dominant-color="754D3F"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">004</span><span class="informations">1024×1024 103 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/5/2/52422e828233350e2944b16f8d908d197405c126.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/52422e828233350e2944b16f8d908d197405c126" title="014"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/5/2/52422e828233350e2944b16f8d908d197405c126_2_500x500.jpeg" alt="014" data-base62-sha1="bJGWF4MKXBA5HbWR9VJOu1f8nUG" width="500" height="500" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/5/2/52422e828233350e2944b16f8d908d197405c126_2_500x500.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/5/2/52422e828233350e2944b16f8d908d197405c126_2_750x750.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/5/2/52422e828233350e2944b16f8d908d197405c126_2_1000x1000.jpeg 2x" data-dominant-color="7A5043"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">014</span><span class="informations">1024×1024 105 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>