Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Commits
0ceabef4
Commit
0ceabef4
authored
1 year ago
by
Łukasz Pszenny
Browse files
Options
Downloads
Patches
Plain Diff
Update download.py to support scene models
parent
acb98ee6
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!46
Merge COMBO 3.0 into master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
combo/utils/download.py
+1
-1
1 addition, 1 deletion
combo/utils/download.py
with
1 addition
and
1 deletion
combo/utils/download.py
+
1
−
1
View file @
0ceabef4
...
...
@@ -22,7 +22,7 @@ def download_file(model_name, force=False):
_make_cache_dir
()
split_name
=
model_name
.
split
(
"
-
"
)
data
=
split_name
[
-
1
]
url
=
_URL
.
format
(
model
=
model_name
,
data
=
DATA_TO_PATH
[
data
]
)
url
=
_URL
.
format
(
model
=
model_name
,
data
=
DATA_TO_PATH
.
get
(
data
,
data
)
)
local_filename
=
url
.
split
(
"
/
"
)[
-
1
]
location
=
os
.
path
.
join
(
_CACHE_DIR
,
local_filename
)
if
os
.
path
.
exists
(
location
)
and
not
force
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment