{"action":"created","issue":{"url":"https://api.github.com/repos/fastai/fastai/issues/1323","repository_url":"https://api.github.com/repos/fastai/fastai","labels_url":"https://api.github.com/repos/fastai/fastai/issues/1323/labels{/name}","comments_url":"https://api.github.com/repos/fastai/fastai/issues/1323/comments","events_url":"https://api.github.com/repos/fastai/fastai/issues/1323/events","html_url":"https://github.com/fastai/fastai/issues/1323","id":390371673,"node_id":"MDU6SXNzdWUzOTAzNzE2NzM=","number":1323,"title":"bug when trying to train new model","user":{"login":"bbowles-personal","id":44647062,"node_id":"MDQ6VXNlcjQ0NjQ3MDYy","avatar_url":"https://avatars2.githubusercontent.com/u/44647062?v=4","gravatar_id":"","url":"https://api.github.com/users/bbowles-personal","html_url":"https://github.com/bbowles-personal","followers_url":"https://api.github.com/users/bbowles-personal/followers","following_url":"https://api.github.com/users/bbowles-personal/following{/other_user}","gists_url":"https://api.github.com/users/bbowles-personal/gists{/gist_id}","starred_url":"https://api.github.com/users/bbowles-personal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbowles-personal/subscriptions","organizations_url":"https://api.github.com/users/bbowles-personal/orgs","repos_url":"https://api.github.com/users/bbowles-personal/repos","events_url":"https://api.github.com/users/bbowles-personal/events{/privacy}","received_events_url":"https://api.github.com/users/bbowles-personal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-12T19:20:29Z","updated_at":"2018-12-26T10:33:26Z","closed_at":"2018-12-26T10:33:26Z","author_association":"NONE","body":"<!-- **Please note**: Installation issues should be reported here:\r\n\r\nfastai-1.0.x: http://forums.fast.ai/t/fastai-v1-install-issues-thread/24111\r\nfastai-0.7.x: http://forums.fast.ai/t/fastai-v0-install-issues-thread/24652\r\n-->\r\n\r\n**Describe the bug**\r\nThe code\r\n ```\r\nlearn = create_cnn(data, models.resnet50, metrics=accuracy)\r\nlearn.fit_one_cycle(1,1e-2)\r\n```\r\nfails because it the attribute `out` was never assigned to the `ProgressBar' class.\r\n\r\nexample stack trace\r\n\r\n```\r\n\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-16-f50636af9890> in <module>()\r\n      1 learn = create_cnn(data, models.resnet50, metrics=accuracy)\r\n----> 2 learn.fit_one_cycle(1,1e-2)\r\n\r\n/home/ec2-user/anaconda3/lib/python3.6/site-packages/fastai/train.py in fit_one_cycle(learn, cyc_len, max_lr, moms, div_factor, pct_start, wd, callbacks, **kwargs)\r\n     19     callbacks.append(OneCycleScheduler(learn, max_lr, moms=moms, div_factor=div_factor,\r\n     20                                         pct_start=pct_start, **kwargs))\r\n---> 21     learn.fit(cyc_len, max_lr, wd=wd, callbacks=callbacks)\r\n     22 \r\n     23 def lr_find(learn:Learner, start_lr:Floats=1e-7, end_lr:Floats=10, num_it:int=100, stop_div:bool=True, **kwargs:Any):\r\n\r\n/home/ec2-user/anaconda3/lib/python3.6/site-packages/fastai/basic_train.py in fit(self, epochs, lr, wd, callbacks)\r\n    164         callbacks = [cb(self) for cb in self.callback_fns] + listify(callbacks)\r\n    165         fit(epochs, self.model, self.loss_func, opt=self.opt, data=self.data, metrics=self.metrics,\r\n--> 166             callbacks=self.callbacks+callbacks)\r\n    167 \r\n    168     def create_opt(self, lr:Floats, wd:Floats=0.)->None:\r\n\r\n/home/ec2-user/anaconda3/lib/python3.6/site-packages/fastai/basic_train.py in fit(epochs, model, loss_func, opt, data, callbacks, metrics)\r\n     92     except Exception as e:\r\n     93         exception = e\r\n---> 94         raise e\r\n     95     finally: cb_handler.on_train_end(exception)\r\n     96 \r\n\r\n/home/ec2-user/anaconda3/lib/python3.6/site-packages/fastai/basic_train.py in fit(epochs, model, loss_func, opt, data, callbacks, metrics)\r\n     80             cb_handler.on_epoch_begin()\r\n     81 \r\n---> 82             for xb,yb in progress_bar(data.train_dl, parent=pbar):\r\n     83                 xb, yb = cb_handler.on_batch_begin(xb, yb)\r\n     84                 loss = loss_batch(model, xb, yb, loss_func, opt, cb_handler)\r\n\r\n/home/ec2-user/anaconda3/lib/python3.6/site-packages/fastprogress/fastprogress.py in __init__(self, gen, total, display, leave, parent, auto_update)\r\n    144     def __init__(self, gen, total=None, display=True, leave=True, parent=None, auto_update=True):\r\n    145         self.progress = html_progress_bar(0, len(gen) if total is None else total, \"\")\r\n--> 146         super().__init__(gen, total, display, leave, parent, auto_update)\r\n    147 \r\n    148     def on_iter_begin(self):\r\n\r\n/home/ec2-user/anaconda3/lib/python3.6/site-packages/fastprogress/fastprogress.py in __init__(self, gen, total, display, leave, parent, auto_update)\r\n     48         else:\r\n     49             self.leave,self.display=False,False\r\n---> 50             parent.add_child(self)\r\n     51         self.comment = ''\r\n     52         if not self.auto_update:\r\n\r\n/home/ec2-user/anaconda3/lib/python3.6/site-packages/fastprogress/fastprogress.py in add_child(self, child)\r\n    193         self.child = child\r\n    194         self.inner_dict['pb2'] = self.child.progress\r\n--> 195         self.show()\r\n    196 \r\n    197     def show(self):\r\n\r\n/home/ec2-user/anaconda3/lib/python3.6/site-packages/fastprogress/fastprogress.py in show(self)\r\n    200         to_show = [name for name in self.order if name in self.inner_dict.keys()]\r\n    201         self.html_code = '\\n'.join([self.inner_dict[n] for n in to_show])\r\n--> 202         self.out.update(HTML(self.html_code))\r\n    203 \r\n    204     def write(self, line, table=False):\r\n\r\nAttributeError: 'NoneType' object has no attribute 'update'```\r\n\r\n\r\n\r\n\r\n```\r\nIn [56]: import fastai; fastai.show_install(1)\r\n\r\n\r\n```text\r\n=== Software === \r\npython version  : 3.6.3\r\nfastai version  : 1.0.36\r\ntorch version   : 1.0.0\r\nnvidia driver   : 396.44\r\ntorch cuda ver  : 9.0.176\r\ntorch cuda is   : available\r\ntorch cudnn ver : 7401\r\ntorch cudnn is  : enabled\r\n\r\n=== Hardware === \r\nnvidia gpus     : 1\r\ntorch available : 1\r\n  - gpu0        : 16160MB | Tesla V100-SXM2-16GB\r\n\r\n=== Environment === \r\nplatform        : Linux-4.14.77-70.59.amzn1.x86_64-x86_64-with-glibc2.9\r\ndistro          : #1 SMP Mon Nov 12 22:02:45 UTC 2018\r\nconda env       : Unknown\r\npython          : /home/ec2-user/anaconda3/bin/python\r\nsys.path        : \r\n/home/ec2-user/anaconda3/bin\r\n/home/ec2-user/src/cntk/bindings/python\r\n/home/ec2-user/anaconda3/lib/python36.zip\r\n/home/ec2-user/anaconda3/lib/python3.6\r\n/home/ec2-user/anaconda3/lib/python3.6/lib-dynload\r\n/home/ec2-user/anaconda3/lib/python3.6/site-packages\r\n/home/ec2-user/anaconda3/lib/python3.6/site-packages/Sphinx-1.5.1-py3.6.egg\r\n/home/ec2-user/anaconda3/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg\r\n/home/ec2-user/anaconda3/lib/python3.6/site-packages/IPython/extensions\r\n/home/ec2-user/.ipython\r\n\r\nWed Dec 12 19:15:07 2018       \r\n+-----------------------------------------------------------------------------+\r\n| NVIDIA-SMI 396.44                 Driver Version: 396.44                    |\r\n|-------------------------------+----------------------+----------------------+\r\n| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |\r\n| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |\r\n|===============================+======================+======================|\r\n|   0  Tesla V100-SXM2...  On   | 00000000:00:1E.0 Off |                    0 |\r\n| N/A   36C    P0    37W / 300W |   1398MiB / 16160MiB |      0%      Default |\r\n+-------------------------------+----------------------+----------------------+\r\n                                                                               \r\n+-----------------------------------------------------------------------------+\r\n| Processes:                                                       GPU Memory |\r\n|  GPU       PID   Type   Process name                             Usage      |\r\n|=============================================================================|\r\n|    0      9695      C   python                                      1388MiB |\r\n+-----------------------------------------------------------------------------+\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/fastai/fastai/issues/comments/449946765","html_url":"https://github.com/fastai/fastai/issues/1323#issuecomment-449946765","issue_url":"https://api.github.com/repos/fastai/fastai/issues/1323","id":449946765,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTk0Njc2NQ==","user":{"login":"sgugger","id":35901082,"node_id":"MDQ6VXNlcjM1OTAxMDgy","avatar_url":"https://avatars3.githubusercontent.com/u/35901082?v=4","gravatar_id":"","url":"https://api.github.com/users/sgugger","html_url":"https://github.com/sgugger","followers_url":"https://api.github.com/users/sgugger/followers","following_url":"https://api.github.com/users/sgugger/following{/other_user}","gists_url":"https://api.github.com/users/sgugger/gists{/gist_id}","starred_url":"https://api.github.com/users/sgugger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgugger/subscriptions","organizations_url":"https://api.github.com/users/sgugger/orgs","repos_url":"https://api.github.com/users/sgugger/repos","events_url":"https://api.github.com/users/sgugger/events{/privacy}","received_events_url":"https://api.github.com/users/sgugger/received_events","type":"User","site_admin":false},"created_at":"2018-12-26T10:33:26Z","updated_at":"2018-12-26T10:33:26Z","author_association":"COLLABORATOR","body":"Closing this since there is no news and we can't reproduce the bug on our side."}}
{"actor":{"display_login":"sgugger"}}