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
6f0824ec
Commit
6f0824ec
authored
2 years ago
by
manurare
Browse files
Options
Downloads
Patches
Plain Diff
Fix Dockerfile
parent
4368e5ac
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
+6
-9
6 additions, 9 deletions
Dockerfile
code/python/src/utility/depthmap_utils.py
+1
-1
1 addition, 1 deletion
code/python/src/utility/depthmap_utils.py
with
7 additions
and
10 deletions
Dockerfile
+
6
−
9
View file @
6f0824ec
...
...
@@ -21,6 +21,7 @@ RUN apt-get install --no-install-recommends \
libopencv-dev
\
libceres-dev
\
python3-pybind11
\
git
\
libboost1.71-dev
-y
# 2) set up python module's build environment
...
...
@@ -31,18 +32,14 @@ RUN apt install --no-install-recommends \
# 3) set up python run environment
# Put everything in some subfolder
WORKDIR
"/monodepth"
COPY
code/ ./
RUN
mkdir
data/
&&
mkdir
data/erp_00/
COPY
data/erp_00/0001_rgb.jpg ./data/erp_00/
COPY
. ./
RUN
git submodule update
--init
RUN
pip3
install
-r
./python/requirements.txt
RUN
pip3
install
-r
./
code/
python/requirements.txt
#-- build python cpp module
# 1) build the cpp project
RUN
cd
cpp
&&
mkdir
build
&&
cd
build
&&
cmake ..
-DCMAKE_BUILD_TYPE
=
Release
&&
make
-j
RUN
cd
./code/
cpp
&&
mkdir
build
&&
cd
build
&&
cmake ..
-DCMAKE_BUILD_TYPE
=
Release
&&
make
-j
# 2) build & install python module
RUN
cd
cpp/python/
&&
python3 ./setup.py build
&&
python3 ./setup.py bdist_wheel
&&
pip3
install
dist/instaOmniDepth-0.1.0-cp38-cp38-linux_x86_64.whl
# 3) run test script
RUN
cd
/monodepth/python/src/test
&&
python3 ./test_depthmapAlign_module.py
--task
1
RUN
cd
./code/cpp/python/
&&
python3 ./setup.py build
&&
python3 ./setup.py bdist_wheel
&&
pip3
install
dist/instaOmniDepth-0.1.0-cp38-cp38-linux_x86_64.whl
This diff is collapsed.
Click to expand it.
code/python/src/utility/depthmap_utils.py
+
1
−
1
View file @
6f0824ec
...
...
@@ -343,7 +343,7 @@ def boosting_monodepth(rgb_image_data_list):
from
BoostingMonocularDepth.pix2pix.models.pix2pix4depth_model
import
Pix2Pix4DepthModel
# select device
device
=
torch
.
device
(
"
c
p
u
"
)
device
=
torch
.
device
(
"
cu
da
"
)
print
(
"
device: %s
"
%
device
)
whole_size_threshold
=
3000
# R_max from the paper
...
...
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