Shortcuts

Source code for mmeval.utils.path

# Copyright (c) OpenMMLab. All rights reserved.
from pathlib import Path


[docs]def is_filepath(x): """Check if the given object is Path-like. Args: x (object): Any object. Returns: bool: Returns True if the given is a str or :class:`pathlib.Path`. Otherwise, returns False. """ return isinstance(x, str) or isinstance(x, Path)
Read the Docs v: latest
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.