BrainFM / utils /env.py
peirong26's picture
Upload 187 files
2571f24 verified
raw
history blame contribute delete
373 Bytes
#!/usr/bin/env python3
"""Set up Environment."""
from iopath.common.file_io import PathManagerFactory
_ENV_SETUP_DONE = False
pathmgr = PathManagerFactory.get(key="pyslowfast")
checkpoint_pathmgr = PathManagerFactory.get(key="pyslowfast_checkpoint")
def setup_environment():
global _ENV_SETUP_DONE
if _ENV_SETUP_DONE:
return
_ENV_SETUP_DONE = True