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
How to Fine-tune with pretrained weights from Model Zoo on custom datasets? #311
Comments
Yes, you can simply update config by setting |
Thanks! I want to ask an other question. |
Would you like to share the whole content of you config, which may be helpful for us to check the issue |
from omegaconf import OmegaConf import detectron2.data.transforms as T from detrex.data import DetrDatasetMapper dataloader = OmegaConf.create() register_coco_instances("my_dataset_train", {}, '/home/workspace/datasets/annotations/instances_train2017.json', '/home/workspace/datasets/train2017') dataloader.train = L(build_detection_train_loader)( dataloader.test = L(build_detection_test_loader)( dataloader.evaluator = L(COCOEvaluator)(
|
How to Fine-tune with pretrained weights from Model Zoo on custom datasets?
change the init_checkpoint where: train.init_checkpoint = "detectron2://ImageNetPretrained/torchvision/R-50.pkl" ?
The text was updated successfully, but these errors were encountered: