yhcc / BARTABSA

142 stars 28 forks source link

NotADirectoryError: `logs` is not exist. #9

Open Jurys22 opened 2 years ago

Jurys22 commented 2 years ago

Hello, I'm following your instruction in the readme but when I try to launch

python train.py --dataset pengb/14lap

I get this error. What could be the cause?

Traceback (most recent call last):
  File ".\train.py", line 24, in <module>
    fitlog.set_log_dir('logs')
  File "C:\ProgramData\Anaconda3\lib\site-packages\fitlog\__init__.py", line 122, in set_log_dir
    _logger.set_log_dir(log_dir, new_log)
  File "C:\ProgramData\Anaconda3\lib\site-packages\fitlog\fastlog\logger.py", line 32, in wrapper
    return func(*args, **kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\fitlog\fastlog\logger.py", line 174, in set_log_dir
    raise NotADirectoryError("`{}` is not exist.".format(log_dir))
NotADirectoryError: `logs` is not exist.
Jurys22 commented 2 years ago

I created a logs directory where the train.py is located and it seems to work now.

butujvzipi commented 2 years ago

终端输入命令: fitlog init . 即可解决