Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
aa2500cf
P
PaddleDetection
项目概览
s920243400
/
PaddleDetection
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleDetection
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
aa2500cf
编写于
3月 11, 2021
作者:
G
Guanghua Yu
提交者:
GitHub
3月 11, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix obj365 label and config (#2330)
上级
04340a59
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
397 addition
and
3 deletion
+397
-3
configs/obj365/cascade_rcnn_cls_aware_r200_vd_fpn_dcnv2_nonlocal_softnms.yml
...ade_rcnn_cls_aware_r200_vd_fpn_dcnv2_nonlocal_softnms.yml
+1
-1
configs/obj365/cascade_rcnn_dcnv2_se154_vd_fpn_gn_cas.yml
configs/obj365/cascade_rcnn_dcnv2_se154_vd_fpn_gn_cas.yml
+3
-1
dataset/coco/objects365_label.txt
dataset/coco/objects365_label.txt
+365
-0
ppdet/utils/coco_eval.py
ppdet/utils/coco_eval.py
+28
-1
未找到文件。
configs/obj365/cascade_rcnn_cls_aware_r200_vd_fpn_dcnv2_nonlocal_softnms.yml
浏览文件 @
aa2500cf
...
@@ -189,7 +189,7 @@ TestReader:
...
@@ -189,7 +189,7 @@ TestReader:
fields
:
[
'
image'
,
'
im_info'
,
'
im_id'
,
'
im_shape'
]
fields
:
[
'
image'
,
'
im_info'
,
'
im_id'
,
'
im_shape'
]
dataset
:
dataset
:
!ImageFolder
!ImageFolder
anno_path
:
annotations/instances_val2017.json
anno_path
:
dataset/coco/objects365_label.txt
sample_transforms
:
sample_transforms
:
-
!DecodeImage
-
!DecodeImage
to_rgb
:
true
to_rgb
:
true
...
...
configs/obj365/cascade_rcnn_dcnv2_se154_vd_fpn_gn_cas.yml
浏览文件 @
aa2500cf
...
@@ -221,10 +221,12 @@ EvalReader:
...
@@ -221,10 +221,12 @@ EvalReader:
worker_num
:
2
worker_num
:
2
TestReader
:
TestReader
:
inputs_def
:
fields
:
[
'
image'
,
'
im_info'
,
'
im_id'
,
'
im_shape'
]
batch_size
:
1
batch_size
:
1
dataset
:
dataset
:
!ImageFolder
!ImageFolder
anno_path
:
dataset/
obj365/annotations/val.json
anno_path
:
dataset/
coco/objects365_label.txt
sample_transforms
:
sample_transforms
:
-
!DecodeImage
-
!DecodeImage
to_rgb
:
True
to_rgb
:
True
...
...
dataset/coco/objects365_label.txt
0 → 100644
浏览文件 @
aa2500cf
person
sneakers
chair
hat
lamp
bottle
cabinet/shelf
cup
car
glasses
picture/frame
desk
handbag
street lights
book
plate
helmet
leather shoes
pillow
glove
potted plant
bracelet
flower
tv
storage box
vase
bench
wine glass
boots
bowl
dining table
umbrella
boat
flag
speaker
trash bin/can
stool
backpack
couch
belt
carpet
basket
towel/napkin
slippers
barrel/bucket
coffee table
suv
toy
tie
bed
traffic light
pen/pencil
microphone
sandals
canned
necklace
mirror
faucet
bicycle
bread
high heels
ring
van
watch
sink
horse
fish
apple
camera
candle
teddy bear
cake
motorcycle
wild bird
laptop
knife
traffic sign
cell phone
paddle
truck
cow
power outlet
clock
drum
fork
bus
hanger
nightstand
pot/pan
sheep
guitar
traffic cone
tea pot
keyboard
tripod
hockey
fan
dog
spoon
blackboard/whiteboard
balloon
air conditioner
cymbal
mouse
telephone
pickup truck
orange
banana
airplane
luggage
skis
soccer
trolley
oven
remote
baseball glove
paper towel
refrigerator
train
tomato
machinery vehicle
tent
shampoo/shower gel
head phone
lantern
donut
cleaning products
sailboat
tangerine
pizza
kite
computer box
elephant
toiletries
gas stove
broccoli
toilet
stroller
shovel
baseball bat
microwave
skateboard
surfboard
surveillance camera
gun
life saver
cat
lemon
liquid soap
zebra
duck
sports car
giraffe
pumpkin
piano
stop sign
radiator
converter
tissue
carrot
washing machine
vent
cookies
cutting/chopping board
tennis racket
candy
skating and skiing shoes
scissors
folder
baseball
strawberry
bow tie
pigeon
pepper
coffee machine
bathtub
snowboard
suitcase
grapes
ladder
pear
american football
basketball
potato
paint brush
printer
billiards
fire hydrant
goose
projector
sausage
fire extinguisher
extension cord
facial mask
tennis ball
chopsticks
electronic stove and gas stove
pie
frisbee
kettle
hamburger
golf club
cucumber
clutch
blender
tong
slide
hot dog
toothbrush
facial cleanser
mango
deer
egg
violin
marker
ship
chicken
onion
ice cream
tape
wheelchair
plum
bar soap
scale
watermelon
cabbage
router/modem
golf ball
pine apple
crane
fire truck
peach
cello
notepaper
tricycle
toaster
helicopter
green beans
brush
carriage
cigar
earphone
penguin
hurdle
swing
radio
CD
parking meter
swan
garlic
french fries
horn
avocado
saxophone
trumpet
sandwich
cue
kiwi fruit
bear
fishing rod
cherry
tablet
green vegetables
nuts
corn
key
screwdriver
globe
broom
pliers
volleyball
hammer
eggplant
trophy
dates
board eraser
rice
tape measure/ruler
dumbbell
hamimelon
stapler
camel
lettuce
goldfish
meat balls
medal
toothpaste
antelope
shrimp
rickshaw
trombone
pomegranate
coconut
jellyfish
mushroom
calculator
treadmill
butterfly
egg tart
cheese
pig
pomelo
race car
rice cooker
tuba
crosswalk sign
papaya
hair drier
green onion
chips
dolphin
sushi
urinal
donkey
electric drill
spring rolls
tortoise/turtle
parrot
flute
measuring cup
shark
steak
poker card
binoculars
llama
radish
noodles
yak
mop
crab
microscope
barbell
bread/bun
baozi
lion
red cabbage
polar bear
lighter
seal
mangosteen
comb
eraser
pitaya
scallop
pencil case
saw
table tennis paddle
okra
starfish
eagle
monkey
durian
game board
rabbit
french horn
ambulance
asparagus
hoverboard
pasta
target
hotair balloon
chainsaw
lobster
iron
flashlight
\ No newline at end of file
ppdet/utils/coco_eval.py
浏览文件 @
aa2500cf
...
@@ -492,7 +492,34 @@ def get_category_info(anno_file=None,
...
@@ -492,7 +492,34 @@ def get_category_info(anno_file=None,
return
coco17_category_info
(
with_background
)
return
coco17_category_info
(
with_background
)
else
:
else
:
logger
.
info
(
"Load categories from {}"
.
format
(
anno_file
))
logger
.
info
(
"Load categories from {}"
.
format
(
anno_file
))
return
get_category_info_from_anno
(
anno_file
,
with_background
)
if
anno_file
.
endswith
(
'.json'
):
return
get_category_info_from_anno
(
anno_file
,
with_background
)
else
:
return
get_category_info_from_txt
(
anno_file
,
with_background
)
def
get_category_info_from_txt
(
anno_file
,
with_background
=
True
):
"""
Get class id to category id map and category id
to category name map from txt file.
args:
anno_file (str): label txt file path.
with_background (bool, default True):
whether load background as class 0.
"""
with
open
(
anno_file
,
"r"
)
as
f
:
catid_list
=
f
.
readlines
()
clsid2catid
=
{}
catid2name
=
{}
for
i
,
catid
in
enumerate
(
catid_list
):
catid
=
catid
.
strip
(
'
\n\t\r
'
)
clsid2catid
[
i
+
int
(
with_background
)]
=
i
+
1
catid2name
[
i
+
int
(
with_background
)]
=
catid
if
with_background
:
clsid2catid
.
update
({
0
:
0
})
catid2name
.
update
({
0
:
'background'
})
return
clsid2catid
,
catid2name
def
get_category_info_from_anno
(
anno_file
,
with_background
=
True
):
def
get_category_info_from_anno
(
anno_file
,
with_background
=
True
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录