codes.utils.utils#
Functions
|
Check if the training is already completed by looking for a completion marker file. |
|
Create a directory based on a unique identifier inside a specified subfolder of the base directory. |
|
Create a progress bar with a specific description. |
|
Load configuration from a YAML file and save a copy to the specified directory. |
|
Load a list of tasks from a JSON file. |
|
Create a formatted description for the progress bar that ensures consistent alignment. |
|
Print a message in a nicely formatted way with a fixed width. |
|
|
|
Save a list of tasks to a JSON file. |
|
Set random seeds for reproducibility. |
|
Decorator to time the execution of a function and store the duration as an attribute of the function. |
|
Initialize the random seed for each worker in PyTorch DataLoader. |