Fastai.tabular module not found on kaggle kernal

There are instructions on how to make it work. It worked but so sloooow that you couldn’t work with it really…

(Install latest version of fastai, at the time it was 1.0.6 :slight_smile:)

  1. Enable the Internet & GPU.
  2. Execute

!pip install --upgrade pip
!pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cu92/torch_nightly.html
!pip install fastai==1.0.6

  1. Ctrl+shift+p and select “confirm restart kernel” This will restart the Jupyter Kernel instance and reload the installed libraries.
  2. Wait until the Jupyter Kernel finishes the restart
  3. import fastai shows the correct version.

Plus this fix RuntimeError: DataLoader worker (pid 137) is killed by signal: Bus error

setting num_workers=0 here:

data = ImageDataBunch.from_folder(
path,
ds_tfms=get_transforms(),
tfms=imagenet_norm,
size=256,
num_workers=0
)

2 Likes