Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GabriellCabrall opened this issue Jul 11, 2023 · 0 comments
Open

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

GabriellCabrall opened this issue Jul 11, 2023 · 0 comments

Comments

@GabriellCabrall
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant