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

Linear segmentation evaluation on ADE20k #18

Closed
Adrien987k opened this issue May 12, 2022 · 2 comments
Closed

Linear segmentation evaluation on ADE20k #18

Adrien987k opened this issue May 12, 2022 · 2 comments

Comments

@Adrien987k
Copy link

Adrien987k commented May 12, 2022

Hi,

I am trying to reproduce the linear segmentation results obtained with the ViT-B IBOT pretrained model, which performs at 38.3 mIoU according to the paper.

With this model, and the config file provided in:

ibot/evaluation/semantic_segmentation/configs/linear/vit_base_512_ade20k_160k.py

I only reach ~18mIoU on ADE20K.
I saw that the command in the README change the learning rate and normalize the output so I tried with:

model.backbone.out_with_norm=true  optimizer.lr=8e-4

and I got ~20mIoU.

The only difference is that I am not using apex and the custom distributed optimizer, so I basically comment:

runner = dict(type='IterBasedRunnerAmp')
fp16 = None
optimizer_config = dict(
    type="DistOptimizerHook",
    update_interval=1,
    grad_clip=None,
    coalesce=True,
    bucket_size_mb=-1,
    use_fp16=True,
)

In the config file.

I run my experiment a single node with 8 GPUs. I was wondering if the performance gap could come from the fact that I am not using DistOptimizerHook and apex, or if there is something else I am missing.

Thanks for your help.

@shallowtoil
Copy link
Collaborator

Hi @Adrien987k,

Are you able to reproduce the results without commenting those lines?

@Adrien987k
Copy link
Author

Hi @shallowtoil

I was actually not loading the model properly (not interpolating the positional encodings and those were randomly initialised).

Now I am able to recover the performance of the paper so everything is good.

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