INNER CODE UNIT · Python

ToGray

KaiyangZhou/pytorch-center-loss · transforms.py:4

class ToGray(object):
    """
    Convert image from RGB to gray level.
    """
    def __call__(self, img):
        return img.convert('L')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…