random_crop不支持latent_cache,但关闭latent_cache之后会报错: UnboundLocalError: local variable 'ref_image' referenced before assignment 代码中似乎并没有完整支持随机裁剪增益训练