Refactor app.py and inference.py to streamline image generation and mesh export processes. Removed unnecessary CPU transfers and temporary file handling, directly returning generated GLB paths. Updated mesh export in CRM model to support vertex colors and improved overall efficiency in texture mapping.
Fix variable names in mesh export for CRM model to enhance clarity and maintain consistency with previous changes. Updated vertices and faces variable names for better readability.
Update mesh export in CRM model to use GLB format with correct vertex and face transformations. This change enhances compatibility and improves file handling by exporting to a .glb file instead of .obj.
Refactor gen_image function in app.py to return base64 encoded GLB data instead of a file path. Update mesh export in inference.py to return .obj file extension. Modify Mesh class to streamline GLB export and enhance texture handling, ensuring proper integration of vertex attributes.
Refactor gen_image function in app.py to create temporary GLB files in a persistent directory, improving file management. Update CRM model to transform vertices and faces for correct GLB coordinate system compatibility.
Add vertex color support in Mesh class and update GLB export in CRM model. Enhance mesh attributes and material handling for vertex colors, ensuring proper integration in GLTF format.