Skip to content

Commit b7501a9

Browse files
committed
fix range error and notebook weight
1 parent 6cd1f3d commit b7501a9

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

Diff for: Yolo Step-by-Step.ipynb

-14
Original file line numberDiff line numberDiff line change
@@ -921,20 +921,6 @@
921921
" period=1)"
922922
]
923923
},
924-
{
925-
"cell_type": "code",
926-
"execution_count": null,
927-
"metadata": {
928-
"ExecuteTime": {
929-
"end_time": "2017-09-28T12:42:51.550566Z",
930-
"start_time": "2017-09-28T20:42:49.770231+08:00"
931-
}
932-
},
933-
"outputs": [],
934-
"source": [
935-
"model.load_weights('weights_coco.h5')"
936-
]
937-
},
938924
{
939925
"cell_type": "code",
940926
"execution_count": null,

Diff for: preprocessing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self, images,
7373
self.norm = norm
7474

7575
self.counter = 0
76-
self.anchors = [BoundBox(0, 0, config['ANCHORS'][2*i], config['ANCHORS'][2*i+1]) for i in range(len(config['ANCHORS'])//2)]
76+
self.anchors = [BoundBox(0, 0, config['ANCHORS'][2*i], config['ANCHORS'][2*i+1]) for i in range(int(len(config['ANCHORS'])//2))]
7777

7878
### augmentors by https://github.com/aleju/imgaug
7979
sometimes = lambda aug: iaa.Sometimes(0.5, aug)

0 commit comments

Comments
 (0)