huggingface / meshgen

A blender addon for generating meshes with AI
MIT License
202 stars 11 forks source link

Pytorch Out of memory? #7

Open DA-990 opened 3 days ago

DA-990 commented 3 days ago

The following occurred when trying to load generator.

torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 1002.00 MiB. GPU 0 has a total capacity of 8.00 GiB of which 0 bytes is free. Of the allocated memory 13.98 GiB is allocated by PyTorch, and 129.48 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)

ciferscall commented 3 days ago

image