Skip to content
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

Request training code for transfering to detection and segmentation #8

Closed
mZhenz opened this issue Mar 16, 2022 · 3 comments
Closed

Comments

@mZhenz
Copy link

mZhenz commented Mar 16, 2022

Hi, I am using your released pretrained checkpoint and trying to transfer it to detection and segmentation task on COCO, but I can get the same result as that in your paper. I am wondering if you could kindly release your training code for this part, or just simply release your experiment's config files of the detectron2. Thanks a lot!

@jacobswan1
Copy link
Owner

jacobswan1 commented Mar 17, 2022

Hi Zhen,

Thanks for the suggestion.

I didn't organize the previous detection implementations but I think these settings might be helpful for the detection task:

Reduce the IMS_PER_BATCH to 8, BASE_LR to 0.01, and enlarging the converging epochs 2X is helpful for the results. It would also be good if you could first try out Kaiming's MoCo detection settings and see if the correct results can be reproduced using the exact settings: https://github.com/facebookresearch/moco/tree/main/detection using ResNet50.

For the specific config files, I found these settings that might be helpful:

coco_R_18_C4_2x.yaml

_BASE_: "Base-RCNN-C4-BN.yaml"
MODEL:
  MASK_ON: True
  WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-18.pkl"
INPUT:
  MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800)
  MIN_SIZE_TEST: 800
DATASETS:
  TRAIN: ("coco_2017_train",)
  TEST: ("coco_2017_val",)
SOLVER:
  STEPS: (240000, 320000)
  MAX_ITER: 360000

Base-RCNN-C4-BN.yaml

MODEL:
  META_ARCHITECTURE: "GeneralizedRCNN"
  RPN:
    PRE_NMS_TOPK_TEST: 6000
    POST_NMS_TOPK_TEST: 1000
  ROI_HEADS:
    NAME: "Res5ROIHeadsExtraNorm"
  BACKBONE:
    FREEZE_AT: 0
  RESNETS:
    NORM: "SyncBN"
TEST:
  PRECISE_BN:
    ENABLED: True
SOLVER:
  IMS_PER_BATCH: 8
  BASE_LR: 0.01

coco_R_18_C4_2x_moco.yaml

_BASE_: "coco_R_18_C4_2x.yaml"
MODEL:
  PIXEL_MEAN: [123.675, 116.280, 103.530]
  PIXEL_STD: [58.395, 57.120, 57.375]
  WEIGHTS: "See Instructions"
  RESNETS:
    DEPTH: 18
    STRIDE_IN_1X1: False
    RES2_OUT_CHANNELS: 64
INPUT:
  FORMAT: "RGB"

@mZhenz
Copy link
Author

mZhenz commented Mar 20, 2022

@jacobswan1 Hi, thank you so much for offering the training config files. I try to use it but I still can't get the same results as that reported in your paper and there is a large gap (3% for AP). The config file and training log are here. The pretrained weights I used is the resnet18_distill_resnet50-moco-v2-checkpoint_0199.pth.tar released in this repo. I am so confused and it would be nice to have your advice.

@mZhenz
Copy link
Author

mZhenz commented Mar 21, 2022

If possible, could you offering the training log of this experiment? Thanks a lot.

@mZhenz mZhenz closed this as completed Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants