This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 259
Docker data processing (#1) #50
Open
kacperkan
wants to merge
6
commits into
facebookresearch:main
Choose a base branch
from
kacperkan:master
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6a1a299
Docker data processing (#1)
kacperkan 8569f71
Docker data processing (#2)
kacperkan 437f19f
Add note about quantities
kacperkan 31a64cd
Docker data processing (#3)
kacperkan 5b9a1b7
Process both train and test in the same manner
kacperkan 0cc9c30
Merge branch 'master' of github.com:kacperkan/DeepSDF
kacperkan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,240 @@ | ||
reated by https://www.toptal.com/developers/gitignore/api/pycharm+all,python,visualstudiocode | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=pycharm+all,python,visualstudiocode | ||
|
||
### PyCharm+all ### | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
# User-specific stuff | ||
.idea/**/workspace.xml | ||
.idea/**/tasks.xml | ||
.idea/**/usage.statistics.xml | ||
.idea/**/dictionaries | ||
.idea/**/shelf | ||
|
||
# Generated files | ||
.idea/**/contentModel.xml | ||
|
||
# Sensitive or high-churn files | ||
.idea/**/dataSources/ | ||
.idea/**/dataSources.ids | ||
.idea/**/dataSources.local.xml | ||
.idea/**/sqlDataSources.xml | ||
.idea/**/dynamic.xml | ||
.idea/**/uiDesigner.xml | ||
.idea/**/dbnavigator.xml | ||
|
||
# Gradle | ||
.idea/**/gradle.xml | ||
.idea/**/libraries | ||
|
||
# Gradle and Maven with auto-import | ||
# When using Gradle or Maven with auto-import, you should exclude module files, | ||
# since they will be recreated, and may cause churn. Uncomment if using | ||
# auto-import. | ||
# .idea/artifacts | ||
# .idea/compiler.xml | ||
# .idea/jarRepositories.xml | ||
# .idea/modules.xml | ||
# .idea/*.iml | ||
# .idea/modules | ||
# *.iml | ||
# *.ipr | ||
|
||
# CMake | ||
cmake-build-*/ | ||
|
||
# Mongo Explorer plugin | ||
.idea/**/mongoSettings.xml | ||
|
||
# File-based project format | ||
*.iws | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Cursive Clojure plugin | ||
.idea/replstate.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
# Editor-based Rest Client | ||
.idea/httpRequests | ||
|
||
# Android studio 3.1+ serialized cache file | ||
.idea/caches/build_file_checksums.ser | ||
|
||
### PyCharm+all Patch ### | ||
# Ignores the whole .idea folder and all .iml files | ||
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360 | ||
|
||
.idea/ | ||
|
||
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023 | ||
|
||
*.iml | ||
modules.xml | ||
.idea/misc.xml | ||
*.ipr | ||
|
||
# Sonarlint plugin | ||
.idea/sonarlint | ||
|
||
### Python ### | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# pytype static type analyzer | ||
.pytype/ | ||
|
||
### VisualStudioCode ### | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
*.code-workspace | ||
|
||
### VisualStudioCode Patch ### | ||
# Ignore all local history of files | ||
.history | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/pycharm+all,python,visualstudiocode | ||
# data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
FROM nvidia/cudagl:10.2-base-ubuntu18.04 | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install -y \ | ||
git \ | ||
vim \ | ||
g++ \ | ||
gcc \ | ||
cmake | ||
|
||
WORKDIR /root | ||
|
||
|
||
RUN apt-get update --fix-missing \ | ||
&& apt-get upgrade -y | ||
|
||
# Pangolin | ||
RUN git clone https://github.com/stevenlovegrove/Pangolin.git | ||
RUN apt-get install -y \ | ||
libgl1-mesa-dev \ | ||
libglew-dev \ | ||
ffmpeg \ | ||
libavcodec-dev \ | ||
libavutil-dev \ | ||
libavformat-dev \ | ||
libswscale-dev \ | ||
libavdevice-dev \ | ||
libdc1394-22-dev \ | ||
libraw1394-dev \ | ||
libjpeg-dev \ | ||
libpng-dev \ | ||
libtiff5-dev \ | ||
libopenexr-dev \ | ||
libeigen3-dev \ | ||
doxygen \ | ||
libpython3-all-dev \ | ||
libegl1-mesa-dev \ | ||
libwayland-dev \ | ||
libxkbcommon-dev \ | ||
wayland-protocols | ||
|
||
RUN apt-get install -y python3.7 python3-pip python3.7-dev | ||
RUN python3.7 -mpip install \ | ||
numpy \ | ||
pyopengl \ | ||
Pillow \ | ||
pybind11 | ||
|
||
RUN cd Pangolin \ | ||
&& git submodule init \ | ||
&& git submodule update \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake .. \ | ||
&& cmake --build . \ | ||
&& make install | ||
|
||
# nanoflann | ||
RUN apt-get install -y \ | ||
build-essential \ | ||
libgtest-dev \ | ||
cmake \ | ||
libeigen3-dev | ||
|
||
RUN git clone https://github.com/jlblancoc/nanoflann.git \ | ||
&& cd nanoflann \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake .. \ | ||
&& make \ | ||
&& make test \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& mkdir /usr/local/include/nanoflann -p \ | ||
&& mkdir /usr/include/nanoflann -p \ | ||
&& cp include/nanoflann.hpp /usr/local/include/nanoflann \ | ||
&& cp include/nanoflann.hpp /usr/include/nanoflann | ||
|
||
# CLI11 | ||
RUN git clone https://github.com/CLIUtils/CLI11.git \ | ||
&& cd CLI11 \ | ||
&& git submodule update --init \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake .. \ | ||
&& make install \ | ||
&& GTEST_COLOR=1 CTEST_OUTPUT_ON_FAILURE=1 make test | ||
|
||
# variant | ||
RUN git clone https://github.com/mpark/variant.git \ | ||
&& mkdir variant/build \ | ||
&& cd variant/build \ | ||
&& cmake .. \ | ||
&& cmake --build . --target install | ||
|
||
# anaconda | ||
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 | ||
ENV PATH /opt/conda/bin:$PATH | ||
|
||
RUN apt-get update --fix-missing && \ | ||
apt-get install -y wget bzip2 ca-certificates curl git && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ | ||
/bin/bash ~/miniconda.sh -b -p /opt/conda && \ | ||
rm ~/miniconda.sh && \ | ||
/opt/conda/bin/conda clean -tipsy && \ | ||
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ | ||
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ | ||
echo "conda activate base" >> ~/.bashrc | ||
|
||
# main | ||
WORKDIR /usr/src/sdf | ||
|
||
RUN conda install -y -c pytorch \ | ||
pytorch \ | ||
torchvision \ | ||
cpuonly \ | ||
scikit-image \ | ||
scipy | ||
|
||
RUN conda install -c conda-forge trimesh -y | ||
RUN pip install plyfile | ||
|
||
COPY . . | ||
|
||
|
||
RUN mkdir build \ | ||
&& cd build \ | ||
&& cmake .. \ | ||
&& make -j | ||
|
||
|
||
ENV PANGOLIN_WINDOW_URI headless:// | ||
|
||
RUN mkdir data/ShapeNetCore.v2 -p | ||
RUN mkdir data/ShapeNetCore.v2-DeepSDF -p | ||
|
||
VOLUME /usr/src/sdf/data/ShapeNetCore.v2 | ||
VOLUME /usr/src/sdf/data/ShapeNetCore.v2-DeepSDF | ||
|
||
|
||
CMD ["bash", "-c", "./process_whole_dataset.sh"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add a line saying
&& git checkout v0.6 \
after CDing into the Pangolin directory. Running this docker file with the newest version causes some problems with GL libraries.