Spaces:
mashroo
/
Runtime error

Commit History

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.
1fa688f

YoussefAnso commited on

Refactor texture baking logic in generate3d function of inference.py to utilize per-vertex colors for improved texture quality. Updated the method for filling the texture image to enhance the visual output in mesh exports.
37c1f6f

YoussefAnso commited on

Ensure additional model components are moved to CPU in app.py to maintain consistency and prevent device-related issues during processing.
5f62420

YoussefAnso commited on

Ensure model components are on CPU after loading in app.py to prevent device-related issues during processing.
bfac008

YoussefAnso commited on

Ensure tensors are on CPU in generate3d function of inference.py for consistent processing. Updated points_tensor and triplane_feature2 to prevent device-related issues during inference.
dcb102c

YoussefAnso commited on

Refactor generate3d function in inference.py to implement CPU-only UV unwrapping using xatlas and trimesh for improved texture mapping. Updated texture baking logic to utilize the model's decoder and rgbMlp, enhancing the quality of generated textures in mesh exports.
f6ac519

YoussefAnso commited on

Refactor generate3d function in inference.py to implement CCM-based UV assignment for improved texture mapping. Updated color map preparation and vertex projection to enhance mesh quality in exports, ensuring compatibility with various input formats.
e666402

YoussefAnso commited on

Enhance texture baking logic in generate3d function of inference.py by integrating OpenCV for color map processing. Updated albedo generation to support photorealistic textures and ensure proper format handling, improving overall texture quality in mesh exports.
854cd53

YoussefAnso commited on

Refactor generate3d function in inference.py to integrate xatlas for UV parameterization and improve texture baking logic. Updated mesh export process to create GLB files directly from the generated mesh, enhancing overall functionality and maintainability.
9ee53e8

YoussefAnso commited on

Update imports in inference.py to include zipfile and nvdiffrast for enhanced mesh processing capabilities and improved functionality.
d454202

YoussefAnso commited on

Update imports in inference.py to include numpy, PIL, and mesh utilities for enhanced functionality and improved mesh processing.
d63ad23

YoussefAnso commited on

Add torch import in inference.py to support additional functionality
0981827

YoussefAnso commited on

Add Renderer import in inference.py to support enhanced 3D model generation
5777f44

YoussefAnso commited on

Refactor generate3d function in inference.py to enhance mesh processing and export logic. Streamlined image tensor handling, improved denoising integration, and updated mesh export to include UV mapping. Ensured proper handling of temporary files for OBJ and GLB formats, enhancing overall readability and maintainability.
a14c9ce

YoussefAnso commited on

Refactor generate3d function in inference.py to streamline noise addition and improve mesh processing. Enhanced color generation for vertices and updated GLB export logic, ensuring efficient handling of mesh data and improved readability.
2cf3ed2

YoussefAnso commited on

Refactor generate3d function in inference.py to improve mesh export process. Updated OBJ and texture file checks, streamlined GLB conversion with embedded texture handling, and enhanced error handling for missing files. This change ensures proper export of textured GLB files.
30b6055

YoussefAnso commited on

Refactor generate3d function in inference.py to improve readability and maintainability. Enhanced RGB and coordinate conversion, streamlined noise addition for denoising, and updated mesh export process to utilize trimesh for GLB format, ensuring proper handling of UV textures.
dfab55e

YoussefAnso commited on

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.
b2dc9cc

YoussefAnso commited on

Update return value in generate3d function to use .glb extension for mesh export, ensuring consistency with recent changes in file handling and format compatibility.
2a4c225

YoussefAnso commited on

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.
6a7c61b

YoussefAnso commited on

Refactor gen_image function in app.py to create a temporary GLB file with a proper extension and return its path. This change enhances file management by ensuring the generated file is correctly handled and simplifies the cleanup process.
e0263b2

YoussefAnso commited on

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.
81d5d11

YoussefAnso commited on

Refactor gen_image function in app.py to utilize NamedTemporaryFile for GLB file creation, enhancing file management and simplifying cleanup. Return the path of the temporary GLB file directly.
71312a3

