VS-Net icon indicating copy to clipboard operation
VS-Net copied to clipboard

AssertionError when running inference.py

Open vegeta41 opened this issue 5 years ago • 5 comments

Evaluating performance for coronal_pd /home/wzz/miniconda3/envs/vs-net/lib/python3.7/site-packages/numpy/core/fromnumeric.py:3257: RuntimeWarning: Mean of empty slice. out=out, **kwargs) /home/wzz/miniconda3/envs/vs-net/lib/python3.7/site-packages/numpy/core/_methods.py:161: RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount) Patient 11: nan nan nan nan Traceback (most recent call last): File "inference.py", line 174, in mat_dict={'normalization': np.asarray(normalization)}) File "/home/wzz/project/VS-Net/common/mriutils.py", line 72, in saveAsMat assert img.ndim in [2, 3, 4] AssertionError

how can i fix it?thanks!

vegeta41 avatar Jan 09 '20 15:01 vegeta41

您在VS-Net上提交的问题和我所遇见的问题一样,想问问您现在是否解决了

VincyDa avatar Mar 14 '23 08:03 VincyDa

@VincyDa Hello, I was replicating this code recently, but there was a problem in downloading the dataset. I could not download it directly from the dataset link in GLOBUS. After many attempts, I was reminded that the download failed. So, have you successfully downloaded the dataset? Can you share it with me?Thank you!

chke097 avatar Mar 14 '23 08:03 chke097

好的,已经在github上分享网盘链接,有需要可以去取,但vs-net的代码似乎优点问题,inference.py出现错误,目前我没法解决,作者也并未解答,如果您那边可以解决的话希望可以交流一下


