deepof.utils.str2bool

deepof.utils.str2bool(v: str) bool

Return the passed string as a boolean.

Parameters:

v (str) – String to transform to boolean value.

Returns:

bool. If conversion is not possible, it raises an error