CenterNet icon indicating copy to clipboard operation
CenterNet copied to clipboard

error occured when test my dataset.

Open lzw0515 opened this issue 5 years ago • 2 comments

I used the CenterNet model to train my data in eight categories.After changing the parameters related to the category and making the format conversion from XML to json, the iteration can be trained normally.However, when I tried to run test with the trained model, I kept misreporting CUDA out of memory

I made the following changes: 1)models/CenterNet-52.py或者models/CenterNet-104.py(看你要训练哪一个模型,下面省略),中第132行 out_dim =80 ==> out_dim =8 (类别数) 2) config/CenterNet-52.py第45行 “categories":80 ==> “categories":8(类别数) 3)db/detection.py 第8行self._configs[ “categories"] =80 ==> self._configs[ “categories"] = 8 (类别数) 4)db/detection.py 第72行 num_classes=81 ==> num_classes=9 (类别数+1)

and my pull,push,reg loss =0 when train.

Has anyone encountered similar problems and solved them? Help me!

lzw0515 avatar Nov 16 '19 08:11 lzw0515

I used the CenterNet model to train my data in eight categories.After changing the parameters related to the category and making the format conversion from XML to json, the iteration can be trained normally.However, when I tried to run test with the trained model, I kept misreporting CUDA out of memory

I made the following changes: 1)models/CenterNet-52.py或者models/CenterNet-104.py(看你要训练哪一个模型,下面省略),中第132行 out_dim =80 ==> out_dim =8 (类别数) 2) config/CenterNet-52.py第45行 “categories":80 ==> “categories":8(类别数) 3)db/detection.py 第8行self._configs[ “categories"] =80 ==> self._configs[ “categories"] = 8 (类别数) 4)db/detection.py 第72行 num_classes=81 ==> num_classes=9 (类别数+1)

and my pull,push,reg loss =0 when train.

Has anyone encountered similar problems and solved them? Help me!

我也是,怎么解决呢?annotations也没啥问题呀

qianqianderizi avatar Apr 23 '20 17:04 qianqianderizi

I used the CenterNet model to train my data in eight categories.After changing the parameters related to the category and making the format conversion from XML to json, the iteration can be trained normally.However, when I tried to run test with the trained model, I kept misreporting CUDA out of memory

I made the following changes: 1)models/CenterNet-52.py或者models/CenterNet-104.py(看你要训练哪一个模型,下面省略),中第132行 out_dim =80 ==> out_dim =8 (类别数) 2) config/CenterNet-52.py第45行 “categories":80 ==> “categories":8(类别数) 3)db/detection.py 第8行self._configs[ “categories"] =80 ==> self._configs[ “categories"] = 8 (类别数) 4)db/detection.py 第72行 num_classes=81 ==> num_classes=9 (类别数+1)

and my pull,push,reg loss =0 when train.

Has anyone encountered similar problems and solved them? Help me!

@Duankaiwen

qianqianderizi avatar Apr 23 '20 17:04 qianqianderizi