mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
[Fix] fix is_abs
criterion error (#358)
* fix abs criterion error * update
This commit is contained in:
parent
936c4ebc58
commit
acd9cab25a
@ -110,7 +110,7 @@ def is_abs(path: str) -> bool:
|
|||||||
Returns:
|
Returns:
|
||||||
bool: whether path is an absolute path.
|
bool: whether path is an absolute path.
|
||||||
"""
|
"""
|
||||||
if osp.isabs(path) or path.startswith(('http', 'https', 's3')):
|
if osp.isabs(path) or path.startswith(('http://', 'https://', 's3://')):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user