MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / info

Method info

monai/data/dataset.py:713–724  ·  view source on GitHub ↗

Returns: dataset info dictionary.

(self)

Source from the content-addressed store, hash-verified

711 raise RuntimeError("Invalid cache value, corrupted lmdb file?") from err
712
713 def info(self):
714 """
715 Returns: dataset info dictionary.
716
717 """
718 if self._read_env is None:
719 self._read_env = self._fill_cache_start_reader()
720 out = dict(self._read_env.info())
721 out["size"] = len(self.data)
722 out["filename"] = f"{self.db_file.absolute()}"
723 self.close()
724 return out
725
726 def close(self):
727 """Close the read environment and set it to None, if it exists."""

Callers 15

test_mp_cacheMethod · 0.95
test_cacheMethod · 0.95
run_cmdFunction · 0.80
__init__Method · 0.80
inferMethod · 0.80
_load_engineMethod · 0.80
forwardMethod · 0.80
_onnx_to_trtMethod · 0.80
_build_and_saveMethod · 0.80
copy_model_stateFunction · 0.80
freeze_layersFunction · 0.80
_resnetFunction · 0.80

Calls 2

closeMethod · 0.95

Tested by 2

test_mp_cacheMethod · 0.76
test_cacheMethod · 0.76