mmengine.utils¶
Manager¶
The metaclass for global accessible class. |
|
|
Path¶
Check if path is an absolute path in different backends. |
|
Scan a directory to find the interested files. |
|
Package¶
Get installed path of package. |
|
Check package whether installed. |
Version¶
Convert a version string into a tuple of integers. |
|
Get the git hash of the current repo. |
Progress Bar¶
A progress bar which can print the progress. |
Track the progress of tasks iteration or enumeration with a progress bar. |
|
Track the progress of parallel task execution with a progress bar. |
|
Track the progress of tasks execution with a progress bar. |
Miscellaneous¶
A flexible Timer class. |
|
Check whether it is a list of some type. |
|
Check whether it is a tuple of some type. |
|
Check whether it is a sequence of some type. |
|
Whether the input is an string instance. |
|
Cast elements of an iterable object into some type. |
|
Cast elements of an iterable object into a list of some type. |
|
Cast elements of an iterable object into a tuple of some type. |
|
Concatenate a list of list into a single list. |
|
Slice a list into several sub lists by a list of given length. |
|
A decorator factory to check if prerequisites are satisfied. |
|
A decorator to check if some arguments are deprecate and try to replace deprecate src_arg_name to dst_arg_name. |
|
Marks functions as deprecated. |
|
Check whether the object has a method. |
|
Check if a method of base class is overridden in derived class. |
|
Import modules from the given list of strings. |
|
A decorator to check if some executable files are installed. |
|
A decorator to check if some python packages are installed. |
|
Add check points in a single line. |
|
Apply function to each element in dict, list or tuple that matches with the expression. |