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

Training a Student Model with Multiple Teacher Models of Different Input Scales #113

Open
Morizhaoyang opened this issue Jan 16, 2025 · 1 comment

Comments

@Morizhaoyang
Copy link

Based on the paper, I know that when SAM is the teacher model, both the student and teacher models have an input size of 1024x1024; when DINO is the teacher model, both the student and teacher models have an input size of 432x432. I would like to know, during the training process:

For the student model, does it compute the loss with only one teacher model at a time, or does it compute the loss with all teacher models simultaneously?
If the loss is computed with all teacher models, how does the student model simultaneously infer results with different input sizes?

@mranzinger
Copy link
Collaborator

If you're referring to the original AM-RADIO:

We partition the set of GPUs we use, to be either low-resolution or high-resolution. In the low-res partition, we have CLIP and DINO; in the high-res partition, we have SAM. We do standard distributed data parallel, so the gradients from a batch are the average over both the low-res and hi-res partitions.

If you're referring to RADIO Amplified:

We still have the low and high res partitions, however, we're running all teachers on both partitions, and we use different strategies to deal with resolution mismatch based on the properties of the student/teacher combination. This is shown in Figure 6, as well as sections 4.2, 4.3, and 4.6.

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