-
Notifications
You must be signed in to change notification settings - Fork 7.1k
torchvision sets multiprocessing start_method #544
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
Comments
This is very weird! I did some debugging, and this is actually a problem with from tqdm import tqdm
import multiprocessing as mp
mp.set_start_method('spawn') raises
If this is a blocker we might want to consider removing |
Actually joblib and sklearn also sets the start method so this is probably
happening with a lot of libs. Users can use mp.get_context so it shouldn’t
be blocking. But it is annoying indeed.
…On Fri, Jul 13, 2018 at 19:41 Francisco Massa ***@***.***> wrote:
This is very weird!
I did some debugging, and this is actually a problem with tqdm
from tqdm import tqdmimport multiprocessing as mp
mp.set_start_method('spawn')
raises
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-3-36f1a10db7c0> in <module>()
----> 1 mp.set_start_method('spawn')
~/.conda/envs/detectron_v2/lib/python3.6/multiprocessing/context.py in set_start_method(self, method, force)
240 def set_start_method(self, method, force=False):
241 if self._actual_context is not None and not force:
--> 242 raise RuntimeError('context has already been set')
243 if method is None and force:
244 self._actual_context = None
RuntimeError: context has already been set
If this is a blocker we might want to consider removing tqdm from
torchvision
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#544 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFaWZX0m8Gk_dJGI3xlxhrFu8Qn0scHFks5uGNu9gaJpZM4VLNJb>
.
|
This has been fixed since version 4.29.0 of tqdm https://github.com/tqdm/tqdm/releases |
After the update, I still have this problem |
As Simon mentioned above, many libraries set the multiprocessing start method. |
* [RetinaNet] Changed the default lr to match adam optimizer * [RetinaNet] fixes to the onnx conversion script * [RetinaNet] Cleaned up CocoEvaluator implementation * [RetinaNet] Bumped pycocotools version to 2.0.4 Fixes mlcommons/training/pytorch#540
I used builtin
mp
. Same thing happens fortorch.mp
.The text was updated successfully, but these errors were encountered: