Spaces:
mashroo
/
Runtime error

Commit History

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

Enhance mesh generation in app.py and inference.py with hole filling and color assignment
ffc0d64

YoussefAnso commited on

Enhance image preprocessing in app.py with improved background handling and color conversion
c69515e

YoussefAnso commited on

Refactor background removal and image preprocessing in app.py
1756164

YoussefAnso commited on

Enhance image preprocessing in app.py with background removal and color conversion
882d814

YoussefAnso commited on

Add DIS background remover integration and model download functionality
05a5508

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

Update device handling in TwoStagePipeline to default to 'cuda' and adjust model loading to use 'cpu' for compatibility. Ensure consistent device usage across stages and improve code clarity.
7391a72

YoussefAnso commited on

Enhance Mesh class documentation by adding missing line breaks in docstrings for improved readability. Update device handling in FlexiCubes and FlexiCubesGeometry classes to default to 'cuda', ensuring consistent device usage across the application. Refactor ImageDreamDiffusion class to assert mode validity and streamline camera matrix pre-computation.
d493b2e

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

Update requirements.txt to include rembg library for background removal functionality, enhancing the application's capabilities in image processing.
a50db4b

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

Ensure input tensor is on the same device as model weights in FrozenOpenCLIPEmbedder. This change improves compatibility and performance by preventing device mismatch during image encoding.
1dfd90b

YoussefAnso commited on

Enhance token handling in FrozenOpenCLIPEmbedder by adding device checks and conversions. This update ensures that input tokens are correctly processed as torch tensors on the appropriate device, improving compatibility and performance across different hardware configurations.
566832c

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

Refactor attention module to improve xformers integration. Renamed availability flag to HAS_XFORMERS and added safe_memory_efficient_attention function for better handling of attention operations across devices. Updated related assertions and calls to ensure compatibility with systems lacking GPU support.
1d3fed2

YoussefAnso commited on

Update default device setting to CPU in encoder modules for improved compatibility across systems without GPU support.
3e7ee7c

YoussefAnso commited on

Update default device setting to CPU in FlexiCubesGeometry and FlexiCubes classes for improved compatibility across systems without GPU support.
b3b8cf5

YoussefAnso commited on