Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi Again, I Tried To Upgrade Trains Package To 15.1 From 13.1 That I Was Using For A While.. After The Upgrade My Code Stuck When Trying To Use "Pool" (From Multiprocessing Import Pool) The Code Snip:

Hi again,
I tried to upgrade Trains package to 15.1 from 13.1 that I was using for a while..
After the upgrade my code stuck when trying to use "Pool" (from multiprocessing import Pool)
The code snip:
with Pool(processes=12) as pool: args = [(k, cocoDt, cocoGt, catId, iou_type, [maxDets[-1]]) for k, catId in enumerate(catIds)] analyze_results = pool.starmap(analyze_individual_category, args)It looks like some process is not ended.
It start happened only in the new version.
If I am going back to 13.1 it is working.

Dose version 15.1 changes something that can cause it?

  
  
Posted 4 years ago
Votes Newest

Answers 17


😞 CooperativeFox72 please see if you can send a code snippet to reproduce the issue. I'd be happy to solve the it ...

  
  
Posted 4 years ago

Hi CooperativeFox72 trains 0.16 is out, did it solve this issue? (btw: you can upgrade trains to 0.16 without upgrading the trains-server)

  
  
Posted 4 years ago

CooperativeFox72 this is indeed sad news 😞
When you have the time, please see if you can send a code snippet to reproduce the issue. I'd like to have it fixed

  
  
Posted 4 years ago

I reproduced the stuck with this code..
But for now only with my env , when I tried to create new env only with the packages that this code needed it wont stuck.
So maybe the problem is conflict between packages?

  
  
Posted 4 years ago

CooperativeFox72 you can you start by checking the latest RC :)
pip install trains==0.15.2rc0

  
  
Posted 4 years ago

Thanks AgitatedDove14 ,
I need to check with my boss that it is OK to share more code, will let you know..

But I will give 0.16 a try when it will release.
🙏

  
  
Posted 4 years ago

Thanks!

  
  
Posted 4 years ago

The hang is still happening in trains==0.15.2rc0

  
  
Posted 4 years ago

I am trying to reproduce it with little example

  
  
Posted 4 years ago

AgitatedDove14 Thanks, I am trying it..

  
  
Posted 4 years ago

I don't have time to debug it yet.. will update more when I will have more time..
Thanks 🙏

  
  
Posted 4 years ago

Thanks CooperativeFox72 ! I'll test and keep you posted 🙂

  
  
Posted 4 years ago

Sure, love to do it when I have more time 🙂

  
  
Posted 4 years ago

Hey... Thanks for checking with me.
I didn't have time yet but will check it and let you know..

  
  
Posted 4 years ago

CooperativeFox72 we are aware of Pool throwing exception that causes things to hang. Fix will be deployed in 0.16 (due to be released tomorrow).
Do you have a code to reproduce it, so I can verify the fix solves the issue?

  
  
Posted 4 years ago

hey, I test it, it looks it works, still it takes much time (mainly in the second run of the code, it part of my eval process)

  
  
Posted 4 years ago

AgitatedDove14 Hi, sorry for the long delay.
I tried to use 0.16 instead of 0.13.1.
I didn't have time to debug it (I am overwhelming with work right now).
But it doesn't work the same as 0.13.1. I am still getting some hanging in my eval process.
I am don't know if it just slower or really stuck since I killed it and move back to 0.13.1 until my busy time will pass.
Thanks

  
  
Posted 4 years ago
922 Views
17 Answers
4 years ago
one year ago
Tags