File tree Expand file tree Collapse file tree 2 files changed +21
-18
lines changed Expand file tree Collapse file tree 2 files changed +21
-18
lines changed Original file line number Diff line number Diff line change @@ -8,23 +8,26 @@ make build
8
8
```
9
9
10
10
## Running the codes in the container
11
- 1 . Run a container and enter it.
11
+ ### Network training
12
+ 1 . Example : Network training
12
13
```
13
- make run
14
+ docker-compose up pytorch-train
15
+ ```
16
+ 2 . Visualization using Tensorboard
17
+ ```
18
+ docker-compose up tensorboard
14
19
```
15
20
16
- 2 . Run a script inside the container
17
- 1 . Example : Training with greenhouse
18
- ```
19
- cd /root/PyTorch-ENet
20
- python train.py -m train --save-dir save/dir --name [model_name] --dataset greenhouse --dataset-dir dataset/dir --with-unlabeled
21
- ```
22
- 1 . Run tensorboard
23
- ```
24
- cd /root/PyTorch-ENet
25
- tensorboard --logdir=./runs/
26
- ```
27
- You can now use ` docker-compose ` to launch both the training script and ` tensorboard ` .
28
- ```
29
- docker-compose up
21
+ ### ROS node
22
+ 1 . Build (` catkin build ` )
23
+ ```
24
+ docker-compose up build
25
+ ```
26
+ 2 . Launch ` roscore `
27
+ ```
28
+ docker-compose up pytorch-ros-master
29
+ ```
30
+ 3 . Run a ROS node (` roslaunch pytorch_enet_ros pytorch_enet_ros.launch ` )
31
+ ```
32
+ docker-compose up pytorch-ros-node
30
33
```
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: "2.3"
2
2
services :
3
3
pytorch-train :
4
4
container_name : pytorch-train
5
- image : aisl/pytorch:latest
5
+ image : aisl/pytorch-enet :latest
6
6
runtime : nvidia
7
7
build : .
8
8
command : >
@@ -19,7 +19,7 @@ services:
19
19
20
20
tensorboard :
21
21
container_name : tensorboard
22
- image : aisl/pytorch:latest
22
+ image : aisl/pytorch-enet :latest
23
23
command : tensorboard --logdir /root/PyTorch-ENet/runs
24
24
build : .
25
25
ports :
You can’t perform that action at this time.
0 commit comments