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

NoneType' object has no attribute 'cluster_annotations' #20

Open
irsa890 opened this issue Jan 15, 2023 · 2 comments
Open

NoneType' object has no attribute 'cluster_annotations' #20

irsa890 opened this issue Jan 15, 2023 · 2 comments

Comments

@irsa890
Copy link

irsa890 commented Jan 15, 2023

I am getting error in LIDC-IDRI preprocessing
~\AppData\Local\Temp\ipykernel_11144\2002799093.py in prepare_dataset(self)
140
141 for patient in tqdm(self.IDRI_list):
--> 142 pid = LIDC-IDRI-0x17
143 scan = pl.query(pl.Scan).filter(pl.Scan.patient_id == pid).first()
144 nodules_annotation = scan.cluster_annotations()

if I am writing pid= patient
then getting error
~\AppData\Local\Temp\ipykernel_11144\2591889043.py in prepare_dataset(self)
142 pid = patient
143 scan = pl.query(pl.Scan).filter(pl.Scan.patient_id == pid).first()
--> 144 nodules_annotation = scan.cluster_annotations()
145 vol = scan.to_volume()
146 print("Patient ID: {} Dicom Shape: {} Number of Annotated Nodules: {}".format(pid,vol.shape,len(nodules_annotation)))

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

@sirBarbouchi
Copy link

In the LIDC-IDRI folder (your data) there is something wrong like the license file. you should delete it.

@fanlimua
Copy link

Please check if you set pylidc.conf in C:Users[User]pylidc.conf. Secondly, check if the files under LIDC-IDRI-Preprocessing\LIDC-IDRI are LIDC-IDRI-xxxx.

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