Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'args' is not defined #52

Open
guillermoim opened this issue Aug 15, 2020 · 2 comments
Open

NameError: name 'args' is not defined #52

guillermoim opened this issue Aug 15, 2020 · 2 comments

Comments

@guillermoim
Copy link

Hi, I've tried to run the code for searching policies, but there is no way I can make it run on a single machine with several GPUs and the problem seems to be with Ray. I do initialize the ray server correctly, but apparently the trouble is with the train_and_eval function.

Any suggestion about what I could be doing wrong/ how to workaround this?

2020-08-15 10:18:09,387 ERROR worker.py:1717 -- Possible unhandled error from worker: ray_worker (pid=13478, host=macaron) File "FastAutoAugment/search.py", line 66, in train_model result = train_and_eval(None, dataroot, cv_ratio_test, cv_fold, save_path=save_path, only_eval=skip_exist) File "/home/gim282/data_augmentation/good/FastAutoAugment/train.py", line 123, in train_and_eval add_filehandler(logger, args.save + '.log') NameError: name 'args' is not defined

@XuChunqiao
Copy link

@guillermoim Hello! I met the same problem.Have you solved the problem?And how?Thank you very much!

@michklim
Copy link

michklim commented Sep 7, 2020

@guillermoim and @XuChunqiao it took me while to find it...
in train.py line 122, try do sth like this:

    if is_master:
        # add_filehandler(logger, args.save + '.log')
        add_filehandler(logger, 'logger.log')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants