Solutions to Reduce Hardware Requirements
To deal with the problem of insufficient video memory, you can optimize the use of resources by the following methods:
- Choose a lightweight model: Prioritizes the LHM-0.5B model over LHM-1B, which official data shows to have lower memory requirements
- Image Preprocessing: Reduce the amount of input data by cropping the background, lowering the resolution (keeping the aspect ratio)
- step by step: Mr. Mister into the base model and then add actions individually to avoid loading all the functional modules at once!
- Cloud Service Replacement: Temporary access to high-performance GPU resources using platforms such as Colab
If you still encounter memory errors, you can modify the batch_size parameter in the configs file to reduce it to 4 or 2, but this will slightly increase the processing time.
This answer comes from the articleLHM: Generating action-enabled 3D human models from a single imageThe