Hej Thomas,
Thanks for the answer. I have identified the issue and I have close it. You can view the complete answer here:

  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      Inconsistent Results on torchvision pretrained models using Python script vs C++ API 4
    

    
      
        opened 
        
          
        
        Nov 5, 2019
      
      

        
          closed 
        
          
        
        Nov 6, 2019
      
        

      
        
          
          Con-Mi
        
      
    
  



  I have tried to benchmark and compare a Python script, using a pretrained classification model from the torchvision library with the...



    module: cpp


  
  
    
    
  
  


It is true that is BGR even if I use  cv::IMREAD_UNCHANGED