put an error:
/python3.6/site-packages/torchvision/transforms/functional.py", line 239, in resize
    raise TypeError('img should be PIL Image. Got {}'.format(type(img)))
TypeError: img should be PIL Image. Got <class 'numpy.ndarray'>


I must use the opencv to read img, because Pillow and opencv is not equal when using read img or resize. please help me.