Sorry the code is too long… I guess this may because the data generated by my Generator is to large, whose dimension is (bs X 75 X 80 X 160 X 3). And a typical bs in my setting is 128, which means the generated data will occupy about 0.34G GPU memory. I am trying to solve this problem along this conjecture.