DSB2017 icon indicating copy to clipboard operation
DSB2017 copied to clipboard

prepare.py

Open hj950815 opened this issue 6 years ago • 3 comments

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 full_prep _=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

hj950815 avatar Oct 22 '18 13:10 hj950815

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

zhan-zhang avatar Oct 22 '18 17:10 zhan-zhang

Have you solved the problem? How is it solved?

anruoxi123 avatar Oct 29 '18 11:10 anruoxi123

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

chenggangdu avatar Oct 16 '19 02:10 chenggangdu