~/NN/Python/fastai/courses/dl1/fastai/model.py in fit(model, data, n_epochs, opt, crit, metrics, callbacks, stepper, swa_model, swa_start, swa_eval_freq, **kwargs)ġ50 vals = validate(model_stepper, cur_data.val_dl, metrics)
–> 234 swa_eval_freq=swa_eval_freq, **kwargs)Ģ36 def get_layer_groups(self): return _layer_groups() ~/NN/Python/fastai/courses/dl1/fastai/learner.py in fit_gen(self, model, data, layer_opt, n_cycle, cycle_len, cycle_mult, cycle_save_name, best_save_name, use_clr, use_clr_beta, metrics, callbacks, use_wd_sched, norm_wds, wds_sched_mult, use_swa, swa_start, swa_eval_freq, **kwargs)Ģ32 metrics=metrics, callbacks=callbacks, reg_fn=self.reg_fn, clip=self.clip, fp16=self.fp16,Ģ33 swa_model=self.swa_model if use_swa else None, swa_start=swa_start, –> 287 return self.fit_gen(self.model, self.data, layer_opt, n_cycle, **kwargs) ~/NN/Python/fastai/courses/dl1/fastai/learner.py in fit(self, lrs, n_cycle, wds, **kwargs)Ģ86 layer_opt = self.get_layer_opt(lrs, wds) Inde圎rror Traceback (most recent call last)Ģ data = om_paths(PATH+"", tfms=tfms_from_model(arch, 100))ģ learn = ConvLearner.pretrained(arch, data, precompute=False)
#Indexerror: invalid index to scalar variable how to#
I keep getting this error and I have no idea how to resolve it, anyone experienced something similar? Lastly I downloaded the dogs and cats file and extracted it into /data.
I am running the course on my home computer with ubuntu 16.04, cuda 8 cudnn 6, I set up a new environment with pyenv for python 3.6.5 and then installed the requirements from a git-clone of fastai master.