2:在mip_nerf.py 修改代码,大概109行左右,目的是对报错的该行代码添加一个if条件,释放无关内存 view_direction=repeat(view_direction,'batchfeature->batchsamplefeature',sample=num_samples)x=torch.cat([bottleneck,view_direction],dim=-1)# if hasattr(torch.cuda, 'empty_cache'):# x = torch.cat([b...