Centernet: Transfer learning using model zoo models

Created on 17 May 2019  路  5Comments  路  Source: xingyizhou/CenterNet

When training models on our own dataset, is there a way to use the base models you have provided as a checkpoint for transfer learning, or do they have to all be trained from scratch with massive datasets?

Most helpful comment

In debugger.py line 44 it picks up coco names if you're using the coco dataset. (it defines the coco names around line 445)

I added my own names and added an extra elif statement. This required renaming my custom dataset to something besides coco.

I also had to adjust def init in opts.py line 338 to match my class number and the new dataset name.

All 5 comments

You can directly --load_model /path/to/a/pretrained/model.

You can directly --load_model /path/to/a/pretrained/model.

Thank you. On a further note, is there a specific way to run demo.py after training our own custom model? I'm doing basic object detection, and I provide the demo with the model generated from our experiment folder, and I point it to our custom dataset, but the inferences that are generated seem to be completely random and still using labels from the original COCO dataset. When I run the training through the debugger, I can see that even after an epoch, the predictions it provides on my evaluation set are already pretty decent and correctly labeled. This is what leads me to believe I'm running the demo incorrectly somehow.

In debugger.py line 44 it picks up coco names if you're using the coco dataset. (it defines the coco names around line 445)

I added my own names and added an extra elif statement. This required renaming my custom dataset to something besides coco.

I also had to adjust def init in opts.py line 338 to match my class number and the new dataset name.

In debugger.py line 44 it picks up coco names if you're using the coco dataset. (it defines the coco names around line 445)

I added my own names and added an extra elif statement. This required renaming my custom dataset to something besides coco.

I also had to adjust def init in opts.py line 338 to match my class number and the new dataset name.

Yep, ctdet was still defaulting to coco and 80 classes in opts.py, changing that solved my issue. Thanks!

@PeterVennerstrom great!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JiwonCocoder picture JiwonCocoder  路  7Comments

zqnnn picture zqnnn  路  3Comments

li980432131 picture li980432131  路  6Comments

leiyaohui picture leiyaohui  路  3Comments

VRCMF picture VRCMF  路  6Comments