NVIDIA / NeMo

A scalable generative AI framework built for researchers and developers working on Large Language Models, Multimodal, and Speech AI (Automatic Speech Recognition and Text-to-Speech)
https://docs.nvidia.com/nemo-framework/user-guide/latest/overview.html
Apache License 2.0
11.81k stars 2.46k forks source link

problem in exp_manager #9050

Closed freshpearYoon closed 4 months ago

freshpearYoon commented 5 months ago

While following tutorial "Voice_Activity_Detection.ipynb", I confronted errors in "exp_dir = exp_manager(trainer, config.get("exp_manager",None))"

I've changed nothing on the tutorial, and I am getting errrors.

WHen I first run the cell , I get "--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) Cell In[164], line 1 ----> 1 exp_dir = exp_manager(trainer, config.get("exp_manager",None))

File ~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:510, in exp_manager(trainer, cfg) 507 _file.write(" ".join(sys.argv)) 509 # Try to get git hash --> 510 git_repo, git_hash = get_git_hash() 511 if git_repo: 512 with open(log_dir / 'git-info.log', 'w', encoding='utf-8') as _file:

File ~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:786, in get_git_hash() 776 """ 777 Helper function that tries to get the commit hash if running inside a git folder 778 (...) 781 str: git subprocess output or error message 782 """ 783 try: 784 return ( 785 True, --> 786 subprocess.check_output(['git', 'rev-parse', 'HEAD'], stderr=subprocess.STDOUT).decode(), 787 ) 788 except subprocess.CalledProcessError as err: ... 1862 err_msg = os.strerror(errno_num) -> 1863 raise child_exception_type(errno_num, err_msg, err_filename) 1864 raise child_exception_type(err_msg)

FileNotFoundError: [Errno 2] No such file or directory: 'git'"

and when I rerun the cell, I get 'LoggerMisconfigurationError: The pytorch lightning trainer that was passed to exp_manager contained a logger, and either create_tensorboard_logger: True or create_wandb_logger: False or create_mlflow_logger: Falseor create_dllogger_logger: False was set to True. These can only be used if trainer does not already have a logger. You can disable lighning's trainer from creating a logger by passing logger=False to its constructor'

I am using conda environment, which is recommended in README(python 3.10.12, cuda 11.8 etc)

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 4 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.