fastai / fastbook

The fastai book, published as Jupyter Notebooks
Other
21.51k stars 8.33k forks source link

`n_workers` has to be changed to 0 to avoid getting stuck #595

Open GabriellCabrall opened 1 year ago

GabriellCabrall commented 1 year ago

When I try to run the following code

from fastai.text.all import *

dls = TextDataLoaders.from_folder(untar_data(URLs.IMDB), valid='test', bs=32)
learn = text_classifier_learner(dls, AWD_LSTM, drop_mult=0.5, metrics=accuracy)
learn.fine_tune(4, 1e-2)

I get this message: Due to IPython and Windows limitation, python multiprocessing isn't available now. So n_workers has to be changed to 0 to avoid getting stuck

I'm currently running on Windows, and tried to pass 'n_workers=0' as a parameter to TextDataLoaders.from_folder() and also text_classifier_learner(), but I keep getting the same message. Can you please help me to solve it?