Commit Graph
2 Commits
Author SHA1 Message Date
zaochuan5854 48a63d7d7f fix(base_diffuser): improve weight mapping assertions for refitting
- Added assertion to ensure weight mapping is not None before checking layer presence in _should_refit_layer method.
- Enhanced error handling in _should_refit_layer to provide clearer feedback when weight mapping is missing.
- Updated assertions in _schedule_device to ensure shape mapping is available for refitting.
2026-04-20 17:26:25 +09:00
zaochuan5854 3d9bf13a17 Refactor TensorRT loader and utilities for improved structure and functionality
- Removed redundant code and organized imports in `trt_loader.py`.
- Consolidated TensorRT search path logic into a dedicated function.
- Updated `TRTDiffuser` and `TRTAnimaDiffuser` classes to streamline model handling.
- Enhanced `ModelBundle` class to improve file handling and error reporting.
- Introduced type hints for better code clarity and maintainability.
- Removed deprecated functions and ensured compatibility with the latest TensorRT and ONNX standards.
2026-04-20 02:03:39 +09:00