Skip to content
Merged
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
Bug fix
  • Loading branch information
adipandas authored Nov 7, 2019
commit 5b7305d595665f0ce4d34badaebe843937bf3604
24 changes: 16 additions & 8 deletions tracking-caffe-model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -51,7 +51,8 @@
" def update(self, detections):\n",
" \n",
" if len(detections) == 0: # if no object detected in the frame\n",
" for objectID in self.lost.keys():\n",
" lost_ids = list(self.lost.keys())\n",
" for objectID in lost_ids:\n",
" self.lost[objectID] +=1\n",
" if self.lost[objectID] > self.maxLost: self.removeObject(objectID)\n",
" \n",
Expand Down Expand Up @@ -127,7 +128,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -148,7 +149,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -169,7 +170,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -186,7 +187,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {
"scrolled": true
},
Expand Down Expand Up @@ -238,6 +239,13 @@
"cv.destroyWindow(\"image\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -262,7 +270,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
9 changes: 5 additions & 4 deletions tracking-tensorflow-ssd_mobilenet_v2_coco_2018_03_29.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
" def update(self, detections):\n",
" \n",
" if len(detections) == 0: # if no object detected in the frame\n",
" for objectID in self.lost.keys():\n",
" lost_ids = list(self.lost.keys())\n",
" for objectID in lost_ids:\n",
" self.lost[objectID] +=1\n",
" if self.lost[objectID] > self.maxLost: self.removeObject(objectID)\n",
" \n",
Expand Down Expand Up @@ -318,9 +319,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "drlnd",
"display_name": "Python 3",
"language": "python",
"name": "drlnd"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -332,7 +333,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
9 changes: 5 additions & 4 deletions tracking-yolo-model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
" def update(self, detections):\n",
" \n",
" if len(detections) == 0: # if no object detected in the frame\n",
" for objectID in self.lost.keys():\n",
" lost_ids = list(self.lost.keys())\n",
" for objectID in lost_ids:\n",
" self.lost[objectID] +=1\n",
" if self.lost[objectID] > self.maxLost: self.removeObject(objectID)\n",
" \n",
Expand Down Expand Up @@ -311,9 +312,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "drlnd",
"display_name": "Python 3",
"language": "python",
"name": "drlnd"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -325,7 +326,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down