Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #12

Merged
merged 2 commits into from
May 8, 2020
Merged

Dev #12

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docker/cpu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nvidia-docker build -t cresi_v3_image .
# docker build -t cresi_v3_image_cpu .
# nvidia-docker run -it --ipc=host -v /local_data:/local_data/ -p 9111:9111 --name cresi_v3 cresi_v3_image
# To use jupyter notebook, inside container run:
# jupyter notebook --ip 0.0.0.0 --no-browser --allow-root --port=9111
Expand Down Expand Up @@ -128,10 +128,13 @@ RUN apt install -y libgl1-mesa-glx
# add a jupyter kernel for the conda environment in case it's wanted
RUN source activate cresi && python -m ipykernel.kernelspec

# # clone cresi
RUN git clone https://github.com/avanetten/cresi.git /opt/cresi/

# TensorBoard
EXPOSE 6006
# IPython
EXPOSE 9111

WORKDIR "/"
WORKDIR "/opt/cresi"
RUN ["/bin/bash"]
7 changes: 5 additions & 2 deletions docker/gpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,13 @@ RUN apt install -y libgl1-mesa-glx
# add a jupyter kernel for the conda environment in case it's wanted
RUN source activate cresi && python -m ipykernel.kernelspec

# # clone cresi
RUN git clone https://github.com/avanetten/cresi.git /opt/cresi/

# TensorBoard
EXPOSE 6006
# IPython
EXPOSE 9111

WORKDIR "/"
RUN ["/bin/bash"]
WORKDIR "/opt/cresi"
RUN ["/bin/bash"]
6 changes: 3 additions & 3 deletions notebooks/dar_tutorial_cpu/cresi_cpu_part2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
"-----\n",
"## 5. Run Inference\n",
"\n",
"The simplest option is to sipmly run the test.sh script (e.g. ```./test.sh configs/dar_tutorial_cpu.json```) which will execute all of the various inference scipts in series. For this exercise, we will instead run the individual commands to view what's going on at each step.\n",
"The simplest option is to sipmly run the test.sh script (e.g. ```./test.sh configs/dar_tutorial_cpu.json```) which will execute all of the various inference scripts in series. For this exercise, we will instead run the individual commands to view what's going on at each step.\n",
"\n",
"### 5.1. 02_eval.py \n",
"\n",
Expand Down Expand Up @@ -1515,7 +1515,7 @@
"metadata": {},
"source": [
"----\n",
"Clearly, the optial route is very different when weighting by time rather than distance, underscoring the need to incorporate speed estimates into road graphs. We encourage the interested reader to explore optimal routes between random nodes in the cell below (running multiple times will yield different results each time)."
"Clearly, the optimal route is very different when weighting by time rather than distance, underscoring the need to incorporate speed estimates into road graphs. We encourage the interested reader to explore optimal routes between random nodes in the cell below (running multiple times will yield different results each time)."
]
},
{
Expand Down Expand Up @@ -1634,7 +1634,7 @@
"----\n",
"### Conclusion\n",
"\n",
"In this tutorial we have shown how to extract a road network graph with speed / travel time estimates direclty from satellite imagery using only open source data and code. Inference is relatively rapid, running at 0.7 square kilometers per minute even on a CPU. GPU infrence times would be a minimum of 20X faster. Even for a city unseen during training (Dar Es Salaam), the CRESI algorithm manages to return a road network that is sufficiently connected and complete to be routable. We showed how to compute optimal routes, and demonstrated the importance of routing using speed versus geometric distance. We encourage interested parties to explore new testing regions, dive deeper into the intricacies of road network extraction and routing, and to contribute to open source geospatial software if time and interest permits. "
"In this tutorial we have shown how to extract a road network graph with speed / travel time estimates directly from satellite imagery using only open source data and code. Inference is relatively rapid, running at 0.7 square kilometers per minute even on a CPU. GPU inference times would be a minimum of 20X faster. Even for a city unseen during training (Dar Es Salaam), the CRESI algorithm manages to return a road network that is sufficiently connected and complete to be routable. We showed how to compute optimal routes, and demonstrated the importance of routing using speed versus geometric distance. We encourage interested parties to explore new testing regions, dive deeper into the intricacies of road network extraction and routing, and to contribute to open source geospatial software if time and interest permits. "
]
},
{
Expand Down
Binary file not shown.