davidjaw / Domain-adaptation-object-detection-with-YOLOv8

GNU Affero General Public License v3.0
10 stars 2 forks source link

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 390.62 GiB. GPU #6

Closed StephenZhao1 closed 1 day ago

StephenZhao1 commented 2 days ago

with out modify any code,train on first epoch will meet this problem even change batch size to 2

davidjaw commented 2 days ago

It appears to be related to using a newer version of PyTorch. A similar problem has been discussed in this issue.

While there may be a more detailed solution in the discussion thread, the simplest workaround is to downgrade your PyTorch version:

This should resolve the compatibility issue you're experiencing.