Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit 24dede9

Browse files
committed
V1.4.0
1 parent b1fb411 commit 24dede9

File tree

6 files changed

+278
-102
lines changed

6 files changed

+278
-102
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@ If for some reason you choose not to use Anaconda, you must install the followin
4747

4848
## Implement the Segmentation Network
4949
1. Download the training dataset from above and extract to the project `data` directory.
50-
2. Complete `project_nn_lib.py`by following the TODOs in `project_nn_lib_template.py`
51-
4. Complete `train.py` by following the TODOs in `train_template.py`
52-
5. Train the network locally, or on [AWS](docs/aws_setup.md).
53-
6. Continue to experiment with the training data and network until you attain the score you desire.
54-
7. Once you are comfortable with performance on the training dataset, see how it performs in live simulation!
50+
2. Implement your solution in model_training.ipynb
51+
3. Train the network locally, or on [AWS](docs/aws_setup.md).
52+
4. Continue to experiment with the training data and network until you attain the score you desire.
53+
5. Once you are comfortable with performance on the training dataset, see how it performs in live simulation!
5554

5655
## Collecting Training Data ##
5756
A simple training dataset has been provided above in this repository. This dataset will allow you to verify that you're segmentation network is semi-functional. However, if you're interested in improving your score, you may be interested in collecting additional training data. To do, please see the following steps.

code/follower.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
from utils import visualization
5454
from utils import scoring_utils
5555
from utils import sio_msgs
56+
from utils import model_tools
5657

5758
import time
5859

@@ -195,7 +196,7 @@ def sio_server():
195196

196197
parser = argparse.ArgumentParser()
197198

198-
parser.add_argument('model_file',
199+
parser.add_argument('weight_file',
199200
help='The model file to use for inference')
200201

201202

@@ -205,9 +206,8 @@ def sio_server():
205206

206207
args = parser.parse_args()
207208

208-
model_path = os.path.join('..', 'data', 'weights', args.model_file)
209-
model = keras.models.load_model(model_path)
210-
image_hw = model.layers[0].input_shape[1]
209+
model = model_tools.load_network(args.weight_file)
210+
image_hw = model.layers[0].output_shape[1]
211211

212212
if args.pred_viz:
213213
overlay_plot = visualization.SideBySidePlot('Segmentation Overlay', image_hw)

0 commit comments

Comments
 (0)