Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
maskrcnn
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
人工智能
maskrcnn
Commits
a44d65dc
Commit
a44d65dc
authored
Apr 20, 2019
by
qianyizhang
Committed by
Francisco Massa
Apr 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix imports for latest pytorch-nightly (#698)
parent
08fcf12f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
model_zoo.py
maskrcnn_benchmark/utils/model_zoo.py
+8
-3
No files found.
maskrcnn_benchmark/utils/model_zoo.py
View file @
a44d65dc
...
@@ -2,9 +2,14 @@
...
@@ -2,9 +2,14 @@
import
os
import
os
import
sys
import
sys
from
torch.utils.model_zoo
import
_download_url_to_file
try
:
from
torch.utils.model_zoo
import
urlparse
from
torch.utils.model_zoo
import
_download_url_to_file
from
torch.utils.model_zoo
import
HASH_REGEX
from
torch.utils.model_zoo
import
urlparse
from
torch.utils.model_zoo
import
HASH_REGEX
except
:
from
torch.hub
import
_download_url_to_file
from
torch.hub
import
urlparse
from
torch.hub
import
HASH_REGEX
from
maskrcnn_benchmark.utils.comm
import
is_main_process
from
maskrcnn_benchmark.utils.comm
import
is_main_process
from
maskrcnn_benchmark.utils.comm
import
synchronize
from
maskrcnn_benchmark.utils.comm
import
synchronize
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment