Tsingularity / dift

[NeurIPS'23] Emergent Correspondence from Image Diffusion
https://diffusionfeatures.github.io
MIT License
594 stars 32 forks source link

CUDA error #21

Closed z-jiaming closed 8 months ago

z-jiaming commented 9 months ago

Thanks for your great work! I try the eval_davis.py with adm model after create with conda env create -f environment.yml.

Snipaste_2024-01-15_20-29-02

But it raise a cuda error:

Snipaste_2024-01-15_20-21-50

I passed CUDA_LAUNCH_BLOCKING=1, then:

Snipaste_2024-01-15_20-16-12

I try to delete codes which may have an effect, including gc.collect() and 'torch.cuda.empty_cache()',. but it doesn't work.

Would you mind help me to slove this? Thanks a lot!

Tsingularity commented 9 months ago

This seems to imply GPU is out of memory. Could you try decrease the n_last_frames argument? This would lead to very marginal performance drop though.

z-jiaming commented 9 months ago

Thanks for your reply! I decrease the n_last_framesargument and it works. Could you please tell me the GPU memory requires in your standard setup?

Tsingularity commented 9 months ago

The video experiments are done on A100.

z-jiaming commented 9 months ago

Is it the 80G version?

Tsingularity commented 8 months ago

yes