AssafSinger94 / dino-tracker

Official Pytorch Implementation for “DINO-Tracker: Taming DINO for Self-Supervised Point Tracking in a Single Video”
MIT License
361 stars 39 forks source link

torch.cuda.OutOfMemoryError when running the preprocessing pipeline #19

Closed CAN-Lee closed 1 month ago

CAN-Lee commented 1 month ago

Hi @tnarek,

Thanks for your great works.

I try to run it on a laptop with a GPU RTX 4060.

When I run the preprocessing pipeline, it shows that " torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 1002.00 MiB. GPU 0 has a total capacty of 7.75 GiB of which 149.94 MiB is free. Including non-PyTorch memory, this process has 7.02 GiB memory in use. Of the allocated memory 4.96 GiB is allocated by PyTorch, and 1.96 GiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation."

Details are as following: 微信截图_20240710232615

How should I fine-tune the parameters? I just would like to run the inference part.

Really appreciate it!

Can

dat-nguyenvn commented 1 month ago

Hi, It looks your GPU RAM isn't enough. In the paper they use A100 so I think the GPU RAM is 40GB or 80GB. I got the same error but different step with you. My GPU RAM is 16 GB.

CAN-Lee commented 1 month ago

Hi, @dat-nguyenvn, I changed to train it on the GPU with 24G RAM. It works.