首页 > 系统相关 >fastai在Windows10多线程处理受限提示 “Due to IPython and Windows limitation, python multiprocessing isn't

fastai在Windows10多线程处理受限提示 “Due to IPython and Windows limitation, python multiprocessing isn't

时间:2023-02-15 17:14:44浏览次数:42  
标签:available limitation now show python fastai 多线程 multiprocessing

fastai在Win10直接使用Jupyter notebook,会有这个限制提示

dls = TextDataLoaders.from_folder(untar_data(URLs.IMDB), valid='test')

“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.”

等待的话也能完成运行。

但就是notebook运行很慢,这个可能也会影响GPU性能。

在macOS,Linux不会有这个问题提示。

印证了windows还是不太适合做专业的深度学习。即使现在的WSL2,亲测复杂多坑,不如双系统。

另外,看看fast ai是否有用到GPU。

发现还是Ubuntu+CUDA+CUDNN稳定。

Try:

from fastai.utils.collect_env import show_install
show_install(1)

If it is show the cuda driver, try:

import torch
print(torch.cuda.is_available())
print(torch.cuda.current_device())

标签:available,limitation,now,show,python,fastai,多线程,multiprocessing
From: https://www.cnblogs.com/fastai/p/17117001.html

相关文章