---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_29964/2234347239.py in <module>
----> 1 learn=cnn_learner(dls,resnet34,metrics=error_rate)
~\anaconda3\envs\bda2021\lib\site-packages\fastai\vision\learner.py in cnn_learner(dls, arch, normalize, n_out, pretrained, config, loss_func, opt_func, lr, splitter, cbs, metrics, path, model_dir, wd, wd_bn_bias, train_bn, moms, **kwargs)
177 if n_out is None: n_out = get_c(dls)
178 assert n_out, "`n_out` is not defined, and could not be inferred from data, set `dls.c` or pass `n_out`"
--> 179 model = create_cnn_model(arch, n_out, pretrained=pretrained, **kwargs)
180
181 splitter=ifnone(splitter, meta['split'])
~\anaconda3\envs\bda2021\lib\site-packages\fastai\vision\learner.py in create_cnn_model(arch, n_out, pretrained, cut, n_in, init, custom_head, concat_pool, **kwargs)
141 "Create custom convnet architecture"
142 meta = model_meta.get(arch, _default_meta)
--> 143 body = create_body(arch, n_in, pretrained, ifnone(cut, meta['cut']))
144 if custom_head is None:
145 nf = num_features_model(nn.Sequential(*body.children()))
~\anaconda3\envs\bda2021\lib\site-packages\fastai\vision\learner.py in create_body(arch, n_in, pretrained, cut)
63 def create_body(arch, n_in=3, pretrained=True, cut=None):
64 "Cut off the body of a typically pretrained `arch` as determined by `cut`"
---> 65 model = arch(pretrained=pretrained)
66 _update_first_layer(model, n_in, pretrained)
67 #cut = ifnone(cut, cnn_config(arch)['cut'])
~\anaconda3\envs\bda2021\lib\site-packages\torchvision\models\resnet.py in resnet34(pretrained, progress, **kwargs)
286 progress (bool): If True, displays a progress bar of the download to stderr
287 """
--> 288 return _resnet('resnet34', BasicBlock, [3, 4, 6, 3], pretrained, progress,
289 **kwargs)
290
~\anaconda3\envs\bda2021\lib\site-packages\torchvision\models\resnet.py in _resnet(arch, block, layers, pretrained, progress, **kwargs)
260 model = ResNet(block, layers, **kwargs)
261 if pretrained:
--> 262 state_dict = load_state_dict_from_url(model_urls[arch],
263 progress=progress)
264 model.load_state_dict(state_dict)
~\anaconda3\envs\bda2021\lib\site-packages\torch\hub.py in load_state_dict_from_url(url, model_dir, map_location, progress, check_hash, file_name)
551 r = HASH_REGEX.search(filename) # r is Optional[Match[str]]
552 hash_prefix = r.group(1) if r else None
--> 553 download_url_to_file(url, cached_file, hash_prefix, progress=progress)
554
555 if _is_legacy_zip_format(cached_file):
~\anaconda3\envs\bda2021\lib\site-packages\torch\hub.py in download_url_to_file(url, dst, hash_prefix, progress)
436 if hash_prefix is not None:
437 sha256 = hashlib.sha256()
--> 438 with tqdm(total=file_size, disable=not progress,
439 unit='B', unit_scale=True, unit_divisor=1024) as pbar:
440 while True:
~\anaconda3\envs\bda2021\lib\site-packages\tqdm\notebook.py in __init__(self, *args, **kwargs)
240 unit_scale = 1 if self.unit_scale is True else self.unit_scale or 1
241 total = self.total * unit_scale if self.total else self.total
--> 242 self.container = self.status_printer(self.fp, total, self.desc, self.ncols)
243 self.container.pbar = proxy(self)
244 self.displayed = False
~\anaconda3\envs\bda2021\lib\site-packages\tqdm\notebook.py in status_printer(_, total, desc, ncols)
113 # Prepare IPython progress bar
114 if IProgress is None: # #187 #451 #558 #872
--> 115 raise ImportError(
116 "IProgress not found. Please update jupyter and ipywidgets."
117 " See https://ipywidgets.readthedocs.io/en/stable"
ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html