Spaces:
mashroo
/
Running on Zero

CRM / inference.py

Commit History

Update activation function in RgbMlp class to use tanh for improved output range
3fc7370
Running

YoussefAnso commited on

Add color statistics logging in generate3d function
b913122

YoussefAnso commited on

Reduce remesh iterations in generate3d function for optimized mesh generation
dc9d3c9

YoussefAnso commited on

Update remesh iterations and repair option in generate3d function for improved mesh quality
e05a158

YoussefAnso commited on

Increase remesh iterations in generate3d function for enhanced mesh quality
9a06aba

YoussefAnso commited on

Update remesh size in generate3d function for improved mesh quality
35e6285

YoussefAnso commited on

Enable mesh repair in generate3d function for improved quality
6422a9b

YoussefAnso commited on

Update remesh iterations in generate3d function for improved mesh quality
62b95d1

YoussefAnso commited on

Adjust remesh size in generate3d function for improved mesh detail
866837b

YoussefAnso commited on

Adjust resolution and remesh iterations in generate3d function for optimized output
6b79750

YoussefAnso commited on

Update resolution parameter in generate3d function for higher output quality
9efc262

YoussefAnso commited on

Update remesh parameters in generate3d function for enhanced mesh quality
b8ec8dd

YoussefAnso commited on

Update remesh iterations in generate3d function for optimized performance
5f69bf6

YoussefAnso commited on

Update remesh parameters in generate3d function for improved mesh generation
c6227ec

YoussefAnso commited on

Update remesh parameters in generate3d function for improved mesh quality
02687d3

YoussefAnso commited on

Update remesh iterations and device handling in generate3d function
5175c4e

YoussefAnso commited on

Optimize generate3d function for performance and clarity
9a3d596

YoussefAnso commited on

Refactor mesh generation in generate3d function to streamline processing
eb6226d

YoussefAnso commited on

Update remesh parameter in generate3d function to disable remeshing
1932e80

YoussefAnso commited on

Fix typo in remesh parameter in generate3d function
bb5d6af

YoussefAnso commited on

Refine remesh size in generate3d function for improved mesh detail
e588787

YoussefAnso commited on

Adjust remesh size in generate3d function for improved mesh quality
d2af496

YoussefAnso commited on

Enhance color processing in generate3d function by applying clipping and gamma correction
bd713a9

YoussefAnso commited on

Update vertex color assignment in generate3d function to utilize original colors
2625296

YoussefAnso commited on

Comment out KDTree functionality in generate3d function to simplify color assignment process. Updated mesh creation to set vertex colors to None, removing reliance on nearest neighbor color mapping.
68935d6

YoussefAnso commited on

Update remesh iterations in generate3d function to improve mesh quality
7d064f4

YoussefAnso commited on

Refactor color scaling and assignment in generate3d function
8a29dd3

YoussefAnso commited on

Refine color extraction in generate3d function for original mesh
263eddc

YoussefAnso commited on

Enhance color assignment in generate3d function by utilizing original vertex data
411e8a2

YoussefAnso commited on

Refactor vertex handling in generate3d function for improved performance
df7cc11

YoussefAnso commited on

Add color assignment to new vertices in generate3d function
3d787d3

YoussefAnso commited on

Refactor mesh generation in app.py and update remeshing parameters in inference.py
38006c2

YoussefAnso commited on

Refactor generate3d function in inference.py to streamline mesh export process. Removed manual MTL file handling and updated export calls to enhance code clarity and maintainability.
a34ef67

YoussefAnso commited on

Refactor generate3d function in inference.py to improve mesh export process. Introduced temporary file handling for OBJ, MTL, and PNG outputs, ensuring proper texture mapping. Enhanced code readability by restructuring renderer initialization and file writing logic.
e5c94c9

YoussefAnso commited on

Refactor device handling in generate3d function to use CPU instead of CUDA for mesh processing, ensuring compatibility with non-GPU environments. This change improves flexibility in data handling and maintains the integrity of the mesh generation process.
b6dcd98

YoussefAnso commited on

Refactor generate3d function in inference.py to enhance 3D mesh generation. Introduced new image processing steps for color and XYZ data, improved triplane feature extraction, and updated mesh export logic to utilize temporary file handling. This streamlines the rendering process and maintains compatibility with GPU devices.
d72a5f9

YoussefAnso commited on

Update generate3d function to initialize nvdiffrast context using CUDA, enhancing rendering performance and compatibility with GPU devices.
a3626f7

YoussefAnso commited on

Enhance generate3d function to initialize nvdiffrast context for mesh export, improving rendering capabilities. Updated export call to include rendering context and adjusted parameters for UVs and texture image, ensuring better integration with the model.
db2fd1d

YoussefAnso commited on

Update generate3d function to use a data dictionary for mesh export, improving compatibility with CRM model. Adjusted export call to include output directory and device parameters, while maintaining the conversion from .obj to .glb format.
d65fe1c

YoussefAnso commited on

Remove unused parameters from mesh export call in generate3d function, simplifying the method signature and improving code clarity.
1ca648e

YoussefAnso commited on

Fix parameter naming in generate3d function for clarity and consistency. Updated rgb and xyz parameters to rgb_image and xyz_image respectively in the mesh export call.
890b999

YoussefAnso commited on

Refactor 3D mesh generation in inference.py to streamline the process. Introduced ensure_dir function for output directory management, updated generate3d function to accept model and image inputs, and improved mesh export and conversion to GLB format. This enhances code clarity and maintains compatibility with Gradio display.
4ce632b

YoussefAnso commited on

Refactor background removal process in app.py to utilize rembg library, enhancing performance and simplifying the code. Update device handling to allow dynamic selection between CPU and CUDA, improving compatibility across different hardware configurations. Modify output format from OBJ to GLB for better integration with Gradio display.
9d0b3b4

YoussefAnso commited on

Refactor texture baking in vertex_color_to_uv_textured_glb function to use a hybrid approach for barycentric calculations. This change enhances accuracy while maintaining performance, replacing vectorized operations with a loop-based method for improved precision in texture generation.
2053232

YoussefAnso commited on

Refactor texture baking in vertex_color_to_uv_textured_glb function to use vectorized operations. This change improves performance by precomputing face data and applying vectorized barycentric tests, enhancing the efficiency of texture generation.
44c19b3

YoussefAnso commited on

Refactor device handling across multiple modules to enforce CUDA usage explicitly. This change ensures consistent device allocation for model operations, enhancing performance on systems with GPU support while maintaining compatibility.
fdeb0ad

YoussefAnso commited on

Update device handling across multiple modules to support automatic selection of CUDA or CPU based on availability. This change enhances compatibility and performance on systems with or without GPU support, ensuring consistent behavior in model loading and data processing.
597a667

YoussefAnso commited on

Change device setting for mesh data in generate3d function to CPU for consistency with recent updates, ensuring compatibility across systems without GPU support.
82982c9

YoussefAnso commited on

Add debug texture saving in vertex_color_to_uv_textured_glb function in inference.py. This enhancement allows for easier troubleshooting by saving the generated texture as "debug_texture.png" after exporting the GLB file.
83a8b53

YoussefAnso commited on