Skip to content
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

All false Mask (= m1+m2) in preprocessing for some scans from stage2 #74

Closed
max-ilse opened this issue Apr 9, 2018 · 4 comments
Closed

Comments

@max-ilse
Copy link

max-ilse commented Apr 9, 2018

Hello everybody,

Since 2 days, I am trying to run main.py to see if everything is working correctly. Unfortunately, I am running into problems during the preprocessing for some files, e.g. ac7493533e667b077b7180642fb1dc4d

The problem is that in line 70 of full_prep.py:
im, m1, m2, spacing = step1_python(os.path.join(data_path,name))

All elements in m1 and m2 are False. Which results in empty arrays for xx,yy,zz in line 74:
xx,yy,zz= np.where(Mask)

Afterwards the code fails since there is no np.min() for empty arrays.

First I thought maybe the file got corrupted during download so I downloaded stage2 again, but that didn't help.

I don't use the right versions for some of the python modules, e.g. numpy 1.11.13 doesn't work (mkl problems - still investigating) therefore I am using 1.12, I have hard times to believe that this is causing problems since the preprocessing is working for most of the files.

Has anybody an idea what else I could try? Thanks in advance!

@max-ilse max-ilse changed the title All false Mask (= m1+m2) in seventy for some scans in stage2 All false Mask (= m1+m2) in preprocessing for some scans from stage2 Apr 9, 2018
@lfz
Copy link
Owner

lfz commented Apr 10, 2018 via email

@Mango233
Copy link

Hello, I'd like to ask how to download stage2 data,Thanks

@max-ilse
Copy link
Author

max-ilse commented Apr 10, 2018 via email

@max-ilse
Copy link
Author

max-ilse commented May 7, 2018

In the end it seems like my environment was causing the preprocessing to fail. Finally, I got it to work. Here is my conda environment:

name: nodules
channels:

  • simpleitk
  • david_baddeley
  • soumith
  • anaconda
  • conda-forge
  • defaults
    dependencies:
  • cudatoolkit=8.0=3
  • cudnn=5.1.10=cuda8.0_0
  • hdf5=1.8.17=2
  • libgfortran=3.0.0=1
  • six=1.11.0=py27h5f960f1_1
  • backports_abc=0.5=py27_0
  • cycler=0.10.0=py27_0
  • functools32=3.2.3.2=py27_2
  • futures=3.2.0=py27_0
  • libiconv=1.15=0
  • pydicom=1.0.2=py_0
  • pyparsing=2.2.0=py27_0
  • python-dateutil=2.7.2=py_0
  • pytz=2018.3=py_0
  • singledispatch=3.4.0.3=py27_0
  • sip=4.18=py27_1
  • subprocess32=3.2.7=py27_0
  • tk=8.5.19=2
  • tornado=5.0.2=py27_0
  • nvidia-ml-py=7.352.0=py27_0
  • bokeh=0.12.15=py27_0
  • ca-certificates=2018.03.07=0
  • cairo=1.12.18=6
  • certifi=2018.1.18=py27_0
  • cffi=1.11.5=py27h9745a5d_0
  • click=6.7=py27h4225b90_0
  • cloudpickle=0.5.2=py27_1
  • cytoolz=0.9.0.1=py27h14c3975_0
  • dask=0.17.2=py27_0
  • dask-core=0.17.2=py27_0
  • dbus=1.13.2=hc3f9b76_0
  • decorator=4.2.1=py27_0
  • distributed=1.21.6=py27_0
  • expat=2.2.5=he0dffb1_0
  • fontconfig=2.11.1=6
  • freetype=2.5.5=2
  • glib=2.53.6=h5d9569c_2
  • gst-plugins-base=1.14.0=he9c8b40_0
  • gstreamer=1.14.0=hb31296c_0
  • h5py=2.7.0=np113py27_0
  • heapdict=1.0.0=py27_2
  • icu=54.1=0
  • imageio=2.3.0=py27_0
  • intel-openmp=2018.0.0=8
  • jbig=2.1=hdba287a_0

@max-ilse max-ilse closed this as completed May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants