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

learn.summary() crashes out on 2nd transfer learning #2735

Closed
ai-padawan opened this issue Aug 31, 2020 · 3 comments
Closed

learn.summary() crashes out on 2nd transfer learning #2735

ai-padawan opened this issue Aug 31, 2020 · 3 comments
Labels

Comments

@ai-padawan
Copy link

First reported bug here:
https://forums.fast.ai/t/bug-learn-summary-does-not-work-on-2nd-transfer-learning/77897

tldr: learn.summary() crashes out with the following summary when doing a 2nd cycle of transfer learning

 57         elif val <= self.first_its or val >= self.last_v + self.wait_for or val >= self.total:
 58             cur_t = time.time()
 59             avg_t = (cur_t - self.start_t) / val
 60             self.wait_for = max(int(self.update_every / (avg_t+1e-8)),1)
 61             self.pred_t = avg_t * self.total
 
 AttributeError: 'NBProgressBar' object has no attribute 'start_t'

When I revert back the fastai code (in the fastai2 repo to commit: 59d878d) this crash goes away. I've isolated it to the subsequent commit d9ed4a8, with refactor learn.summary() that causes this error.

@raphaelr
Copy link
Contributor

This also breks learn.tta()

@jph00
Copy link
Member

jph00 commented Sep 17, 2020

@ai-padawan , as mentioned in the issue template, we need full details on how to repro the bug, in order to fix it.

Can you please provide a complete code example which triggers this error?

@jph00
Copy link
Member

jph00 commented Sep 17, 2020

I suspect my fix to #2764 should fix this too. Feel free to reopen if it's not fixed.

@jph00 jph00 closed this as completed Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants