ash12358
ash12358
嗯谢谢,我也找个这个源码了 self.indexes = np.random.choice( self._sample_num, self._sample_num, replace=False, p=self.img_weights) 貌似这里出的问题,我刚检查了下,这个sample_num=608606,img_weights=[2.64941611e-08 1.25303062e-07 1.94764022e-08 ... 1.85412515e-06 6.28482903e-07 1.81607386e-07],我再仔细检查一下这个地方。然后看别的issue有人建议换成master版本的代码试试。
@Noplz GeForce RTX 2080 Ti
@Noplz ppdet/data/source/coco.py第101行,ins_anno_ids = coco.getAnnIds(imgIds=img_id, iscrowd=False),这里的iscrowd=False引发的问题,有些图片的标注iscrowd全都是1,这样取出的ins_anno_ids就是空集。
@jerrywgz 训练的是object365数据集; 目前训练到75万代左右,loss下降的不明显,在1.2左右,训练日志请看最下面的nohup.txt; 使用的预训练模型是默认的https://paddle-imagenet-models-name.bj.bcebos.com/ResNet200_vd_pretrained.tar [nohup.txt](https://github.com/PaddlePaddle/PaddleDetection/files/4614153/nohup.txt)
@jerrywgz [cascade_rcnn_cls_aware_r200_vd_fpn_dcnv2_nonlocal_softnms.yml.txt](https://github.com/PaddlePaddle/PaddleDetection/files/4614200/cascade_rcnn_cls_aware_r200_vd_fpn_dcnv2_nonlocal_softnms.yml.txt)
@littletomatodonkey 谢谢,你提醒了我,我又换了一张图进行测试,发现有些类别的socre还是挺高的,但好像类别名字不对。 另外我还有几个问题想问问: 1.学习率减半那里,是修改yml文件中的LearningRate下的base_lr吗,如果我只用1张卡,是不是要把0.01除以8? 2.各阶段的迭代轮数是指milestones: [520000, 740000]这里吗,那max_iters是不是也要放大? 3.我感觉检测出来的类别名字不太对,这该怎么改? 4.用tools/eval.py验证的时候,ap值全是0,这可能是那儿的问题呢 训练日志: [nohup.txt](https://github.com/PaddlePaddle/PaddleDetection/files/4614545/nohup.txt)
@littletomatodonkey 好的。human和fan的class id并不是只差1。 我用了你们提供的模型,运行infer.py,发现类别名还是不对。 运行命令: CUDA_VISIBLE_DEVICES=0 python tools/infer.py -c configs/obj365/cascade_rcnn_dcnv2_se154_vd_fpn_gn_cas.yml -o weights=https://paddlemodels.bj.bcebos.com/object_detection/cascade_rcnn_dcnv2_se154_vd_fpn_gn_cas_obj365.tar --infer_img=obj365_val_000000505576.jpg
@littletomatodonkey 我也不知道我这边的train.json和val.json是不是官方的。但我发现train.json里面的categories和val.json里的categories里面类别顺序是不一样的。 有可能是我这边这两个文件不是从官网弄来的,你们也可以再完善下代码。 train.json->categories: [{'id': 216, 'name': 'ship'}, {'id': 348, 'name': 'okra'}, {'id': 186, 'name': 'printer'}, {'id': 241, 'name': 'cigar'}, {'id': 79, 'name': 'cellphone'}, {'id': 211, 'name': 'mango'}, ......] val.json->categories:...
@littletomatodonkey 好的,谢谢
@littletomatodonkey 还想请教个问题,因为显卡内存不够用,我就把TrainReader部分的target_size改成了[416, 448, 480, 512, 544, 576, 608, 640, 672, 704, 736, 768, 800, 832, 864, 896],把max_size修改成1000,这样的话,EvalReader和TestReader里的target_size和max_size该设置成多少合适呢