forked from yangxue0827/R2CNN_FPN_Tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0858c8b
commit c847b1a
Showing
17 changed files
with
55 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import division, print_function, absolute_import | ||
|
||
from libs.configs import cfgs | ||
|
||
if cfgs.DATASET_NAME == 'ship': | ||
NAME_LABEL_MAP = { | ||
'back_ground': 0, | ||
'ship': 1 | ||
} | ||
elif cfgs.DATASET_NAME == 'aeroplane': | ||
NAME_LABEL_MAP = { | ||
'back_ground': 0, | ||
'aeroplane': 1 | ||
} | ||
elif cfgs.DATASET_NAME == 'pascal': | ||
NAME_LABEL_MAP = { | ||
'back_ground': 0, | ||
'aeroplane': 1, | ||
'bicycle': 2, | ||
'bird': 3, | ||
'boat': 4, | ||
'bottle': 5, | ||
'bus': 6, | ||
'car': 7, | ||
'cat': 8, | ||
'chair': 9, | ||
'cow': 10, | ||
'diningtable': 11, | ||
'dog': 12, | ||
'horse': 13, | ||
'motorbike': 14, | ||
'person': 15, | ||
'pottedplant': 16, | ||
'sheep': 17, | ||
'sofa': 18, | ||
'train': 19, | ||
'tvmonitor': 20 | ||
} | ||
else: | ||
assert 'please set label dict!' | ||
|
||
|
||
def get_label_name_map(): | ||
reverse_dict = {} | ||
for name, label in NAME_LABEL_MAP.items(): | ||
reverse_dict[label] = name | ||
return reverse_dict | ||
|
||
LABEl_NAME_MAP = get_label_name_map() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.