facebookresearch / maskrcnn-benchmark

Fast, modular reference implementation of Instance Segmentation and Object Detection algorithms in PyTorch.
MIT License
9.3k stars 2.49k forks source link

Re-training possible? #581

Closed maxsenh closed 5 years ago

maxsenh commented 5 years ago

❓ Questions and Help

Hi! My question is whether retraining on new data is possible? Lets assume that I trained a model with satisfying accuracies but I want to further improve it by adding new data containing the features I want to add. Do I simply set the old model as pre-trained model (MODEL.WEIGHT) and train only on those new data?

Thank you in advance!

chengyangfu commented 5 years ago

Hi, That's one of the solutions. The potential problem is your model may forget what it learns in the previous dataset. Another straightforward method is to concatenate these two data sets and re-train on it. You can do it by modifying DATASETS.TRAIN. This could make sure your modal does well on both datasets but it may take longer training time.

This is also an open research problem, you can also check the following research paper for a better solution. 

You can also check the following research paper.

fmassa commented 5 years ago

Closing following @chengyangfu comments. Thanks Cheng-Yang!