If PyTorch can remove it’s dependency on PIL and use OpenCV 3 instead, it would help me work with multi-channel images that are greater than 3-channels. At the moment, if you pass a 10-ch image or 10-ch mask, PIL truncates it to a 3-ch image.
See these issues:

  
      github.com/python-pillow/Pillow
  
  
    



Issue: PIL cannot handle multi-channel images, they get truncated to 3 channels by default 47


	
	opened by edowson
	on 2018-06-07
	
	
	


What did you do?
Several Deep Learning Framework Libraries (.e.g PyTorch's TorchVision), Image Processing libraries (.e.g skimage) and machine learning data augmentation...




  
  
    
    
  
  



  
      github.com/python-pillow/Pillow
  
  
    



Issue: Tracking Issue for high bit depth multichannel images 26


	
	opened by wiredfool
	on 2016-05-05
	
	
	


Pillow (and PIL) is currently able to open 8 bit per channel multi-channel images (such as RGB) but is able to...


 	Enhancement