Fantasia3D icon indicating copy to clipboard operation
Fantasia3D copied to clipboard

memory cost

Open VLadImirluren opened this issue 1 year ago • 2 comments

I haven't as large compute resource as yours. This make me hard to reproduce your work. Can you share some trick of reduce the memory cost but reach the same effect? (In brief, how to use lower batchsize but same result)

VLadImirluren avatar Sep 03 '23 07:09 VLadImirluren

1、Installing xformers can greatly reduce memory usage. 2、Use gradient accumulation technology that is easy to implement as illustrated in threestudio 3、https://github.com/threestudio-project/threestudio/blob/main/README.md?plain=1#L575 4、rent 5、I think 4 GPUs are enough to reproduce my work, but there should be some changes needed in the configuration. For geometry modeling, use the DMTet 128 resolution to achieve a balance between quality and memory consumption when limited to batch size. For appearance modeling, the addition of negative prompt can greatly improve the generation quality.

ARuiChen avatar Sep 03 '23 07:09 ARuiChen

1、Installing xformers can greatly reduce memory usage. 2、Use gradient accumulation technology that is easy to implement as illustrated in threestudio 3、https://github.com/threestudio-project/threestudio/blob/main/README.md?plain=1#L575 4、rent 5、I think 4 GPUs are enough to reproduce my work, but there should be some changes needed in the configuration. For geometry modeling, use the DMTet 128 resolution to achieve a balance between quality and memory consumption when limited to batch size. For appearance modeling, the addition of negative prompt can greatly improve the generation quality.

thanks

VLadImirluren avatar Sep 03 '23 09:09 VLadImirluren