Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ToDType before ToPILImage for uint8 rounding
ToPILImage converts to uint8 without rounding: (npimg * 255).astype(np.uint8) ToDtype converts to uint8 while rounding: image.mul(255 + 1.0 - 0.001).to(torch.uint8)
- Loading branch information