youngwanLEE / CenterMask

[CVPR 2020] CenterMask : Real-Time Anchor-Free Instance Segmentation
https://arxiv.org/abs/1911.06667
Other
770 stars 124 forks source link

bug in test_net / usage instructions . parameter MODEL.WEIGHT is ignored #60

Open omerbrandis opened 3 years ago

omerbrandis commented 3 years ago

hi ,

useage instructions and test_net.py code are misleading: cfg.merge_from_file(args.config_file) cfg.merge_from_list(args.opts) cfg.freeze()

in practice , code in maskrcnn_bechmark/utils/checkpoint.py , loads the last existing checkpoint if present: def load(self, f=None): **if self.has_checkpoint():

override argument with existing checkpoint

        f = self.get_checkpoint_file()**
    if not f:
        # no checkpoint could be found
        self.logger.info("No checkpoint found. Initializing model from scratch")
        return {}
    self.logger.info("Loading checkpoint from {}".format(f))

:-) Omer.