MINet
MINet copied to clipboard
ImportError: cannot import name 'NumpyMetric' from 'pytorch_lightning.metrics.metric'
作者你好,我在跑你的这篇论文都出现了这个错误 根据你论文中的环境要求
- numpy==1.18.5
- scikit_image==0.16.2
- torchvision==0.8.1
- torch==1.7.0
- runstats==1.8.0
- pytorch_lightning==1.0.6
- h5py==2.10.0
- PyYAML==5.4 这个错误还是不能解决 ImportError: cannot import name 'NumpyMetric' from 'pytorch_lightning.metrics.metric' 我查看了metric.py这个文件里没有定义NumpyMetric这个函数,所以导入一直错误 期待你的回复!
我这边运行没有问题的
1632325673 @.***> 于2021年10月6日周三 下午4:34写道:
作者你好,我在跑你的这篇论文都出现了这个错误 根据你论文中的环境要求
- numpy==1.18.5
- scikit_image==0.16.2
- torchvision==0.8.1
- torch==1.7.0
- runstats==1.8.0
- pytorch_lightning==1.0.6
- h5py==2.10.0
- PyYAML==5.4 这个错误还是不能解决 ImportError: cannot import name 'NumpyMetric' from 'pytorch_lightning.metrics.metric' 我查看了metric.py这个文件里没有定义NumpyMetric这个函数,所以导入一直错误 期待你的回复!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chunmeifeng/MINet/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR75XN5IBVSQXHSL6A76TLDUFQCZHANCNFSM5FN4PA3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
请问作者用的python版本是多少呢?方便把pytorch_lightning.metrics.metric.py (/home/qinfl/anaconda3/python3.8/site-packages/pytorch_lightning/metrics/metric.py) 这个文件复制一份给我吗? 非常抱歉打扰到你,期待你的回复!
------------------ 原始邮件 ------------------ 发件人: "chunmeifeng/MINet" @.>; 发送时间: 2021年10月6日(星期三) 下午5:45 @.>; @.@.>; 主题: Re: [chunmeifeng/MINet] ImportError: cannot import name 'NumpyMetric' from 'pytorch_lightning.metrics.metric' (#1)
我这边运行没有问题的
1632325673 @.***> 于2021年10月6日周三 下午4:34写道:
> 作者你好,我在跑你的这篇论文都出现了这个错误 > 根据你论文中的环境要求 > > - numpy==1.18.5 > - scikit_image==0.16.2 > - torchvision==0.8.1 > - torch==1.7.0 > - runstats==1.8.0 > - pytorch_lightning==1.0.6 > - h5py==2.10.0 > - PyYAML==5.4 > 这个错误还是不能解决 > ImportError: cannot import name 'NumpyMetric' from > 'pytorch_lightning.metrics.metric' > 我查看了metric.py这个文件里没有定义NumpyMetric这个函数,所以导入一直错误 > 期待你的回复! > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/chunmeifeng/MINet/issues/1>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AR75XN5IBVSQXHSL6A76TLDUFQCZHANCNFSM5FN4PA3Q> > . > Triage notifications on the go with GitHub Mobile for iOS > <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> > or Android > <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>. > >
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
[image: image.png]
1632325673 @.***> 于2021年10月7日周四 下午7:49写道:
请问作者用的python版本是多少呢?方便把pytorch_lightning.metrics.metric.py (/home/qinfl/anaconda3/python3.8/site-packages/pytorch_lightning/metrics/metric.py) 这个文件复制一份给我吗? 非常抱歉打扰到你,期待你的回复!
------------------ 原始邮件 ------------------ 发件人: "chunmeifeng/MINet" @.>; 发送时间: 2021年10月6日(星期三) 下午5:45 @.>; @.@.>; 主题: Re: [chunmeifeng/MINet] ImportError: cannot import name 'NumpyMetric' from 'pytorch_lightning.metrics.metric' (#1)
我这边运行没有问题的
1632325673 @.***> 于2021年10月6日周三 下午4:34写道:
> 作者你好,我在跑你的这篇论文都出现了这个错误 > 根据你论文中的环境要求 > > - numpy==1.18.5 > - scikit_image==0.16.2 > - torchvision==0.8.1 > - torch==1.7.0 > - runstats==1.8.0 > - pytorch_lightning==1.0.6 > - h5py==2.10.0 > - PyYAML==5.4 > 这个错误还是不能解决 > ImportError: cannot import name 'NumpyMetric' from > 'pytorch_lightning.metrics.metric' > 我查看了metric.py这个文件里没有定义NumpyMetric这个函数,所以导入一直错误 > 期待你的回复! > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/chunmeifeng/MINet/issues/1>, or unsubscribe > < https://github.com/notifications/unsubscribe-auth/AR75XN5IBVSQXHSL6A76TLDUFQCZHANCNFSM5FN4PA3Q>
> . > Triage notifications on the go with GitHub Mobile for iOS > < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android > < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
> >
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chunmeifeng/MINet/issues/1#issuecomment-937716645, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR75XN3G54QCA7YULZW6O7DUFWCK5ANCNFSM5FN4PA3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
作者你好,我也出现了同样的问题,也请求一份pytorch_lightning/metrics/metric.py文件,万分感谢
可以晚几天吗,我最近链接不上我的服务器了
gardenia1229 @.***> 于2021年10月14日周四 上午10:22写道:
作者你好,我也出现了同样的问题,也请求一份pytorch_lightning/metrics/metric.py文件,万分感谢
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chunmeifeng/MINet/issues/1#issuecomment-942887096, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR75XN3PWKAONYNMCE5YD3DUGY5FRANCNFSM5FN4PA3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
好的,万分感谢。祝你生活愉快。
在2021-10-14 @.***写道:
可以晚几天吗,我最近链接不上我的服务器了
gardenia1229 @.***> 于2021年10月14日周四 上午10:22写道:
作者你好,我也出现了同样的问题,也请求一份pytorch_lightning/metrics/metric.py文件,万分感谢
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chunmeifeng/MINet/issues/1#issuecomment-942887096, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR75XN3PWKAONYNMCE5YD3DUGY5FRANCNFSM5FN4PA3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
作者你好,我也出现了同样的问题,也请求一份pytorch_lightning/metrics/metric.py文件,万分感谢
之前的服务器已经不使用了,我会尽快重新配置上传
54zanly @.***> 于2022年3月13日周日 12:53写道:
作者你好,我也出现了同样的问题,也请求一份pytorch_lightning/metrics/metric.py文件,万分感谢
— Reply to this email directly, view it on GitHub https://github.com/chunmeifeng/MINet/issues/1#issuecomment-1066085026, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR75XN5P6SQBD67CLIDFA4LU7XJKTANCNFSM5FN4PA3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
作者你好,请问在论文中您的对比实验SOMRE,你有代码吗,尝试了很多次都联系不上作者,因此想请问您这边是否拥有代码,非常感谢
你好,SMORE的代码是我根据他论文的结构自己实现的。那部分代码在iiai研究院的服务器上,实习结束后被清空了已经。 你可以根据他论文的结构自己实现。
54zanly @.***> 于2022年3月17日周四 04:06写道:
作者你好,请问在论文中您的对比实验SOMRE,你有代码吗,尝试了很多次都联系不上作者,因此想请问您这边是否拥有代码,非常感谢
— Reply to this email directly, view it on GitHub https://github.com/chunmeifeng/MINet/issues/1#issuecomment-1070067728, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR75XN2MQILSVZZXTPYIZEDVAKOS5ANCNFSM5FN4PA3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
作者你好,请问在您的论文中使用到的模型大多没有开源,例如:SMORE以下的两个模型,分别为文献[13]与文献[24],请问您还留有这两个模型的相关代码吗,非常感谢
您好,同求一份pytorch_lightning/metrics/metric.py文件,非常感谢!!([email protected])
你好,SMORE的代码是我根据他论文的结构自己实现的。那部分代码在iiai研究院的服务器上,实习结束后被清空了已经。 你可以根据他论文的结构自己实现。
54zanly @.***> 于2022年3月25日周五 12:36写道:
作者你好,请问在您的论文中使用到的模型大多没有开源,例如:SMORE以下的两个模型,分别为文献[13]与文献[24],请问您还留有这两个模型的相关代码吗,非常感谢
— Reply to this email directly, view it on GitHub https://github.com/chunmeifeng/MINet/issues/1#issuecomment-1078935044, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR75XN5Y6M6CKHATCCU3Y2TVBWQMBANCNFSM5FN4PA3Q . You are receiving this because you commented.Message ID: @.***>
作者您好,我也是遇到同样的问题,不管怎样都遇到这个问题No module named 'pytorch_lightning.metrics',我也想要求一份pytorch_lightning/metrics/metric.py文件,非常感谢作者!!([email protected])
你好,可能是pytorch-lighting版本不对,安装pytorch_lightning==0.8.1 试一下,我们会更新我们的安装包依赖版本文件。