• Geovanni Zhang's avatar
    fix:error message of to_tensor (#1000) · ae2cb6ec
    Geovanni Zhang authored
    * fix:error message of to_tensor
    
    The error "pic should be PIL Image or ndarray. Got '<numpy.ndarray>'" is confusing.
    
    * fix:a clearer function name
    
    _is_numpy_image is clearer than _is_numpy_image_dim
    
    * fix:add a test case
    
    Add a test case in test/test_transforms.py to test the error message
    
    * fix:pass ci check
    
    * fix:wrong random matrix
    ae2cb6ec
test_transforms.py 54.3 KB