my code snippet is below

TIM图片202109192146561466×162 11.7 KB


TIM图片20210919214702862×561 28.4 KB

Now ,the img ,gt do different RandomResizedCrop. But I want they do the same, because the img and gt must be correspond.
How should I modify the code?