lfz / DSB2017

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

error while running for testing #19

Closed shu-hai closed 7 years ago

shu-hai commented 7 years ago

Hi, fangzhou, When I used your code for the testing data, it gave me the following error:


starting preprocessing
bug in stage2
Traceback (most recent call last):
  File "main.py", line 29, in <module>
    use_existing=config_submit['use_exsiting_preprocessing'])
  File "/workspace/hshu/lungcancer/winners/1st/DSB2017/preprocessing/full_prep.py", line 124, in full_prep
    _=pool.map(partial_savenpy,range(N))
  File "/workspace/hshu/anaconda2/lib/python2.7/multiprocessing/pool.py", line 251, in map
    return self.map_async(func, iterable, chunksize).get()
  File "/workspace/hshu/anaconda2/lib/python2.7/multiprocessing/pool.py", line 567, in get
    raise self._value
IndexError: list index out of range
bug in acd91ceec65820f4d55d71efe870093b.dcm

I revised your config_submit.py to be the following:

config = {'datapath':'/projects-priv10/hshu/data_science_bowl_2017/stage2_image/',
          'preprocess_result_path':'./prep_result/',
          'outputfile':'prediction.csv',

          'detector_model':'net_detector',
         'detector_param':'./model/detector.ckpt',
         'classifier_model':'net_classifier',
         'classifier_param':'./model/classifier.ckpt',
         'n_gpu':2,
         'n_worker_preprocessing':None,
         'use_exsiting_preprocessing':False,
         'skip_preprocessing':False,
         'skip_detect':False}

I used 7za e stage2.7z to unzip the stage2 data.

I am not sure why the error came out. Could you help provide some suggestion? Thanks.