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

Understanding the ckpts #2

Open
jaideep11061982 opened this issue Dec 14, 2022 · 1 comment
Open

Understanding the ckpts #2

jaideep11061982 opened this issue Dec 14, 2022 · 1 comment

Comments

@jaideep11061982
Copy link

jaideep11061982 commented Dec 14, 2022

@victorprad @mahobley
1)could you please help understand why do we have two checkpoitns. localisation & counting.ckpt
2) If we have to train on custom dataset, do we have to use both the ckpts ?

  1. during inference which ckpt has to be used localisation or counting ?

  2. What is the difference between the self.CFG["resume_counting_head_path"], and self.resume path

@mahobley
Copy link
Collaborator

  1. The 2 checkpoints were provided as our main result was trained using no localisation loss, so we wanted to provide a checkpoint that has been trained with minimal supervision. The localisation checkpoint is only provided to allow reproducibility of the figures in our work

  2. If you are training on a custom dataset I would suggest not providing a checkpoint in the resume path. I would also suggest setting counting_backbone_unfreeze_layers: -1 in the config.

  3. The counting checkpoint is used during inference. The localisation is only for visualisation to better understand the learnt features.

  4. resume_counting_head_path is used when a frozen backbone is used, it allows for only the head to be saved rather than the whole network to minimise storage space

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