/
Makefile
28 lines (22 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
build:
docker build -t borealtc .
run: build
docker run --gpus all -e CUDA_VISIBLE_DEVICES=$CUDA_VISIBLE_DEVICES --rm --ipc host \
--mount type=bind,source=.,target=/code/ \
--mount type=bind,source=/dev/shm,target=/dev/shm \
borealtc python3 main.py
build-gpu:
docker build -t borealtc-gpu -f DockerfileGPU .
run-gpu: build-gpu
docker run --gpus all -e CUDA_VISIBLE_DEVICES=$CUDA_VISIBLE_DEVICES --rm --ipc host \
--mount type=bind,source=.,target=/code/ \
--mount type=bind,source=/dev/shm,target=/dev/shm \
borealtc-gpu python3 main.py
log:
xdg-open http://localhost:6006 && tensorboard --logdir tb_logs
watch-results:
watch "(ls results/husky/ && ls results/vulpi/) | wc"
jupyter: build
@echo "Running jupyter-server"
docker run -v .:/code -p 8887:8888 --rm terrain \
jupyter server --ip 0.0.0.0 --no-browser --NotebookApp.token='iros-2024' --NotebookApp.password='' --NotebookApp.allow_origin='*' --NotebookApp.ip='0.0.0.0' --allow-root --ServerApp.notebook_dir=/code --ServerApp.root_dir=/code