Stability-AI / stable-fast-3d

SF3D: Stable Fast 3D Mesh Reconstruction with UV-unwrapping and Illumination Disentanglement
https://stable-fast-3d.github.io
Other
975 stars 86 forks source link

Refactor get_activation function for clarity and efficiency #38

Open mandlinsarah opened 2 weeks ago

mandlinsarah commented 2 weeks ago

This update improves the code readability and efficiency of the get_activation function by utilizing a dictionary-based approach to map activation names to their corresponding functions. This change does not impact the core functionality but enhances code maintainability.