Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
3
360monodepth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GDP Project 4
360monodepth
Commits
712567bc
Commit
712567bc
authored
2 years ago
by
manurare
Browse files
Options
Downloads
Patches
Plain Diff
Download BoostingMonodepth weights in Dockerfile
parent
6f0824ec
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+8
-0
8 additions, 0 deletions
Dockerfile
code/python/src/utility/depthmap_utils.py
+1
-0
1 addition, 0 deletions
code/python/src/utility/depthmap_utils.py
with
9 additions
and
0 deletions
Dockerfile
+
8
−
0
View file @
712567bc
...
@@ -22,6 +22,7 @@ RUN apt-get install --no-install-recommends \
...
@@ -22,6 +22,7 @@ RUN apt-get install --no-install-recommends \
libceres-dev
\
libceres-dev
\
python3-pybind11
\
python3-pybind11
\
git
\
git
\
wget
\
libboost1.71-dev
-y
libboost1.71-dev
-y
# 2) set up python module's build environment
# 2) set up python module's build environment
...
@@ -33,7 +34,14 @@ RUN apt install --no-install-recommends \
...
@@ -33,7 +34,14 @@ RUN apt install --no-install-recommends \
# Put everything in some subfolder
# Put everything in some subfolder
WORKDIR
"/monodepth"
WORKDIR
"/monodepth"
COPY
. ./
COPY
. ./
# Setup BoostingMonocularDepth
RUN
git submodule update
--init
RUN
git submodule update
--init
RUN
cd
./BoostingMonocularDepth/pix2pix/
&&
mkdir
-p
checkpoints/mergemodel
# Midas weights
RUN
wget
-P
./BoostingMonocularDepth/midas https://drive.google.com/file/d/1nqW_Hwj86kslfsXR7EnXpEWdO2csz1cC
# Merge net weights
RUN
wget
-P
./BoostingMonocularDepth/pix2pix/checkpoints/mergemodel https://sfu.ca/~yagiz/CVPR21/latest_net_G.pth
RUN
pip3
install
-r
./code/python/requirements.txt
RUN
pip3
install
-r
./code/python/requirements.txt
...
...
This diff is collapsed.
Click to expand it.
code/python/src/utility/depthmap_utils.py
+
1
−
0
View file @
712567bc
...
@@ -325,6 +325,7 @@ def boosting_monodepth(rgb_image_data_list):
...
@@ -325,6 +325,7 @@ def boosting_monodepth(rgb_image_data_list):
currfile_dir
=
os
.
path
.
dirname
(
__file__
)
currfile_dir
=
os
.
path
.
dirname
(
__file__
)
boost_path
=
f
"
{
os
.
path
.
join
(
currfile_dir
,
os
.
pardir
,
os
.
pardir
,
os
.
pardir
,
os
.
pardir
,
'
BoostingMonocularDepth
'
)
}
"
boost_path
=
f
"
{
os
.
path
.
join
(
currfile_dir
,
os
.
pardir
,
os
.
pardir
,
os
.
pardir
,
os
.
pardir
,
'
BoostingMonocularDepth
'
)
}
"
sys
.
path
.
append
(
os
.
path
.
abspath
(
boost_path
))
sys
.
path
.
append
(
os
.
path
.
abspath
(
boost_path
))
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
dirname
(
boost_path
)))
# This import fixes relative imports in subfiles within BoostingMonocularDepth project
# This import fixes relative imports in subfiles within BoostingMonocularDepth project
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
boost_path
,
"
structuredrl
"
,
"
models
"
,
"
syncbn
"
)))
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
boost_path
,
"
structuredrl
"
,
"
models
"
,
"
syncbn
"
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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