Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

pre-trained weights from coco dataset #51

Closed
coldgemini opened this issue Jan 27, 2018 · 3 comments
Closed

pre-trained weights from coco dataset #51

coldgemini opened this issue Jan 27, 2018 · 3 comments

Comments

@coldgemini
Copy link

hello, but do you also have pretrained weights from coco dataset instead of imagenet?

thanks

@ppwwyyxx
Copy link
Contributor

Proposal, Box, and Mask Detection Baselines

These models are all trained on coco.

@coldgemini
Copy link
Author

yes, but my dataset has class number different from coco dataset so your mentioned model cannot be directly loaded into the training scripts. I don't know how caffe2 handles model importing with different layer sizes. I know however in caffe I can just modify the layer name.

@KaimingHe
Copy link
Contributor

To further fine-tune a COCO model on another dataset (e.g., Cityscapes as we did), you need to remove the layers that are class-dependent (in Mask R-CNN, in bbox cls, bbox reg, and mask pred layers), and reinitialize them.

In Detectron, the weights are loaded by matching names, so a simple way to do this is either to change the name of the class-dependent layers when you do further fine-tuning, or add a flag in the weight loading to not load these weights.

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

No branches or pull requests

4 participants