YoussefAnso commited on

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.
f2cf584

YoussefAnso commited on

Refactor GLTF export in Mesh class to streamline buffer views and accessors. Enhance texture handling and ensure proper integration of vertex attributes, improving overall GLB file generation.
3a77493

YoussefAnso commited on

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.
4bc1108

YoussefAnso commited on

Update mesh export in inference.py to use .glb suffix for temporary files and return the correct path without appending .obj. This improves file handling consistency.
841251d

YoussefAnso commited on

Refactor gen_image function in app.py to use a temporary file for GLB data instead of base64 encoding. This change improves file handling and returns the path to the temporary GLB file.
57a43ce

YoussefAnso commited on

Add base64 import to app.py for encoding functionality; remove unnecessary newline in requirements.txt.
65f401b

YoussefAnso commited on

Add pydantic version 2.10.6 to requirements.txt for enhanced data validation and parsing capabilities.
4957916

YoussefAnso commited on

Update huggingface-hub version in requirements.txt from 0.19.4 to 0.21.1 for compatibility with recent features and improvements.
5f53ef7

YoussefAnso commited on

Re-added .webp images via Git LFS after history cleanup
0a4637f

YoussefAnso commited on

Track .webp images with Git LFS
db2d0d3

YoussefAnso commited on

Add stage1 and stage2 configuration options to argument parser in app.py for enhanced flexibility in model configuration.
5407b39

YoussefAnso commited on

Update gradio version in requirements.txt from 0.16.0 to 3.16.0 for compatibility with recent features and improvements.
27cbdde

YoussefAnso commited on

Enhance gen_image function in app.py to return base64 encoded GLB data alongside generated images. Clean up argument parsing by removing unused stage1 and stage2 config options in parser. Update requirements.txt to specify gradio version for compatibility.
3ae641b

YoussefAnso commited on

Update huggingface-hub version constraint in requirements.txt to specify a range of >=0.24.0,<0.25.0 for improved compatibility and stability.
748d9f5

YoussefAnso commited on

Remove upper version constraint for huggingface-hub in requirements.txt to allow for the latest updates and improvements.
293b404

YoussefAnso commited on

Update requirements.txt to remove upper version constraint for huggingface-hub, allowing for more flexibility in dependency management.
484b13e

YoussefAnso commited on

Refactor mesh export process in inference.py to directly save as GLB format, removing intermediate OBJ conversion steps. Update return value to reflect new output format.
6ded434

YoussefAnso commited on

Refactor app.py by moving model initialization and argument parsing to the main execution block, enhancing clarity and organization. Correct typos in comments and variable names for improved readability. Update Gradio component configurations for better user experience.
bb9cdff

YoussefAnso commited on

Refactor app.py to simplify UI component configurations by consolidating attributes and improving readability. Update demo launch method to utilize queue for enhanced performance.
732c53f

YoussefAnso commited on

Remove 'type' attribute from output_model in app.py to streamline component configuration.
543dbe2

YoussefAnso commited on

Enhance app.py UI components by adding show_label and show_download_button options for better user experience. Refactor background choice and color picker for improved readability. Update demo launch settings to enable API access and error display.
a1731c2

YoussefAnso commited on

Update huggingface-hub version constraint in requirements.txt to allow versions between 0.24.0 and 0.25.0 for improved compatibility and features.
9e975a6

YoussefAnso commited on

Update huggingface-hub version constraint in requirements.txt to allow versions between 0.19.4 and 0.20.0 for improved compatibility and features.
9feef63

YoussefAnso commited on

Pin huggingface-hub version to 0.16.4 in requirements.txt for consistent dependency management.
ca8ee12

YoussefAnso commited on

Update requirements.txt to uncomment onnxruntime, enabling its use in the project.
abefb27

YoussefAnso commited on

Update requirements.txt to remove specific versions for gradio and huggingface-hub, allowing for more flexible dependency management. Comment out onnxruntime for potential future use.
f441be3

YoussefAnso commited on