Image Data Augmentation

Tornike: <p>Hello, trying to augment my images.<br>
filename returns numpy.ndarray but filename[0] returns numpy str.</p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/7/8/784aa9597c5d41a71a94e84b109a68aaf8a3af2f.png" data-download-href="https://discuss.pytorch.org/uploads/default/784aa9597c5d41a71a94e84b109a68aaf8a3af2f" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/7/8/784aa9597c5d41a71a94e84b109a68aaf8a3af2f_2_690x387.png" alt="image" data-base62-sha1="ha9fZQUwQs5gqFk9F8CjSYuFqYD" width="690" height="387" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/7/8/784aa9597c5d41a71a94e84b109a68aaf8a3af2f_2_690x387.png, https://discuss.pytorch.org/uploads/default/optimized/3X/7/8/784aa9597c5d41a71a94e84b109a68aaf8a3af2f_2_1035x580.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/7/8/784aa9597c5d41a71a94e84b109a68aaf8a3af2f.png 2x" data-dominant-color="DFE1E0"><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">image</span><span class="informations">1366×768 130 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>
<p>But i still got same error. how can i solve it ?<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/6/7/67f12e8cb9010894a426149b53322ee3e3dafe6b.png" data-download-href="https://discuss.pytorch.org/uploads/default/67f12e8cb9010894a426149b53322ee3e3dafe6b" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/6/7/67f12e8cb9010894a426149b53322ee3e3dafe6b_2_690x387.png" alt="image" data-base62-sha1="ePvUmMSi2Py8KsfTwCXT7Z8Y8Ft" width="690" height="387" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/6/7/67f12e8cb9010894a426149b53322ee3e3dafe6b_2_690x387.png, https://discuss.pytorch.org/uploads/default/optimized/3X/6/7/67f12e8cb9010894a426149b53322ee3e3dafe6b_2_1035x580.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/6/7/67f12e8cb9010894a426149b53322ee3e3dafe6b.png 2x" data-dominant-color="E4E4E5"><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">image</span><span class="informations">1366×768 119 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>
<p>By the way, want to augment the images and to retunr the images with the same annotations before it was augmented. Using logic of : getting all the images where gender is 0.0 and augmenting it to new images. any easier ways to do that ? It’s essential to do it with imaug library</p>

ptrblck: <p>This error is raised by <code>pandas</code> and doesn’t seem to be PyTorch-specific, so I would recommend to use a <code>pandas</code> support board or e.g. StackOverflow to get a faster and better answer.</p>
<p>Based on the error message I’m not sure which method raises the error, i.e. where <code>pandas/core/algorithms.py</code> is used.</p>
<p>PS: you can post code snippets by wrapping them into three backticks ```, which would make debugging easier.</p>

Tornike: <p>Fine, thank you. I will wrap my code next time.</p>