Skip to content

Commit

Permalink
add htc
Browse files Browse the repository at this point in the history
  • Loading branch information
cizhenshi committed Jul 20, 2019
1 parent 4952806 commit 972de72
Show file tree
Hide file tree
Showing 16 changed files with 1,924 additions and 141 deletions.
76 changes: 39 additions & 37 deletions Error_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"cells": [
{
"cell_type": "code",
"execution_count": 49,
"execution_count": 1,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d537bd58b6c44569a394a96e6c6534bf",
"model_id": "9d15e09286194fd1a2cd73a89fbb81d5",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -67,23 +67,23 @@
},
{
"cell_type": "code",
"execution_count": 51,
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"loading annotations into memory...\n",
"Done (t=0.35s)\n",
"Done (t=0.59s)\n",
"creating index...\n",
"index created!\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a9d2f0c63d94436e9499eec01e168433",
"model_id": "c14b060169f54e71a774b2d79c999e13",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -154,8 +154,10 @@
},
{
"cell_type": "code",
"execution_count": 100,
"metadata": {},
"execution_count": 3,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import json\n",
Expand Down Expand Up @@ -354,13 +356,13 @@
},
{
"cell_type": "code",
"execution_count": 107,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "8a3aec7d8e3a4d83b090a6e6203d6d04",
"model_id": "bfe29a831f264524a84ed7abd3949bd9",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -376,8 +378,8 @@
"output_type": "stream",
"text": [
"\n",
"81048 52186\n",
"94028 52186\n"
"81048 46969\n",
"90237 46969\n"
]
}
],
Expand Down Expand Up @@ -865,49 +867,49 @@
},
{
"cell_type": "code",
"execution_count": 125,
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"small-vehicle\n",
"{'none': 19486, 'large-vehicle': 591, 'ship': 71, 'swimming-pool': 1, 'harbor': 1}\n",
"{'none': 17576, 'large-vehicle': 517, 'ship': 81, 'swimming-pool': 1}\n",
"storage-tank\n",
"{'none': 972, 'bridge': 8, 'baseball-diamond': 2, 'roundabout': 2}\n",
"baseball-diamond\n",
"{'none': 146, 'storage-tank': 3, 'tennis-court': 1}\n",
"{'none': 1167, 'bridge': 8, 'roundabout': 3}\n",
"plane\n",
"{'none': 732, 'helicopter': 17}\n",
"ground-track-field\n",
"{'none': 219, 'swimming-pool': 1, 'soccer-ball-field': 3}\n",
"{'none': 767, 'helicopter': 18, 'small-vehicle': 1}\n",
"harbor\n",
"{'none': 2795, 'ship': 60, 'bridge': 5, 'plane': 1}\n",
"ship\n",
"{'none': 5786, 'small-vehicle': 101, 'large-vehicle': 21, 'harbor': 42, 'plane': 2, 'swimming-pool': 1}\n",
"{'none': 6442, 'harbor': 35, 'small-vehicle': 119, 'large-vehicle': 15, 'swimming-pool': 2, 'tennis-court': 1}\n",
"bridge\n",
"{'none': 838, 'harbor': 1, 'ship': 1}\n",
"harbor\n",
"{'none': 2759, 'ship': 53, 'bridge': 3, 'plane': 4}\n",
"helipad\n",
"{'none': 6}\n",
"{'none': 1120, 'harbor': 2, 'ship': 1}\n",
"tennis-court\n",
"{'none': 236, 'basketball-court': 5, 'soccer-ball-field': 1}\n",
"{'none': 266, 'soccer-ball-field': 3, 'basketball-court': 3}\n",
"basketball-court\n",
"{'none': 259, 'tennis-court': 2, 'ground-track-field': 2, 'helicopter': 1, 'soccer-ball-field': 2}\n",
"airport\n",
"{'none': 92, 'harbor': 1}\n",
"{'none': 276, 'tennis-court': 12, 'helicopter': 1, 'soccer-ball-field': 3, 'ground-track-field': 1}\n",
"baseball-diamond\n",
"{'none': 259, 'storage-tank': 1, 'tennis-court': 1}\n",
"ground-track-field\n",
"{'none': 212, 'soccer-ball-field': 3, 'baseball-diamond': 1}\n",
"roundabout\n",
"{'none': 349, 'storage-tank': 3}\n",
"large-vehicle\n",
"{'none': 6671, 'small-vehicle': 1274, 'ship': 38, 'plane': 1}\n",
"swimming-pool\n",
"{'none': 697, 'basketball-court': 1, 'roundabout': 1, 'soccer-ball-field': 1, 'tennis-court': 2, 'baseball-diamond': 4, 'ship': 1, 'storage-tank': 1}\n",
"{'none': 8056, 'small-vehicle': 1742, 'ship': 39, 'swimming-pool': 1}\n",
"airport\n",
"{'none': 88}\n",
"helicopter\n",
"{'none': 170, 'plane': 13, 'small-vehicle': 1}\n",
"{'none': 154, 'plane': 9, 'small-vehicle': 2}\n",
"swimming-pool\n",
"{'none': 759, 'small-vehicle': 1, 'roundabout': 1, 'soccer-ball-field': 1, 'tennis-court': 2, 'baseball-diamond': 6, 'ship': 1}\n",
"soccer-ball-field\n",
"{'none': 191, 'ground-track-field': 5, 'basketball-court': 6, 'tennis-court': 1}\n",
"roundabout\n",
"{'none': 250, 'storage-tank': 5}\n",
"{'none': 204, 'tennis-court': 1, 'basketball-court': 9, 'ground-track-field': 3}\n",
"container-crane\n",
"{'none': 32, 'harbor': 1}\n"
"{'none': 56, 'ship': 1}\n",
"helipad\n",
"{'none': 1}\n"
]
}
],
Expand Down
14 changes: 7 additions & 7 deletions analyse.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": 2,
"metadata": {
"collapsed": true
},
Expand Down Expand Up @@ -3153,23 +3153,23 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"loading annotations into memory...\n",
"Done (t=0.73s)\n",
"Done (t=2.65s)\n",
"creating index...\n",
"index created!\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1c5d7ac3ce424b45a53f04f1e71fc774",
"model_id": "fe97a10be21c42d0ac0bbc990bbd7421",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -3185,16 +3185,16 @@
"output_type": "stream",
"text": [
"\n",
"{'tennis-court': 783, 'container-crane': 14, 'storage-tank': 3175, 'baseball-diamond': 273, 'plane': 2832, 'ground-track-field': 186, 'helicopter': 78, 'airport': 104, 'harbor': 2443, 'ship': 13801, 'large-vehicle': 5371, 'swimming-pool': 851, 'soccer-ball-field': 152, 'roundabout': 228, 'basketball-court': 147, 'bridge': 546, 'small-vehicle': 50062, 'helipad': 2}\n",
"{'license': 1, 'file_name': 'P9997.png', 'coco_url': 'xxx', 'height': 4096, 'width': 4096, 'date_captured': '2019-06-25', 'flickr_url': 'xxx', 'id': 170}\n"
"{'tennis-court': 2777, 'container-crane': 256, 'storage-tank': 7442, 'baseball-diamond': 692, 'plane': 8533, 'ground-track-field': 498, 'helicopter': 652, 'airport': 306, 'harbor': 6459, 'ship': 40552, 'large-vehicle': 24570, 'swimming-pool': 2379, 'soccer-ball-field': 421, 'roundabout': 657, 'basketball-court': 564, 'bridge': 2497, 'small-vehicle': 169268, 'helipad': 104}\n",
"{'license': 1, 'file_name': 'P7763.png', 'coco_url': 'xxx', 'height': 4096, 'width': 4096, 'date_captured': '2019-06-25', 'flickr_url': 'xxx', 'id': 1559}\n"
]
}
],
"source": [
"import matplotlib.pyplot as plt\n",
"CLASS=['tennis-court', 'container-crane', 'storage-tank', 'baseball-diamond', 'plane', 'ground-track-field', 'helicopter', 'airport', 'harbor', 'ship', 'large-vehicle', 'swimming-pool', 'soccer-ball-field', 'roundabout', 'basketball-court', 'bridge', 'small-vehicle', 'helipad']\n",
"#CLASS={'tennis-court', 'container-crane', 'storage-tank', 'baseball-diamond', 'plane', 'ground-track-field', 'helicopter', 'airport', 'harbor', 'ship', 'large-vehicle', 'swimming-pool', 'soccer-ball-field', 'roundabout', 'basketball-court', 'bridge', 'small-vehicle', 'helipad'}\n",
"coco=COCO(\"/home/xfr/rssid/data/annotation/annos_rscup_val.json\")\n",
"coco=COCO(\"/home/xfr/rssid/data/annotation/annos_rscup_train.json\")\n",
"class_to_ind = dict(zip(CLASS, range(len(CLASS))))\n",
"num_class = dict(zip(CLASS, [0]*len(CLASS)))\n",
"imgIds = coco.getImgIds()\n",
Expand Down
Loading

0 comments on commit 972de72

Please sign in to comment.