Skip to content

No run.log File #21

@lugangnie

Description

@lugangnie

When I run train.py, it reported a mistake about no run._log.log file? Can you help me solve this problem, thanks.
Error details:
(torch2.0) nlg@ubuntu:/PycharmProj2/DeepTTE-master$ python main.py --task train --batch_size 10 --result_file ./result/deeptte.res --pooling_method attention --kernel_size 3 --alpha 0.1 --log_file run_log
Traceback (most recent call last):
File "main.py", line 161, in
run()
File "main.py", line 148, in run
elogger = logger.Logger(args.log_file)
File "/home/nlg/PycharmProj2/DeepTTE-master/logger.py", line 5, in init
self.file = open('./logs/{}.log'.format(exp_name), 'w')
IOError: [Errno 2] No such file or directory: './logs/run_log.log'
(torch2.0) nlg@ubuntu:
/PycharmProj2/DeepTTE-master$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions