-
Notifications
You must be signed in to change notification settings - Fork 84
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
cannot import name '_NewEmptyTensorOp' from 'torchvision.ops.misc' #85
Comments
请问你解决这个问题了吗,我也遇到了这个同样的问题 |
换其他的torch版本,需要和python以及你用的cuda驱动版本相对应,原作者和readme里面给的torch版本有点低了
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2024年12月06日 19:19 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | Re: [ZhangGongjie/Meta-DETR] cannot import name '_NewEmptyTensorOp' from 'torchvision.ops.misc' (Issue #85) |
请问你解决这个问题了吗,我也遇到了这个同样的问题
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
好的,谢谢,请问你复现出这个代码吗,有些问题能向你咨询吗,非常感谢 |
复现出来了,有什么问题你问吧,我尽量回答
在 2024-12-08 10:54:24,"ningsummerw" ***@***.***> 写道:
好的,谢谢,请问你复现出这个代码吗,有些问题能向你咨询吗,非常感谢
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
如果想的话你可以加一下我vx:syluofoden47 这样子稍微方便一些
在 2024-12-08 10:54:24,"ningsummerw" ***@***.***> 写道:
好的,谢谢,请问你复现出这个代码吗,有些问题能向你咨询吗,非常感谢
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Traceback (most recent call last):
File "main.py", line 13, in
import datasets
File "/home/lsy/Meta-DETR-main/datasets/init.py", line 6, in
from .dataset import build
File "/home/lsy/Meta-DETR-main/datasets/dataset.py", line 10, in
from util.misc import get_local_rank, get_local_size
File "/home/lsy/Meta-DETR-main/util/misc.py", line 24, in
from torchvision.ops.misc import _NewEmptyTensorOp
ImportError: cannot import name '_NewEmptyTensorOp' from 'torchvision.ops.misc' (/home/lyk/anaconda3/envs/mdetr/lib/python3.8/site-packages/torchvision/ops/misc.py)
I encountered the above issue during runtime. My versions of torch and torchvision are as follows.
pytorch == 1.10.q+cu111
torchvision == 0.11.2+cu111
Could you please advise how to resolve this?
The text was updated successfully, but these errors were encountered: