fastai / fastprogress

Simple and flexible progress bar for Jupyter Notebook and console
Apache License 2.0
1.09k stars 106 forks source link

Unexpected kwarg Auto-update TypeError on Colab (Python 3.6) #51

Closed eduguiu closed 4 years ago

eduguiu commented 4 years ago

Hi,

while going through the course-v3/dl2 notebooks (from 09c onwards) on Google Colab, found this bug. TypeError: init() got an unexpected keyword argument 'auto_update'

The origin looks like to be a lack of "auto_update" kwargs.

imatge

Commenting the "auto-update=False " is enought to bypass the error.

imatge

I've checked the installed version of fastprogress and it happens to be 0.2.2

Thanks,

Ed


TypeError Traceback (most recent call last)

in () ----> 1 learn.fit(40, cbsched) 5 frames /content/drive/My Drive/colab/course-v3/nbs/dl2/exp/nb_09b.py in fit(self, epochs, cbs, reset_opt) 69 self.do_begin_fit(epochs) 70 for epoch in range(epochs): ---> 71 self.do_begin_epoch(epoch) 72 if not self('begin_epoch'): self.all_batches() 73 /content/drive/My Drive/colab/course-v3/nbs/dl2/exp/nb_09b.py in do_begin_epoch(self, epoch) 58 def do_begin_epoch(self, epoch): 59 self.epoch,self.dl = epoch,self.data.train_dl ---> 60 return self('begin_epoch') 61 62 def fit(self, epochs, cbs=None, reset_opt=False): /content/drive/My Drive/colab/course-v3/nbs/dl2/exp/nb_09b.py in __call__(self, cb_name) 90 res = False 91 assert cb_name in self.ALL_CBS ---> 92 for cb in sorted(self.cbs, key=lambda x: x._order): res = cb(cb_name) and res 93 return res 94 /content/drive/My Drive/colab/course-v3/nbs/dl2/exp/nb_05b.py in __call__(self, cb_name) 19 def __call__(self, cb_name): 20 f = getattr(self, cb_name, None) ---> 21 if f and f(): return True 22 return False 23 /content/drive/My Drive/colab/course-v3/nbs/dl2/exp/nb_09c.py in begin_epoch(self) 45 def after_fit(self): self.mbar.on_iter_end() 46 def after_batch(self): self.pb.update(self.iter) ---> 47 def begin_epoch (self): self.set_pb() 48 def begin_validate(self): self.set_pb() 49 /content/drive/My Drive/colab/course-v3/nbs/dl2/exp/nb_09c.py in set_pb(self) 49 50 def set_pb(self): ---> 51 self.pb = progress_bar(self.dl, parent=self.mbar, auto_update=False) 52 self.mbar.update(self.epoch) TypeError: __init__() got an unexpected keyword argument 'auto_update' --------------------------------------------------
sgugger commented 4 years ago

This needs to be fixed in course-v3 not here. Please open an issue there if I forget to fix it later today.

eduguiu commented 4 years ago

merci Sylvain. Je demarre juste et je voulais vous aider. Ainsi que tester si je pouvais lancer un cable. courage avec le CoViD et merci pour tout.

cdt,

Eduard

Le sam. 28 mars 2020 à 14:33, Sylvain Gugger notifications@github.com a écrit :

This needs to be fixed in course-v3 not here. Please open an issue there if I forget to fix it later today.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fastai/fastprogress/issues/51#issuecomment-605447949, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPNINSRYSFIYN22J3TXFZLRJX4AZANCNFSM4KRNB7WQ .