Open cindymuji opened 1 year ago
transform.resize(image,(self.output_size,self.output_size),mode='constant')
the input and output of the transform.resize function are in the format of width × height × channels (w, h, c). BUT in provided code, the image shape is (h, w, c).
After actual testing, the main reason for the slow speed is in the 'RescaleT‘ method. replace with this:
But will this cause accuracy issues?