lfz / DSB2017

The solution of team 'grt123' in DSB2017
MIT License
1.23k stars 418 forks source link

prepare.py #104

Open hj950815 opened 5 years ago

hj950815 commented 5 years ago

Hi, I meet some problems with prepare.py .Just like this starting preprocessing Traceback (most recent call last): File "prepare.py", line 374, in full_prep(step1=True,step2=True) File "prepare.py", line 181, in fullprep =pool.map(partial_savenpy,range(N)) File "/usr/lib/python2.7/multiprocessing/pool.py", line 251, in map return self.map_async(func, iterable, chunksize).get() File "/usr/lib/python2.7/multiprocessing/pool.py", line 567, in get raise self._value TypeError: numpy boolean subtract, the - operator, is deprecated, use the bitwise_xor, the ^ operator, or the logical_xor function instead. Can you give me some advice ? Thank you for your help! @lfz

zhan-zhang commented 5 years ago

I would suggest you to unwrap the map function to see where the problem really happened

anruoxi123 commented 5 years ago

Have you solved the problem? How is it solved?

chenggangdu commented 4 years ago

In prepare.py, change line188 to 'extramask = dilatedMask ^ Mask'