Shortcuts

mmeval.utils.is_filepath

mmeval.utils.is_filepath(x)[源代码]

Check if the given object is Path-like.

参数

x (object) – Any object.

返回

Returns True if the given is a str or pathlib.Path. Otherwise, returns False.

返回类型

bool

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.