You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered: