-
Notifications
You must be signed in to change notification settings - Fork 378
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
from torch.utils.model_zoo import _download_url_to_file ImportError: cannot import name '_download_url_to_file' #55
Comments
我也遇到相同的问题,是不是pytorch的版本问题啊 |
把呢个文件全部注释,自己下载模型
…------------------ 原始邮件 ------------------
发件人: "zhuliqian"<[email protected]>;
发送时间: 2019年6月19日(星期三) 晚上9:54
收件人: "zjhuang22/maskscoring_rcnn"<[email protected]>;
抄送: "958099161"<[email protected]>; "Author"<[email protected]>;
主题: Re: [zjhuang22/maskscoring_rcnn] from torch.utils.model_zooimport _download_url_to_file ImportError: cannot import name'_download_url_to_file' (#55)
我也遇到相同的问题,是不是pytorch的版本问题啊
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It might be the problem of pytorch version. refer to this facebookresearch/maskrcnn-benchmark#673 |
您好,请问您最后是如何解决的?我刚接触图像,对这些不太熟 |
解决了,接口变更了
…---Original---
From: "shiruiruiya"<[email protected]>
Date: Sat, Jul 6, 2019 19:22 PM
To: "zjhuang22/maskscoring_rcnn"<[email protected]>;
Cc: "luzs"<[email protected]>;"Author"<[email protected]>;
Subject: Re: [zjhuang22/maskscoring_rcnn] from torch.utils.model_zoo import _download_url_to_file ImportError: cannot import name '_download_url_to_file' (#55)
您好,请问您最后是如何解决的?我刚接触图像,对这些不太熟
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
| import os |
|
| import sys |
|
|
|
|
| from torch.utils.model_zoo import _download_url_to_file |
|
| from torch.utils.model_zoo import urlparse |
|
| from torch.utils.model_zoo importHASH_REGEX |
|
| # apis moved from torch.utils.model_zoo to torch.hub |
|
| from torch.hub import _download_url_to_file |
|
| from torch.hub import urlparse |
|
| from torch.hub importHASH_REGEX |
|
|
|
|
| from maskrcnn_benchmark.utils.comm import is_main_process |
|
| from maskrcnn_benchmark.utils.comm import synchronize |
|
是把这些加到 model_zoo.py里面吗?
在 2019-07-06 19:23:40,"luzs" <[email protected]> 写道:
解决了,接口变更了
…---Original---
From: "shiruiruiya"<[email protected]>
Date: Sat, Jul 6, 2019 19:22 PM
To: "zjhuang22/maskscoring_rcnn"<[email protected]>;
Cc: "luzs"<[email protected]>;"Author"<[email protected]>;
Subject: Re: [zjhuang22/maskscoring_rcnn] from torch.utils.model_zoo import _download_url_to_file ImportError: cannot import name '_download_url_to_file' (#55)
您好,请问您最后是如何解决的?我刚接触图像,对这些不太熟
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
您好,您能否发给我一份model_zoo.py这个文件,我刚才不小心把原来里面的代码删除了,现在无法找回,谢谢您了,万分感谢
在 2019-07-06 19:23:40,"luzs" <[email protected]> 写道:
解决了,接口变更了
…---Original---
From: "shiruiruiya"<[email protected]>
Date: Sat, Jul 6, 2019 19:22 PM
To: "zjhuang22/maskscoring_rcnn"<[email protected]>;
Cc: "luzs"<[email protected]>;"Author"<[email protected]>;
Subject: Re: [zjhuang22/maskscoring_rcnn] from torch.utils.model_zoo import _download_url_to_file ImportError: cannot import name '_download_url_to_file' (#55)
您好,请问您最后是如何解决的?我刚接触图像,对这些不太熟
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
from torch.utils.model_zoo import _download_url_to_file |
from torch.utils.model_zoo import _download_url_to_file
from torch.utils.model_zoo import urlparse
from torch.utils.model_zoo import HASH_REGEX
can not import the up iteams
The text was updated successfully, but these errors were encountered: