Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

训练自己的数据集 #22

Closed
zzd1994 opened this issue Apr 8, 2020 · 6 comments
Closed

训练自己的数据集 #22

zzd1994 opened this issue Apr 8, 2020 · 6 comments

Comments

@zzd1994
Copy link

zzd1994 commented Apr 8, 2020

你好,请问训练自己的数据集还要改哪些地方呢,我的数据集在训练的时候没报错,但在测试的时候报错了,还有类别名和类别数目没改没关系吗?
期待您的解答,谢谢!

@WXinlong
Copy link
Owner

WXinlong commented Apr 8, 2020

@zzd1994 Can you provide your output log?

@zzd1994
Copy link
Author

zzd1994 commented Apr 9, 2020

when testing,
Traceback (most recent call last):
File "test_ins.py", line 257, in
main()
File "test_ins.py", line 235, in main
coco_eval(result_files, eval_types, dataset.coco)
File "/home/jskj/Projects/SOLO-master/mmdet/core/evaluation/coco_utils.py", line 41, in coco_eval
coco_dets = coco.loadRes(result_file)
File "/home/jskj/.conda/envs/solov1/lib/python3.7/site-packages/pycocotools/coco.py", line 326, in loadRes
if 'caption' in anns[0]:
IndexError: list index out of range

i don't know how to modify the hyperparameter for my own dataset, and the model is solo_r101_fpn_8gpu_3x

@LiXm1002
Copy link

I met same question, I have changed the num_classes = 2 because my data has only one category. when I run inference_demo.py . It get some errors.
/home/ubuntu/anaconda3/envs/solov1/lib/python3.6/site-packages/torch/nn/functional.py:2506: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details. "See the documentation of nn.Upsample for details.".format(mode)) Traceback (most recent call last): File "demo/inference_demo.py", line 20, in <module> show_result_ins(img, result, model.CLASSES, score_thr=0.25, out_file="pig_out.jpg") File "/media/ubuntu/SSD/SOLO-master/mmdet/apis/inference.py", line 237, in show_result_ins seg_label = cur_result[0] TypeError: 'NoneType' object is not subscriptable

@zzd1994 zzd1994 closed this as completed Jun 17, 2020
@ceciliaAI
Copy link

@LiXm1002 hi I trained the model without error, but the prediction result is also error, it seems that the prediction is None, have you solved this problem?

@yfjiang1990
Copy link

I have the same problem, has someone solved this problem?

@zzd1994
Copy link
Author

zzd1994 commented Jul 16, 2020

I have the same problem, has someone solved this problem?
@yfjiang1990 maybe you should check you own coco-format dataset or re-install mmdetection, i forgot it in detail...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants