Shortcuts

BaseStorageBackend

class mmengine.fileio.BaseStorageBackend[源代码]

Abstract class of storage backends.

All backends need to implement two apis: get() and get_text().

  • get() reads the file as a byte stream.

  • get_text() reads the file as texts.