Maskrcnn-benchmark: How do trained models are loaded for inference?

Created on 1 Mar 2019  ยท  2Comments  ยท  Source: facebookresearch/maskrcnn-benchmark

โ“ Questions and Help

Hi

I trained my own model while using the pre-trained Imagenet model. Now, I have trouble understanding how my model is loaded for inference? Is first the model found in OUTPUT_DIR loaded and then the one from MODEL.WEIGHT ?

        save_dir = cfg.OUTPUT_DIR
        checkpointer = DetectronCheckpointer(cfg, self.model, save_dir=save_dir)        
        _ = checkpointer.load(cfg.MODEL.WEIGHT)

Thanks in advance

question

Most helpful comment

If there is a last_checkpoint file in OUTPUT_DIR, it will take the file present there.
If there isn't any file named last_checkpoint in OUTPUT_DIR, it will load the weights from MODEL.WEIGHT.

All 2 comments

If there is a last_checkpoint file in OUTPUT_DIR, it will take the file present there.
If there isn't any file named last_checkpoint in OUTPUT_DIR, it will load the weights from MODEL.WEIGHT.

If there is a last_checkpoint file in OUTPUT_DIR, it will take the file present there.
If there isn't any file named last_checkpoint in OUTPUT_DIR, it will load the weights from MODEL.WEIGHT.

if I just write,

save_dir= cfg.OUTPUT_DIR
checkpointer = DetectronCheckpointer(cfg, self.model, save_dir=save_dir) 

If there isn't any file named last_checkpoint in OUTPUT_DIR, it will start from the scratch, right?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BelhalK picture BelhalK  ยท  4Comments

adityaarun1 picture adityaarun1  ยท  3Comments

jbitton picture jbitton  ยท  4Comments

krumo picture krumo  ยท  3Comments

YuShen1116 picture YuShen1116  ยท  4Comments