"docs/source/en/using-diffusers/img2img.md" did not exist on "df91c44712381c021c0f4855a623b1a1c32f28b7"
Fix bug to RandomErasing (#1095)
* Fix bug to Random Erasing 1. Avoid forever loop for getting parameters of erase. 2. replace' img_b' by 'img_c', because it indicates the channel. 3. replace v = torch.rand([img_c, h, w]) by v = torch.empty([img_c, h, w], dtype=torch.float32).normal_(). Normally distributed achieves better performance. * add test * Update test_transforms.py * Update transforms.py * Update test_transforms.py * Update transforms.py * Update functional.py
Showing
Please register or sign in to comment