报错
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 5.41 GiB (GPU 0; 6.00 GiB total capacity; 6.83 GiB already allocated; 0 bytes free; 6.86 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
训练或者验证的时候batch都改小就行了,默认的batch数值可能比较大