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.
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.
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.
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.
Change default device setting to CPU in app.py for improved compatibility. Updated model loading to ensure it operates on CPU, enhancing performance on systems without GPU support.
Refactor remove_background function in app.py to enhance mask handling. Added checks for mask dimensions and data type, ensuring proper conversion to RGBA format for images. This improves the output quality when masks are applied.
Enhance image processing in remove_background function by adding dtype check and conversion for extracted images. This ensures that non-uint8 images are properly scaled and converted before being transformed into PIL format.
Add conversion of extracted image to PIL format in remove_background function in app.py. This ensures compatibility with subsequent image processing steps when the output is a NumPy array.
Refactor remove_background function in app.py to save images to a temporary file before processing. This change improves compatibility with the dis_remove_background method by ensuring the image is correctly handled as a file path.
Add functionality to download the DIS ONNX model if not found locally in app.py. Updated remove_background function to call new ensure_dis_onnx_model method for improved error handling. Added requests library to requirements.txt for HTTP requests.
Add configurable ONNX model path in app.py for background removal. Implement error handling for missing model file and ensure valid image processing. Updated remove_background function to utilize environment variable for model path.
Refactor background removal in app.py to utilize dis_bg_remover for improved image processing. Removed rembg dependency and updated related logic in remove_background function. Updated requirements.txt to reflect the change in background removal library.
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.
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.
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 utilize NamedTemporaryFile for GLB file creation, enhancing file management and simplifying cleanup. Return the path of the temporary GLB file directly.
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.
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.
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.
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.
Refactor app.py to simplify UI component configurations by consolidating attributes and improving readability. Update demo launch method to utilize queue for enhanced performance.
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.
Update background color picker in app.py to allow user interaction and add main guard for improved script execution. This enhances user experience and maintains code structure.
Refactor image processing functions in app.py to improve functionality and clarity. Updated preprocess_image and gen_image methods for better handling of background choices and image generation, while enhancing error handling and overall structure.
Refactor Gradio interface in app.py to enhance layout and usability, including updates to image input settings, background choice options, and button functionality for generating 3D shapes. Streamlined processing function connections for improved clarity.
Update app.py to optimize launch settings for Hugging Face Spaces, enabling request queue handling and clarifying comments. Adjust README.md to reflect the updated Gradio SDK version.
Enhance app.py with improved error handling, compatibility fixes, and streamlined image processing functions. Update Gradio interface for better user experience, including clearer background choice options and refined button functionality.
Refactor Gradio interface to improve layout and organization, enhancing user experience with clearer input/output sections and updated button functionality for generating 3D shapes.
Refactor Gradio interface to enhance input and output organization, update background choice label, and streamline button click event configuration for improved usability and clarity.
Remove unnecessary parameters from Gradio launch settings, simplifying the configuration for improved clarity and performance in local and Spaces environments.
Refactor Gradio launch settings to streamline API endpoint configuration, removing unnecessary parameters for improved clarity and performance in both local and Spaces environments.
Update Gradio launch settings to enable API endpoint with name "predict" while simplifying the configuration for both local and Spaces environments, enhancing usability and performance.