yu4u / cutout-random-erasing

Cutout / Random Erasing implementation, especially for ImageDataGenerator in Keras
MIT License
167 stars 38 forks source link

The program on line 35. #7

Open 100LocalMachine001 opened 2 years ago

100LocalMachine001 commented 2 years ago

Thank you for sharing this very useful program. I have a question about the program on line 35 (input_img[top:top + h, left:left + w] = c). When I run this line the variable is treated as mutable. Is this a problem in my implementation?

HDUyiming commented 8 months ago

如果使用官方中的这一行代码,我发现图像是没有任何变化的,请使用我提供的这条语句替换line35: input_img[:, top:top + h, left:left + w] = c