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

Issue with _get_file_writer after recent commits #53

Open
MikkelAntonsen opened this issue Aug 11, 2019 · 2 comments
Open

Issue with _get_file_writer after recent commits #53

MikkelAntonsen opened this issue Aug 11, 2019 · 2 comments

Comments

@MikkelAntonsen
Copy link

I'm trying out pytorch-lightning and I'm having an issue after commits 1fad1c7 and 3fba70a. When I do

from test_tube import Experiment
exp = Experiment(save_dir=cfg['log_dir'])
trainer = Trainer(experiment=exp, max_nb_epochs=1, train_percent_check=0.01)

the program crashes with

File "/home/user/anaconda3/envs/pytorchenv/lib/python3.7/site-packages/test_tube/log.py", line 504, in _get_file_writer
if self.purge_step is not None:
AttributeError: 'Experiment' object has no attribute 'purge_step'

because there are four attributes of Experiment that are never set, self.purge_step, self.filename_suffix, self.flush_secs.

@williamFalcon
Copy link
Owner

williamFalcon commented Aug 11, 2019

make sure you have the correct versions installed (bottom of main readme in lightning). pytorch 1.2.0 introduced breaking changes which are fixed given that you use the correct pytorch, lightning and test tube versions. ie: after 4.2 you need pytorch 1.2.0.

check the faq in the readme in lightning

@MikkelAntonsen
Copy link
Author

My fault. I looked at the requirements.txt but missed the faq. Thanks:)

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

2 participants