roytseng-tw / Detectron.pytorch

A pytorch implementation of Detectron. Both training from scratch and inferring directly from pretrained Detectron weights are available.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why set: 'upsample.upconv.weight': None in keypoint net?

lilichu opened this issue · comments

Why set 'upsample.upconv.weight': None? In this way we can not load upsample.upconv.weight when load ckpt. but why? thanks!

'upsample.upconv.weight': None, # 0: don't load from or save to checkpoint

        if self.upsample_heatmap:
            blob_name = 'kps_score_lowres'
            detectron_weight_mapping.update({
                'upsample.upconv.weight': None,  # 0: don't load from or save to checkpoint
                'upsample.upconv.bias': None
})