radio icon indicating copy to clipboard operation
radio copied to clipboard

Tutorial3

Open LarisaKozhekina opened this issue 5 years ago • 0 comments

I try to execute Tutorial3 and for step#9 I get error: Info about nodules location must be loaded before calling this method. Nothing happened.

AttributeError Traceback (most recent call last) in () ----> 1 batch = (luna_dataset >> preprocessing).next_batch(batch_size=3, shuffle=False) ...

/usr/local/lib/python3.6/dist-packages/radio/preprocessing/ct_masked_batch.py in create_mask(self, mode) 502 self.masks = np.zeros_like(self.images) 503 --> 504 center_pix = np.abs(self.nodules.nodule_center - 505 self.nodules.origin) / self.nodules.spacing 506 radius_pix = np.rint(self.nodules.nodule_size / self.nodules.spacing / 2)

AttributeError: 'NoneType' object has no attribute 'nodule_center'

I can execute this step without error if reorder functions in previous step#8: instead: preprocessing = (Pipeline() .load(fmt='raw') .unify_spacing(shape=(92, 256, 256), spacing=(3.5, 1.0, 1.0)) .fetch_nodules_info(nodules_df) .create_mask()) I use:

preprocessing = (Pipeline() .load(fmt='raw') .fetch_nodules_info(nodules_df) .unify_spacing(shape=(92, 256, 256), spacing=(3.5, 1.0, 1.0)) .create_mask())

I it right?

LarisaKozhekina avatar Feb 17 '19 09:02 LarisaKozhekina