The Chinese government repatriated 1,240,471 Japanese soldiers and 779,874 Japanese civilians (2,020,345 people in total) back to Japan between 1945 and 1948,^1 which supposedly required 13,441 trains and 800 boat trips.^2 The Japanese suffered few reprisals. Some officers, including Gen. Okamura Yasuji (a war criminal by any standard), even became advisers to Chiang Kai-shek.^3
The Soviets captured another 639,635 Japanese in Manchuria and Mongolia, many of whom were sent to Siberia as forced labor. 62,068 perished, and some apparently did not return home until the 1990s.^4 (If anyone has more information, I would love to hear it.)
I hope this answers your question! :)
Footnotes:
^1 Hsu Long-hsuen and Chang Ming-kai, History of the Sino-Japanese War, 1937-1945 (Taipei: Chungwu, 1971), 571.
^2 Diana Lary, The Chinese People at War: Human Suffering and Social Transformation, 1937-1945 (Cambridge and New York: Cambridge University Press, 2010), 189.
^3 S. C. M. Paine, The Wars for Asia, 1911-1949 (Cambridge and New York: Cambridge University Press, 2012), 288.
^4 Lary, Chinese People at War, 189f.; Paine, Wars for Asia, 215.