e0c9101da298f3f59f80ec9a54ab2dc5794de534
- Updated `engine_pretrain.py` to enhance visualization of CWT and 1D signals, ensuring clarity in the relationship between original signals and their CWT representations. - Removed redundant comments and improved code readability. - Adjusted training logic in `train_one_epoch` to streamline gradient updates and logging. - Enhanced precision handling in `pretrain.py`, ensuring compatibility with various hardware setups. - Improved argument parsing for better configurability of training parameters. - Added support for BF16 and FP16 precision modes, with appropriate fallbacks and warnings. - Optimized model initialization and training loop for clarity and efficiency.
Languages
Python
100%