发件人: chke097 @.> 发送时间: 2023年3月14日 16:50 收件人: j-duan/VS-Net @.> 抄送: VincyDa @.>; Mention @.> 主题: Re: [j-duan/VS-Net] AssertionError when running inference.py (#1)

@VincyDahttps://kor01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FVincyDa&data=05%7C01%7C%7C323b7249be054375dd7508db24691cb7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638143806112516545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=C1UHMa72i5xBoqgythbJY768q%2BwDYPWylkmHwfd0Dm0%3D&reserved=0 Hello, I was replicating this code recently, but there was a problem in downloading the dataset. I could not download it directly from the dataset link in GLOBUS. After many attempts, I was reminded that the download failed. So, have you successfully downloaded the dataset? Can you share it with me?Thank you!

― Reply to this email directly, view it on GitHubhttps://kor01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fj-duan%2FVS-Net%2Fissues%2F1%23issuecomment-1467657487&data=05%7C01%7C%7C323b7249be054375dd7508db24691cb7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638143806112516545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qXtLRqNJWIuDJNCdyuM6sMARvcXBX9DyWcoqpQhOXJo%3D&reserved=0, or unsubscribehttps://kor01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARJPHZMEW7HYSHEHG7Y5YKDW4AWL5ANCNFSM4KE2QC3A&data=05%7C01%7C%7C323b7249be054375dd7508db24691cb7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638143806112516545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=P%2FDOhauqy%2B1WUEId9zX6e%2BJDVhnFd4FCSbot7kGuETU%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

VincyDa avatar Mar 14 '23 08:03 VincyDa

您好,请问您有数据集下载的原始格式嘛?您分享的是tfrecord格式,如果可以的话,我们可以➕v联系

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年03月14日 16:54 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [j-duan/VS-Net] AssertionError when running inference.py (#1) |

好的,已经在github上分享网盘链接,有需要可以去取,但vs-net的代码似乎优点问题,inference.py出现错误,目前我没法解决,作者也并未解答,如果您那边可以解决的话希望可以交流一下


发件人: chke097 @.> 发送时间: 2023年3月14日 16:50 收件人: j-duan/VS-Net @.> 抄送: VincyDa @.>; Mention @.> 主题: Re: [j-duan/VS-Net] AssertionError when running inference.py (#1)

@VincyDahttps://kor01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FVincyDa&data=05%7C01%7C%7C323b7249be054375dd7508db24691cb7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638143806112516545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=C1UHMa72i5xBoqgythbJY768q%2BwDYPWylkmHwfd0Dm0%3D&reserved=0 Hello, I was replicating this code recently, but there was a problem in downloading the dataset. I could not download it directly from the dataset link in GLOBUS. After many attempts, I was reminded that the download failed. So, have you successfully downloaded the dataset? Can you share it with me?Thank you!

― Reply to this email directly, view it on GitHubhttps://kor01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fj-duan%2FVS-Net%2Fissues%2F1%23issuecomment-1467657487&data=05%7C01%7C%7C323b7249be054375dd7508db24691cb7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638143806112516545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qXtLRqNJWIuDJNCdyuM6sMARvcXBX9DyWcoqpQhOXJo%3D&reserved=0, or unsubscribehttps://kor01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARJPHZMEW7HYSHEHG7Y5YKDW4AWL5ANCNFSM4KE2QC3A&data=05%7C01%7C%7C323b7249be054375dd7508db24691cb7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638143806112516545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=P%2FDOhauqy%2B1WUEId9zX6e%2BJDVhnFd4FCSbot7kGuETU%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

chke097 avatar Mar 14 '23 12:03 chke097

原格式的正在上传,可以添加微信:ksh17786412206


发件人: chke097 @.> 发送时间: 2023年3月14日 20:21 收件人: j-duan/VS-Net @.> 抄送: VincyDa @.>; Mention @.> 主题: Re: [j-duan/VS-Net] AssertionError when running inference.py (#1)

您好,请问您有数据集下载的原始格式嘛?您分享的是tfrecord格式,如果可以的话,我们可以➕v联系

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年03月14日 16:54 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [j-duan/VS-Net] AssertionError when running inference.py (#1) |

好的,已经在github上分享网盘链接,有需要可以去取,但vs-net的代码似乎优点问题,inference.py出现错误,目前我没法解决,作者也并未解答,如果您那边可以解决的话希望可以交流一下


发件人: chke097 @.> 发送时间: 2023年3月14日 16:50 收件人: j-duan/VS-Net @.> 抄送: VincyDa @.>; Mention @.> 主题: Re: [j-duan/VS-Net] AssertionError when running inference.py (#1)

@VincyDahttps://kor01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FVincyDa&data=05%7C01%7C%7C323b7249be054375dd7508db24691cb7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638143806112516545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=C1UHMa72i5xBoqgythbJY768q%2BwDYPWylkmHwfd0Dm0%3D&reserved=0 Hello, I was replicating this code recently, but there was a problem in downloading the dataset. I could not download it directly from the dataset link in GLOBUS. After many attempts, I was reminded that the download failed. So, have you successfully downloaded the dataset? Can you share it with me?Thank you!

― Reply to this email directly, view it on GitHubhttps://kor01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fj-duan%2FVS-Net%2Fissues%2F1%23issuecomment-1467657487&data=05%7C01%7C%7C323b7249be054375dd7508db24691cb7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638143806112516545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qXtLRqNJWIuDJNCdyuM6sMARvcXBX9DyWcoqpQhOXJo%3D&reserved=0, or unsubscribehttps://kor01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARJPHZMEW7HYSHEHG7Y5YKDW4AWL5ANCNFSM4KE2QC3A&data=05%7C01%7C%7C323b7249be054375dd7508db24691cb7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638143806112516545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=P%2FDOhauqy%2B1WUEId9zX6e%2BJDVhnFd4FCSbot7kGuETU%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://kor01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fj-duan%2FVS-Net%2Fissues%2F1%23issuecomment-1468006903&data=05%7C01%7C%7Cef73b3e3448b4b11006108db2486ad89%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638143933093350625%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zE%2BkLeQnpvlhxS3AbXz3AI7gPcPWOugUwOYjjGQUPBM%3D&reserved=0, or unsubscribehttps://kor01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARJPHZJE7S5X7YOXSFEWJBTW4BPFNANCNFSM4KE2QC3A&data=05%7C01%7C%7Cef73b3e3448b4b11006108db2486ad89%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638143933093350625%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rnCnT03CjR5kKOapLSyBJAR%2FRcYpUHR3%2Bdf9npW9JYc%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

VincyDa avatar Mar 14 '23 12:03 VincyDa