DevelopmentalImagingMCRI / MCRIBS

Surface version of the M-CRIB atlases.
12 stars 6 forks source link

ValueError #7

Open xiaomin1111 opened 2 years ago

xiaomin1111 commented 2 years ago

Hi! When I try to run MCRIBReconAll on a dataset , the following error occurs: File "/home/wangxiaomin/MCRIBS/bin/APARC2ASEGCSFRestoreDrawEM", line 46, in NewASEGIMG[numpy.logical_and(ASEGIMG == 0, numpy.logical_and(FilledMask > 0, DrawEMLabelsIMG != DrawEMExtraCranialBackgroundLabel))] = FSCSFLabel ValueError: operands could not be broadcast together with shapes (217,290,290) (217,290,290,1)

Do you have any suggestions? Thanks!

chrisadamsonmcri commented 2 years ago

In /home/wangxiaomin/MCRIBS/bin/APARC2ASEGCSFRestoreDrawEM

Prior to that line add DrawEMLabelsIMG = numpy.squeeze(DrawEMLabelsIMG) ASEGIMG = numpy.squeeze(ASEGIMG) FilledMask = numpy.squeeze(FilledMask)

Should fix it.

xiaomin1111 commented 2 years ago

Thank you very much!The problem above has been solved. But the parcellation of the right cortex is intermittent.And the results of cortical parcellation are shown below. Do you have any idea why this might have happened?

1c39b0551c1fa2ed456746a6bb93587
chrisadamsonmcri commented 2 years ago

When that kind of thing happens I try to delete everything and run it again. Then see if it happens again.

From: xiaomin1111 @.> Sent: Thursday, 18 November 2021 7:16 PM To: DevelopmentalImagingMCRI/MCRIBS @.> Cc: Chris Adamson @.>; Comment @.> Subject: [EXTERNAL]Re: [DevelopmentalImagingMCRI/MCRIBS] ValueError (Issue #7)

CAUTION: External Email. Please be cautious with attachments and clicking links

Thank you very much!The problem above has been solved. But the parcellation of the right cortex is intermittent.And the results of cortical parcellation are shown below. Do you have any idea why this might have happened? [1c39b0551c1fa2ed456746a6bb93587]https://user-images.githubusercontent.com/94094905/142376416-289b4f79-3b41-42fb-b16d-c7fc1044dbff.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/DevelopmentalImagingMCRI/MCRIBS/issues/7#issuecomment-972633133, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACGY2VK5F7I3DJFQ26PTHNLUMSY4LANCNFSM5IINSFNA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Disclaimer

This e-mail and any attachments to it (the "Communication") are, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Murdoch Children’s Research Institute (MCRI) ABN 21 006 566 972 or any of its related entities. MCRI does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication.